Sub-Directories not picking up correct group permissions for new files/directories
For some reason, when I create a file under /share/space as user bob, it is not inheriting the group of share. Even though share is the group owner of both share and space.
I believe I've also set the correct permissions as well. Its probably something simple that I'm not doing as well... Code:
[root@37rellimcm911 tmp]# useradd bob |
If you want things created by user 'bob' to have group 'share' then try making 'share' the primary group for user 'bob' and make group 'bob' one of user 'bob's extended groups.
Or, if that is not really what you had in mind, you might turn on the group sticky bit for folder /share (and all sub-folders) and make sure the group on it (and all sub-folders) is 'share' and see if that does what you want. |
Ok, fixed it.
Wasn't doing the following command: Code:
I didn't think of adding bob as an extend group to bob. Which is better for security? |
if fixed pls mark solved .. have a great day
|
Quote:
I like the idea of moving members that must share into a particular group, and setting group ownership on the share so that NO ONE ELSE can get far enough into that share tree to even SEE the files or folders present. But that is not the only answer, just MY answer. Sticky bits can come in handy, but I prefer not to use them if there is a more general and portable answer. |
All times are GMT -5. The time now is 07:28 AM. |