Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
group filesystem access?
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
ggelln
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jan 2003
Posts: 98
Location: Montreal Quebec

PostPosted: Sun Feb 23, 2003 5:03 pm    Post subject: group filesystem access? Reply with quote

I am having a problem setting the file permissions correctly for given users to share files in their home directory with other users.

I would like to set up a folder music in a given home directory that is accessable to all other users of the mp3 group.

I have added the group, added the users so that the
groups command shows that they are members. I have then changed the directory music such that
ls -ld gives:

Code:
drwxrwx---   16 ggelln   mp3           504 Feb 22 15:23 music


But when I log in as another user of the mp3 group I can not cd to this directory?
(furthermore for troubleshooting I made I set
chmod 777 music, but this also didn't work . . .)

One problem I think might cause this is that the home directory is set as a personal group, that is
ls -ld /home/ggelln gives:
Code:
drwx------   74 ggelln   ggelln       3752 Feb 23 11:59 /home/ggelln/

But I don't really want to change this, as I don't believe it should matter . . .

From all the tutorials I have read this doesn't make sense . . . Any help would be welcome.

Gabriel
Back to top
View user's profile Send private message
David_Escott
l33t
l33t


Joined: 12 Jan 2003
Posts: 952
Location: Boston, MA

PostPosted: Sun Feb 23, 2003 5:13 pm    Post subject: Reply with quote

If i am reading this correctly you have

rwxrwx--- /home/ggelln/music ggelln mp3
and
rwx------ /home/ggelln ggelln ggeln

in which case you have made it impossible for other uses to even enter the /home/ggelln directory (they need executable permissions to do this)

so as ggelln you should do the following

Code:

cd ~
chmod o+x .


This way other users will be able to enter the ggelln directory but will not be able to see anything there. Then from there they can move into the music subdirectory
Back to top
View user's profile Send private message
ggelln
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jan 2003
Posts: 98
Location: Montreal Quebec

PostPosted: Sun Feb 23, 2003 5:34 pm    Post subject: Thanks! Reply with quote

Thanks that fixed it, didn't realize quite what the execute bit does with directories (thought it was the same as r in a way . . .)

this really cleared it up :-)

Gabriel
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