Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-06-2003, 09:35 AM   #1
LQ Newbie
Registered: Jan 2003
Distribution: Mandrake 9.0
Posts: 5

Rep: Reputation: 0
Setting File / Directory Permission, with sticky

I would like to set a directory's permission to be recursive. For instance:

I have 2 users: chris, john
They both belong to a development group: develop

I would like to set the folder /var/www/html/ and any of it's sub folders to apply the owner and group permissions correctly.

drwxrsxr-x <- is what I am looking for... but I want it to work.

I have seen this done, but have had some trouble making mine work in the same fashion.

Any help is appreciated. Thanks in advance.
Old 01-06-2003, 10:02 AM   #2
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
it should be...


What exactly doesn't work? If you make a file/folder in this directory, the files/folders should be in the same group as this directory.
Old 01-06-2003, 10:06 AM   #3
LQ Newbie
Registered: Jan 2003
Distribution: Mandrake 9.0
Posts: 5

Original Poster
Rep: Reputation: 0
ok .. yep had the permission flags wrong...

Well I am still at the point of, how do I set the permission to reflect that? I am not yet graceful at the command line. What commands do I need.

heh I know what I want it to do, but not fully how to get there.
Old 01-06-2003, 01:14 PM   #4
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
chmod g+s
chmod 2775


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Setting File and Directory Permission in Unix/Linux munawer_hassan LinuxAnswers Discussion 1 03-23-2010 11:40 AM
how do i get permission to move file into directory timalan SUSE / openSUSE 2 08-24-2005 09:25 PM
script execution - file/directory permission issue serksimper Linux - Enterprise 1 08-10-2005 03:01 PM
Linux File permission & the sticky bit hq4ever Linux - Newbie 8 07-02-2004 03:46 PM
file/directory access permission question correro Linux - General 4 05-22-2003 07:48 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration