LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting File / Directory Permission, with sticky (https://www.linuxquestions.org/questions/linux-newbie-8/setting-file-directory-permission-with-sticky-40467/)

Primetime 01-06-2003 09:35 AM

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.

niknah 01-06-2003 10:02 AM

it should be...

drwxrwsr-x

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.

Primetime 01-06-2003 10:06 AM

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.

stickman 01-06-2003 01:14 PM

chmod g+s
chmod 2775


All times are GMT -5. The time now is 09:37 PM.