Hi Guys,
I am using a workstation. There are three users that share that PC, each having its login and password. I want to know how to stop user reading the home directory of another user.
Thanks
Hi Guys,
I am using a workstation. There are three users that share that PC, each having its login and password. I want to know how to stop user reading the home directory of another user.
Thanks
Hi friends,
You can prevent this by making each of their directories read ,write,ececutable only by their user.
Code do this is:
chmod 707 <home dir>
Using this only root and owner of the home directory read,write,execute.
Hi Guys,
You can also do that by setting each user's directory permissions to 700 so that only the user can access it.
Code:
mv /home/user1 /home/.user1
mkdir /home/user1
chown root:user1 /home/user1
chmod 750 /home/user1
mv /home/.user1 /home/user1/user1
Then edit the passwd file and make user1's home directory /home/user1/user1. The user can now do whatever he likes to his home. No one else will even be able to see it.
Bookmarks