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