[CentOS] Basic Permissions Questions

Wed Jan 26 11:20:43 UTC 2011
Edo <ml2edwin at gmail.com>

Hi,

On Jan 26, 2011, at 7:31 PM, James Bensley <jwbensley at gmail.com> wrote:

> On 26 January 2011 10:17, Rafa Griman <rafagriman at gmail.com> wrote:
>> Directories should have +x permissions. Do a:
>> 
>> chmod    0750    /directory
>> 
>> And see what happens.
>> 
> 
> Hi Rafa, like a fool I sent that email and then worked this out
> shortly after :)
> 
> Still, if I hadn't your response was quick so I wouldn't have been
> waiting long. This leads me onto a new question though;
> 
> If user1 writes a file in folder1 will user2 be made the default group
> owner, is there a way of enforcing this and with the required
> privileges (r for files, rx for directories?).

Yes. If user1 belongs to the user2 group, that’s how it should [already] work.

> User1 accesses folder1 over smb so I could set up a create mask but
> other folders accessed by users1 not via smb (ssh, rsync etc) I still
> want user2 to have read only access. Can you implement smb style
> create masks at a file system level?
> 

  man acl

Maybe that’s what you are looking for.

HTH,

-- 
- Edwin - mailto:ml2edwin at gmail.com
“The wise are the ones that treasure up knowledge, but the mouth
  of the foolish one is near to ruin itself.”―Proverbs 10:14

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20110126/959d319d/attachment-0005.html>