I ran a chmod 777 command on my instance and after that I closed my terminal.  Since then I haven't been able to connect putty or WinScp.  What could be the problem and how can I fix it?
2210
I accidently ran  sudo chmod 755 -R /   instead of  sudo chmod 755 -R ./   I stopped it after few seconds, but now there is some problems such as  sudo: must be setuid root   How can I revert permissions back?
97449
I want to write the Ubuntu analogue of a "batch file" (a shell script). But I don't know how to use chmod +x filename command to make it so that the script can be run. Nor do I know where to use it.
95886
I do not have access to an Ubuntu system or chroot. I was hoping if someone could tell me if the  is accurate in saying:     For Quantal, merged /usr should be supported. On new systems installer should create {/bin, /lib, /sbin} symlinks into /usr.
41331
So, say I get disconnected from an SSH-session after I've started rsync or cp or any other command that can be long running. Does that command keep running until it's finished after I get disconnected or does it just get killed?  Always wondered this.
59836
I frequently ssh into my box at home from school, but usually when I change classes and my computer suspends, the pipe will be broken. However, ssh simply locks up - Ctrl+c, Ctrl+z and Ctrl+d have no effect.   It's annoying to have to restart my terminal, and even more annoying to have to close and re-create a new screen window.  So my question, is there an easy way to make ssh die properly (i.e. when the pipe fails "normally" it will exit with a message about a broken pipe)? Or do I have to figure out what the PID is and manually kill it?
18506
See Also:          I changed file permissions recursively on the root directory / by executing sudo chmod -R / 777, and after that my system won't boot (I'm getting a lot of "permission denied" errors).  Please help.
11454
I tried following a few tutorials, but I get this:   How can I fix this? I added in a info.plist (I just copied and pasted another app's file, and changed around a few things.)  Also, I used chmod +x myApp to make the script executable.  P.S. I am using El Capitan
72084
I'm learning Ubuntu and experimenting with things.  I noticed I couldnt create a directory within /sys  Is this a special directory or something? Are there other types of directories?  (I did a sudo -i and a chmod a+w /sys)
3964
Disclaimer: I'm pretty novice at sysadmin stuff.  I'm trying to set up port forwarding in an AWS EC2 instance, this has to be done in the command-line because I don't want to go in and edit anything, it has to be automatic (it's part of a build process).   sudo echo "net.ipv4.ip_forward = 1" &gt;&gt; /etc/sysctl.conf      Permission denied   The weird thing is I've been (successfully) using sudo for pretty much every command that required su privileges. If I do sudo su before the command (trying it out by hand in an ssh session), then it works.  Reasons behind this? Possible solutions that don't involve sudo su or manual edits?
8752
I am currently at this stage of setting up DHCP, and id just like to know what this output in terminal means? I know I have to edit a file but I do not know which one, and I do not know what to put in it. Ultimately I would like to set up a DHCP server.  matt@matt-R580-R590:~$ sudo tail /var/log/syslog Jan  3 17:35:23 matt-R580-R590 dhcpd: Wrote 0 leases to leases file. Jan  3 17:35:23 matt-R580-R590 dhcpd:  Jan  3 17:35:23 matt-R580-R590 dhcpd: No subnet declaration for eth0 (no IPv4 addresses). Jan  3 17:35:23 matt-R580-R590 dhcpd: ** Ignoring requests on eth0.  If this is not what Jan  3 17:35:23 matt-R580-R590 dhcpd:    you want, please write a subnet declaration Jan  3 17:35:23 matt-R580-R590 dhcpd:    in your dhcpd.conf file for the network segment Jan  3 17:35:23 matt-R580-R590 dhcpd:    to which interface eth0 is attached. ** Jan  3 17:35:23 matt-R580-R590 dhcpd:  Jan  3 17:35:23 matt-R580-R590 dhcpd:  Jan  3 17:35:23 matt-R580-R590 dhcpd: Not configured to listen on any interfaces! matt@matt-R580-R590:~$
1634
I'm trying to run a python script, on a headless Raspberry PI using winSCP and get the following error message:  Command '"./areadetect_movie_21.py"' failed with return code 127 and error message /usr/bin/env: python : No such file or directory.   When I try and run from terminal, I get:  : No such file or directory.   I try a similar python script, in the same directory, with the same python shebang, the same permissions and using the same user pi, and it works.  I also do a ls and I can see the file, so I don't know why it will not run.
47027
I went into Live CD and activated Terminal.  Then, I typed gksu nautilus to gain temporary access to my root directory. Once the Manager window opened, I clicked on File System and navigated to the /etc/default/grub directory. I then double clicked on the Grub file to make changes to the TIMEOUT and TIMEOUT_QUIET.  I saved the file after I made the changes. Then I went back to the terminal mode and typed:  gksu update-grub   The error message I got was:     Can not find a device for / (is /dev mounted?)   I'm not sure what to do at this point. How can I run update-grub to update the changes? Thanks in advance for your help. Please be very detailed and specific with your response as I am totally new to this environment.
109396
apt-get fail to resolve the mirror. I am using my server as a backup server to one of my website servers. So I had to initially set a static IP address... How can I do it?
56386
Each time putty is closing the session after some time if it is idle.  There is no time parameter on putty, so how can I keep my putty ssh session always Alive?
113697
I created a Notepad file on Windows and copied it to Ubuntu. The file contains some iptables rules. After making the file executable using chmod +x and executing it, it didn't work.  However, when I created a Ubuntu () file and copied the same contents from the Notepad file, made it executable and ran it, it worked.  What should I do to make the Notepad file run on Ubuntu?
31947
I recently typed the command  sudo chmod 777 -R /   after that some things like  sudo -i   are not working normally. So I am wondering if there is any way I could reset the folder permissions to their original state?
116370
EDIT: I have since found that by using a folder in the root directory, things get a bit further - I can list the subfiles.  So it really looks like permissions on the folder are the issue.  I'm not sure what else to do besides chmod 777.  I'm trying to configure an anonymous rsync daemon on CentOS 5.9.  If I allow chroot the server reports that chroot fails.  If I disable it, chdir fails.  # rsyncd.conf  max connections = 20 log file = /var/log/rsync.log timeout = 300 use chroot = false  [builds]     path = /home/fuzz/builds     read only = yes     list = yes     uid = nobody     gid = nobody   .  # /etc/xinetd.d/rsync  # default: off # description: The rsync server is a good addition to an ftp server, as it \ #       allows crc checksumming etc. service rsync {         disable = no         socket_type     = stream         wait            = no         user            = root         server          = /usr/bin/rsync         server_args     = --daemon         log_on_failure  += USERID }   I have set all files and folders under /home/fuzz/builds to 777.  The folder is owned by the user fuzz.  On the client side, this works...  $ rsync rsync://host builds   But when I try to view the contents of the builds directory, I get this error...  $ rsync -vvvv rsync://host/builds opening tcp connection to host port 873 Connected to host (10.186.5.90) note: iconv_open("UTF-8", "UTF-8") succeeded. sending daemon args: --server --sender -vvvvde.Lsf . builds/ @ERROR: chdir failed [Receiver] _exit_cleanup(code=5, file=main.c, line=1534): entered rsync error: error starting client-server protocol (code 5) at main.c(1534) [Receiver=3.0.9] [Receiver] _exit_cleanup(code=5, file=main.c, line=1534): about to call exit(5)