Users can access each others files, :( how to stop that?
I just realized that I can access other users files and they can access my files
simply by using the console to navigate the file system, Its not that big a deal, I am the only one using the computer but this seems like something is not configured correctly. Should each user be able to look at and modify each others files by default? (On Xubuntu 10) How would I go about restricting users access to other users? Thanks. |
Check the permissions on the home directories of the users as follows.
Code:
ls -lh /home Code:
$ ls -lh /home |
Mine shows this:
drwxr-xr-x 66 steve steve 1.0K 2011-01-12 13:07 steve drwxr-xr-x 22 chair chair 2.0K 2011-01-12 12:30 chair Should I use chmod to alter the permissions or is there another way I should do it? |
Quote:
|
Quote:
|
Just verify that all the directories in /home are actually home
directories for users. Sometimes people or programs will create directories in /home that aren't real users' home directories. If there are no special directories, you can run "chmod go-rwx /home/*". Otherwise it would be "chmod go-rwx /home/user1 /home/user2 ..." Incidentally, it's good that you noticed simply running "chmod -rwx" could have been a problem. |
Thanks guys, I think its ok now.
when I try to access the other user now I get a permission denied message. |
You'll also need to look at umask http://linux.die.net/man/1/umask for newly created files. chmod only affects extant files.
|
All times are GMT -5. The time now is 04:11 PM. |