1

All problems started when I changed ownership and permission with gksu nautilus from the ETC and SBIN folder after realizing what I have done I followed some online threads I've put back chmod and chown to the way it's supposed to be. Some problems were resolved.

1st problem. Command '' 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 in this post.

The same 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

Second problem I have: When I type Sudo SU I get the errorsudo: unable to stat /etc/sudoers.d/README: no such file or directory

Third problem: File Zila wont give me permishion to the FTP to my linux server, even when i use the IP address witch should work.

Forth problem: My host name stoped working for local computers on network. ip address does work and I can see my files from the ip address

Update* I ran this. from 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 of done something in the process now i get on error message when i open terminal. There was an error creating the child process for this terminal. Getpt failed: Permission denied.

I still have accesses to my terminal i haven't closed yet. Any fix for that before i close my terminal?

Update Fix everything however network-manager doesn't start on boot. no internet connection unless i type in terminal start network-manager. i use this computer as a server. i need a sluchion

  • 1
    " I changed ownership and permission with gksu nautilus from the ETC and SBIN" It might help if you tell us what the change was. But I would suggest to consider a re-install (without formatting the disk). That is a guaranteed working method. Manually changing the permissions is possible but you need to do that from a live dvd and will be a lot of manual work. – Rinzwind May 21 '15 at 11:55
  • i believe it was owner permission and the read write. Its fix now but i have a new problem. check update – Abe.S May 21 '15 at 17:38
0
  • Files inside /bin/ need to be 755 except for symlinks those needs to be 777 and all are owned by root:root.
  • Files inside /etc/ need to be 644 and owned by root:root except for (if you have any of these that is):

    -rw-r----- 1 root daemon 144 2007-02-20 13:41 at.deny drwxr-xr-x 2 root root 4096 2007-11-14 11:01 libpaper.d -rw-r----- 1 root fuse 216 2008-02-26 18:25 fuse.conf drwxr-xr-x 2 root root 4096 2008-03-26 18:23 lsb-base drwxr-xr-x 2 root root 4096 2008-04-01 14:45 jvm.d

    (there might be other files for you). Again: symlinks those needs to be 777. directories need to to be 755.

With this you should be able to manually reset them from a live dvd. If you have a 2nd similar operating system it is also possible to copy the permissons from that system. This answer from jlovi can be used to create a file with the permission in them. And executed on the broken system to restore the permissions.

If this is not possible you can also re-install without formatting. That will keep your documents safe but will re-install the Ubuntu system files.

  • Can you please give me some guidance in terminal. – Abe.S May 21 '15 at 15:59
  • Sorry for the newbie question, i don't know what this is. can you please explain? -rw-r----- 1 root daemon 144 2007-02-20 13:41 at.deny drwxr-xr-x 2 root root 4096 2007-11-14 11:01 libpaper.d -rw-r----- 1 root fuse 216 2008-02-26 18:25 fuse.conf drwxr-xr-x 2 root root 4096 2008-03-26 18:23 lsb-base drwxr-xr-x 2 root root 4096 2008-04-01 14:45 jvm.d (there might be other files for you). Again: symlinks those needs to be 777. directories need to to be 755. – Abe.S May 21 '15 at 16:49

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.