Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
chown and chmod a dir permanently - please help
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
starachna
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2003
Posts: 104
Location: south africa

PostPosted: Thu Nov 27, 2003 1:52 pm    Post subject: chown and chmod a dir permanently - please help Reply with quote

hello guys, i have searched and manned quite a bit, but i can't seem to get over this, and i bet tis quite simple ...

i need a directory to keep the following permissions:
chown -R apache.webdev chmod 770

but when ever a user that belongs to the group webdev edits a file in the dir it changes the file permissions to:
$user.$group chmod 755

i have no joy with this, so much so, that i'm thingking of setting a cron job to do this every 5 minutes or so, and that would just be silly.

i appreaciate any help you can chuck my way, thank you kindly
_________________
http://www.3am.co.za - za psy trance
Back to top
View user's profile Send private message
m0pr0be
Guru
Guru


Joined: 29 Aug 2002
Posts: 308

PostPosted: Thu Nov 27, 2003 4:02 pm    Post subject: Reply with quote

depending on your file system type you could use POSIX-ACLs.

you need to have support for POSIX-ACLs compiled into your kernel.

you can set default permissions for directories with POSIX ACLs.

you also need sys-apps/acl emerged for the userspace tools

more info:

http://acl.bestbits.at
Back to top
View user's profile Send private message
DarrenM
l33t
l33t


Joined: 25 Apr 2002
Posts: 653
Location: Sydney, Australia

PostPosted: Fri Nov 28, 2003 12:07 am    Post subject: Reply with quote

Look into setting the umask for the users. It controls the default file permissions.
Back to top
View user's profile Send private message
starachna
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2003
Posts: 104
Location: south africa

PostPosted: Fri Nov 28, 2003 7:20 am    Post subject: thank you Reply with quote

just a quick thank, your info helped me a great deal, busy compiling my kernel now, i have a reasonable idea whot to do, everything should go well, thank you :)
_________________
http://www.3am.co.za - za psy trance
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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