This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ssh private key permissions


On Thu, Jun 21, 2001 at 08:49:12PM -0400, Charles S. Wilson wrote:
> I tried the following command (as Administrator=500, who's in group 545 
> and 500.545 owns the file)
> $ setfacl -s user::rw-,group::---,other::---,mask::--- foo
> setfacl: missing entries.
> 
> $ setfacl -d group:1000 foo
> <succeeded>
> $ setfacl -d group:545 foo
> <succeeded>
> $ setfacl -d user:1002 foo
> <succeeded>
> $ getfacl foo
> # file: foo
> # owner: 500
> # group: 544
> user::rw-
> group::rw-
> mask::rw-
> other::rw-
> 
> Okay, after removing the extra stuff by hand, try again:
> $ setfacl -s user::rw-,group::---,other::---,mask::--- foo
> 
> setfacl: missing entries.
> 
> 
> Aarrgh.  Okay, try it piecemeal:
> $ setfacl -m user::rwx
> <no error reported>
> $ setfacl -m group::---
> <no error reported>
> $ setfacl -m other::---
> setfacl: illegal acl entries
> $ setfacl -m mask::---
> setfacl: illegal acl entries
> $ getfacl foo
> ~ > getfacl foo
> # file: foo
> # owner: 500
> # group: 544
> user::rw-
> group::rw-
> mask::rw-
> other::rwx
> 
> !!!! the user:: perms were applied to other::, and the group perms 
> didn't take effect. (And, of course, the other:: and mask:: perms 
> commands failed)
> 
> What gives?  I do NOT understand ACLs.

Hmm, obviously `setfacl' doesn't understand ACLs as well...
Thank god we have the sourcecode in the utils subdir.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]