LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   changing home directory permission in user management after user created in suse(KDE) (https://www.linuxquestions.org/questions/linux-security-4/changing-home-directory-permission-in-user-management-after-user-created-in-suse-kde-860260/)

hamedhsn 02-02-2011 11:45 AM

changing home directory permission in user management after user created in suse(KDE)
 
hi
i created a user but i forgot to change the home directory permission.so after user created when i go to the user and group mangement i cant see that permission filed related to the home permission directory.
my purpose is to stop accessing other user to my home directory,how it can be possible??
i appreciate in advance..
thanks

__raHulk 02-02-2011 11:53 PM

Quote:

my purpose is to stop accessing other user to my home directory,how it can be possible??
That is by default in most (or all the distros i guess) ie. other users cannot access anything in your home directory, the only exception being the root user.

horafaust 04-05-2011 07:01 AM

Same issue here.
 
I created users from each of my employees. Then I tested if I can access other users' folder using Dolphin, I wasn't able to(which is good). But when I tried typing from Firefox /home I was able to access other users' folder. Not only that, I did all these using a user login(not root/admin). How do I configure users so that they won't be able to look at each others' folder?

chrism01 04-05-2011 09:12 PM

Go into /home and issue
Code:

ls -l
and look at the results, typically
Code:

drwxr-xr-x  2 user group ... <dirname>
First, remove world ('other') access
Code:

chmod o=  <dirname>
On RH (& likely RH derived) each user defaults to having their own private group, so that's as far as you need to go.
On a lot (most ?) *nix systems, users default to the same group unless otherwise specified, so remove group access
Code:

chmod g=  <dirname>
HTH

horafaust 04-06-2011 09:18 PM

It works!


All times are GMT -5. The time now is 08:31 AM.