Sunday, May 22, 2016

command line - Special directory permissions for new user

I need to add special permission for new shell user.
After using adduser command new, the user can read all directories into shell account.



Command adduser user1 brings us new user which has own shell directory /home/user1.
Now, I need make permissions for user1 with full access only for its corresponding /home/user1 folder. Each time when user1 goes into /home folder, the user should not see anything from this folder. Same behaviour should be when user1 goes into main shell directory where we have folders etc, home, usr, var etc.




Now when I log in as user1 I can read all shell directories e.g. via Midnight Commander.



Can anybody help to set this special permissions? Thank You in advance.

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...