All problems started when I changed ownership and permission with gksu nautilus
from the ETC
and SBIN
folder. After realizing what I had done, I followed some online threads and I've put back chmod
and chown
to the way it's supposed to be. Some problems were resolved.
1st problem:
Command '<command' is available in '/sbin/' The command could not be located because '/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
: command not found
The same error is found in this question: The command could not be located because '/sbin' is not included in the PATH environment variable
The solution they gave me in that link did not work for me. I have the following code in my environment file: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
2nd problem:
When I type sudo su
I get:
unable to stat /etc/sudoers.d/README: no such file or directory
3rd problem:
FileZilla won't give me permission to the FTP to my Linux server, even when I use the IP address which should work.
4th problem:
My host name stopped working for local computers on the network, the IP address does work, and I can see my files from the IP address.
Update
I executed the following commands from https://askubuntu.com/questions/308939/how-to-reset-default-permissions-for-etc:$ sudo su
# chown -R root:root /etc
# find /etc -type f -exec chmod 644 {} +
# find /etc -type d -exec chmod 755 {} +
# chmod 755 /etc/init.d/* /etc/rc.local /etc/network/* /etc/cron.*/*
Things started working. However I might have done something in the process and now I get an error message when I open the terminal:
There was an error creating the child process for this terminal.
Getpt failed: Permission denied.
I still have access to my terminal, I haven't closed it yet. Any fix for that before I close my terminal?