Thx Corinna

That explains it better for me - I was a little confused by the
relationship between windows shortcuts and *nix symlinks.

If I may ask another question regarding setfacl.
I would like to use setfacl on all subdirs but unlike chmod it doesn't
have a recursive option (unless I missed it somewhere?) so I use the
following bash script:

        cd /
        chown Administrators:None .
        IFS=${IFS// /} # processes files with spaces
        for file in $( find /. )
        do
            setfacl -s u::rwx,g::r-x,o::r-x "$file"
        Done
        # now set ACLs for home dirs and SSHD etc...

It works but is a little slow.  I could use chmod -R 755 . but I found
that setfacl does a better job at resetting *all* the NT ACLs to what I
want.  Is there a more efficient method?

Regards,
Mark

-----Original Message-----
From: Corinna Vinschen [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 4:30 PM
To: [EMAIL PROTECTED]
Cc: Charles Wilson
Subject: Re: Problem with SETFACL and shortcuts?


On Fri, Sep 26, 2003 at 04:06:32PM +0200, Harre Mark VIE wrote:
> Hi,
> 
> I was just working on a script to set dafault permissions and noticed 
> something interesting.  I use the find command to get the file name of

> all files/directories and then reset the permissions usiong setfacl. 
> This works fine except on a couple of files. I get the same error from

> a bash shell using getfacl.  For example I can use ls to list the file

> but get an error using getfacl
> 
> $ ls /lib/terminfo
> /lib/terminfo
> 
> $ getfacl /lib/terminfo
> getfacl: No such file or directory
> 
> Couldn't find any info in the faq or google.  Anyone else seen this 
> behaviour and know a fix?

This is a problem of the terminfo link itself.  It's defined like this:

$ ls -l /lib/terminfo
lrwxrwxrwx 1 user grp 125 Sep 7 21:26 /lib/terminfo -> ../share/terminfo

The problem is that the terminfo directory is actually
/usr/share/terminfo, not /share/terminfo.  So the relative symlink only
works correct when resolved from /usr/lib/terminfo, not from
/lib/terminfo:

$ getfacl /usr/lib/terminfo
# file: /usr/lib/terminfo
# owner: user
# group: grp
user::rwx
group::rwx
group:SYSTEM:rwx
mask:rwx
other:---
default:user::---
default:group:SYSTEM:rwx
default:group:grp:rwx
default:mask:rwx


Chuck, would it make sense to change the symlink to an absolute one?

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


        
________________________________________________________________________
_______________________
        This e-mail has been scanned for all viruses by MessageLabs.
        
________________________________________________________________________
_______________________

        
_______________________________________________________________________________________________
        (1) This message is confidential. It may also be legally privileged. It is 
intended
        solely for the stated addressee(s) and access to it by anyone else is 
unauthorised.
        If you have received this message in error, you must not disclose, copy, 
circulate
        or in any other way use or rely on the information contained in this message. 
Such
        unauthorised use may be unlawful. If you have received this message in error, 
please
        contact our office immediately on +43 (1) 512 3880 and delete it and all 
copies from
        your system.
        (2) European American Investment Bank AG is registered/licensed in Austria
        under FN 67337a: 
        European American Investment Bank Aktiengesellschaft 
        Wallnerstrasse 4 
        A-1010 Vienna 
        Austria 
        
_______________________________________________________________________________________________

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to