Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Permissions
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
Persson
n00b
n00b


Joined: 24 Mar 2003
Posts: 26
Location: Sweden

PostPosted: Sun Mar 30, 2003 9:16 pm    Post subject: Permissions Reply with quote

I'm having troubles giving out permissions. If I change the permissions on a folder I want those permissions to be made on the folders and files in that folder.

Is there a way to do this because I have got a large folder system and I don't have time to sit and click on all those folders and change permissions.
Back to top
View user's profile Send private message
slougi
Apprentice
Apprentice


Joined: 12 Nov 2002
Posts: 222
Location: Oulu, Finland

PostPosted: Sun Mar 30, 2003 9:25 pm    Post subject: Reply with quote

chmod -R <permissions> folder

:)
Back to top
View user's profile Send private message
slam_head
Guru
Guru


Joined: 06 Jan 2003
Posts: 449
Location: New York City

PostPosted: Mon Mar 31, 2003 3:11 pm    Post subject: Reply with quote

You might also want to put a sticky bit on the directory. chmod +s directory_name This will make it so that any files or directories created under this directory will inherit the permissions of the parent directory.
Back to top
View user's profile Send private message
dweigert
Guru
Guru


Joined: 04 Oct 2002
Posts: 369
Location: Somerset, NJ USA

PostPosted: Mon Mar 31, 2003 4:03 pm    Post subject: Reply with quote

Setting +t sets the sticky bit, +s sets set groupID on execution :-)

Dan
_________________
"Always remember to mount a scratch monkey..."
Back to top
View user's profile Send private message
slam_head
Guru
Guru


Joined: 06 Jan 2003
Posts: 449
Location: New York City

PostPosted: Mon Mar 31, 2003 5:16 pm    Post subject: Reply with quote

Woops sorry.
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