Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
user permissions - noob question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wimbo
Tux's lil' helper
Tux's lil' helper


Joined: 19 Aug 2004
Posts: 110
Location: Ninove - Belgium

PostPosted: Thu Nov 10, 2005 1:42 pm    Post subject: user permissions - noob question Reply with quote

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
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Thu Nov 10, 2005 1:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
sundialsvc4
Guru
Guru


Joined: 10 Nov 2005
Posts: 436

PostPosted: Fri Nov 11, 2005 2:00 am    Post subject: Reply with quote

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
View user's profile Send private message
wimbo
Tux's lil' helper
Tux's lil' helper


Joined: 19 Aug 2004
Posts: 110
Location: Ninove - Belgium

PostPosted: Fri Nov 11, 2005 11:02 am    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20588

PostPosted: Fri Nov 11, 2005 4:02 pm    Post subject: Reply with quote

Moved from Installing Gentoo
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum