View previous topic :: View next topic |
Author |
Message |
wimbo Tux's lil' helper
Joined: 19 Aug 2004 Posts: 110 Location: Ninove - Belgium
|
Posted: Thu Nov 10, 2005 1:42 pm Post subject: user permissions - noob question |
|
|
hello,
i have three users on my computer (wimbo, thijs and seb) now i want that nobody can access some one elses directory in /home. so i changed permissions to this
Code: | drwxr-x--- 2 seb users 168 nov 10 14:21 seb
drwxr-x--- 2 thijs users 232 nov 10 14:22 thijs
drwxr-x--- 55 wimbo users 2704 nov 10 14:29 wimbo
|
but that wasn't quite the solution, since i can still acces the other directories. when i remove the group permissions everything works as i want. but, in /etc/group i see this:
Code: | users:x:100:games,thijs,seb
|
there are two things i don't understand:
1. why am i not in the users group?
2. is it necessary for the games group to be in the users group? will i be able to play games, since users group no longer has acces to the directory?
greetz,
wimbo |
|
Back to top |
|
|
nielchiano Veteran
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Thu Nov 10, 2005 1:51 pm Post subject: |
|
|
you probabely need to remove the games from the users group, and add yourself.
I'm not a guru, but I don't think you can add groups to groups...
for the home dirs: setting permissions to 700 (that is rwx------) will allow the owner (=the user) all access, and deny everyone else. |
|
Back to top |
|
|
sundialsvc4 Guru
Joined: 10 Nov 2005 Posts: 436
|
Posted: Fri Nov 11, 2005 2:00 am Post subject: |
|
|
The way you've set up things now, every user belongs to the "users" group and any member of that group can read and search (but not create files in) those directories. The files probably carry similar permissions. And, that's not good, because users are creating files that (thanks to their common group-membership) all of them can read.
A better approach is to create a separate group for each user, and each user belongs only to "his" group. That is to say, user george belongs to group george, and no one else belongs to that group.
If you want "shareable things," say among all-users or selected subsets of users, Access Control Lists (ACLs) provide very flexible controls. |
|
Back to top |
|
|
wimbo Tux's lil' helper
Joined: 19 Aug 2004 Posts: 110 Location: Ninove - Belgium
|
Posted: Fri Nov 11, 2005 11:02 am Post subject: |
|
|
i see. but i didn't really set that up. it kind of happened while installing gentoo. ill' try to change it
thx,
wimbo |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20588
|
Posted: Fri Nov 11, 2005 4:02 pm Post subject: |
|
|
Moved from Installing Gentoo _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|