Can i restrict one user to view other users file and folder in centos and other user unable to view first user files and folder. Means both user's files and folder hidden from each other but superuser/root can view both of them files and folder.
In other words, I'm thinking of having two groups (say NormalUsers1 and NormalUsers2)
. The NormalUser1
group will have the users user1
. And NormalUser2
group will have the users user2
.
The Superuser
group will only have the user root
. Now, I need the Superuser
to have full access on the files of users in the group NormalUsers1
and NormalUsers2
. But both NormalUsers1
and NormalUsers2
cannot access and view each other files and folders.