Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-VirusChecked: Checked X-Env-Sender: Mark DOT Harre AT eurambank DOT com X-Msg-Ref: server-23.tower-30.messagelabs.com!1064668206!751436 X-StarScan-Version: 5.0.7; banners=eurambank.com,-,- X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: Problem with SETFACL and shortcuts? Date: Sat, 27 Sep 2003 15:10:07 +0200 Message-ID: <864DF0E09F2F6244A46CD70C8DEB4EB903D964@viecs0.global.corp.euram.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Harre Mark VIE" To: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h8RDAtAK027111 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:corinna-cygwin AT cygwin DOT com] Sent: Friday, September 26, 2003 4:30 PM To: cygwin AT cygwin DOT com 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:cygwin AT cygwin DOT com 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/