LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Do I use stickybit and how (https://www.linuxquestions.org/questions/linux-newbie-8/do-i-use-stickybit-and-how-912320/)

johnmccarthy 11-07-2011 07:09 AM

Do I use stickybit and how
 
Using RHEL 5. I have a folder and I want to ensure all users who place files (present and future) in the folder that those files inherit the permissions of the folder. The users are in the group Marketing (which have read and write) and the folder is called /Customers.

Do I use the sticky bit so all persons in Marketing can receive the benefits of the permsission set on the Folder /Customers and how do I type that at the command prompt? Do I have to include a -r for recurssive?

A million thanks,
Johnny Mac

clvic 11-07-2011 07:36 AM

No, the sticky bit is not what you're looking for...
look at the definition here.
You should look for some more advanced permission... depending on your use, maybe the usual UNIX permissions won't be enough. I suggest you refining your question here, and looking for other mechanisms using the web.

catkin 11-07-2011 08:05 AM

Maybe the setgid bit on the directory? Set by chmod g+s /path/to/directory

johnmccarthy 11-07-2011 08:25 AM

I think I figured it out using umask
 
It seems umask is more what I need. A million thanks for all your help,
John


All times are GMT -5. The time now is 01:12 AM.