delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/18/18:51:26

X-Spam-Check-By: sourceware.org
Message-ID: <BAY108-F32FEC82C5C626707EDE903B53C0@phx.gbl>
X-Sender: karlm30 AT hotmail DOT com
In-Reply-To: <20051218202027.GC2965@calimero.vinschen.de>
From: "Karl M" <karlm30 AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: setup/symlinks/gcc/chown question
Date: Sun, 18 Dec 2005 15:51:19 -0800
Mime-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi All...

It appears to be file permissions related. The link being broken looks like 
it is because the read only bit on the shortcut file (the .lnk file) is 
getting turned off. Even though this first getfacl shows write access, the 
read only box in the windows properties is checked. after the chown -h the 
windows properties box says not a valid link. After the chmod -R 755, the 
windows properties shows it as a valid shortcut, but the read only box is 
unchecked. After a chmod -R 555, the read only box is checked and Cygwin 
thinks it is a symlink again.

administrator AT Coyote /lib/gcc/i686-pc-mingw32/3.4.4
$ getfacl cc1.exe.lnk
# file: cc1.exe.lnk
# owner: administrator
# group: Users
user::---
group::---
group:root:rwx
mask:rwx
other:---

administrator AT Coyote /lib/gcc/i686-pc-mingw32/3.4.4
$ chown -h administrators.none cc1.exe

administrator AT Coyote /lib/gcc/i686-pc-mingw32/3.4.4
$ getfacl cc1.exe.lnk
# file: cc1.exe.lnk
# owner: Administrators
# group: None
user::---
group::---
mask:rwx
other:---

administrator AT Coyote /lib/gcc/i686-pc-mingw32/3.4.4
$ ls -al cc1.exe.lnk
----------  1 Administrators None 547 Dec 18 15:17 cc1.exe.lnk

administrator AT Coyote /lib/gcc/i686-pc-mingw32/3.4.4
$ chmod -R 755 cc1.exe.lnk

administrator AT Coyote /lib/gcc/i686-pc-mingw32/3.4.4
$ getfacl cc1.exe.lnk
# file: cc1.exe.lnk
# owner: Administrators
# group: None
user::rwx
group::r-x
mask:rwx
other:r-x

administrator AT Coyote /lib/gcc/i686-pc-mingw32/3.4.4
$ ls -al cc1.exe.lnk
-rwxr-xr-x  1 Administrators None 547 Dec 18 15:17 cc1.exe.lnk

administrator AT Coyote /lib/gcc/i686-pc-mingw32/3.4.4
$ chmod -R 555 cc1.exe.lnk

administrator AT Coyote /lib/gcc/i686-pc-mingw32/3.4.4
$ getfacl cc1.exe.lnk
# file: cc1.exe.lnk
# owner: administrator
# group: Users
user::---
group::---
group:root:rwx
mask:rwx
other:---

administrator AT Coyote /lib/gcc/i686-pc-mingw32/3.4.4
$ ls -al cc1.exe
lrwxrwxrwx  1 Administrators None 34 Dec 18 15:17 cc1.exe -> 
../../i686-pc-cygwi
n/3.4.4/cc1.exe

administrator AT Coyote /lib/gcc/i686-pc-mingw32/3.4.4
$ chmod -R 755 cc1.exe

administrator AT Coyote /lib/gcc/i686-pc-mingw32/3.4.4
$ getfacl cc1.exe.lnk
# file: cc1.exe.lnk
# owner: administrator
# group: Users
user::rwx
group::r-x
group:root:rwx
mask:rwx
other:r-x

Thanks,

...Karl

administrator AT Coyote /lib/gcc/i686-pc-mingw32/3.4.4
$ ls -al cc1.exe
lrwxrwxrwx  1 Administrators None 34 Dec 18 15:17 cc1.exe -> 
../../i686-pc-cygwi
n/3.4.4/cc1.exe
>From: Corinna Vinschen Subject: Re: setup/symlinks/gcc/chown question
>Date: Sun, 18 Dec 2005 21:20:27 +0100
>
>On Dec 18 09:56, Karl M wrote:
> > Hi All...
> >
> > I just installed gcc/mingw with setup.
> >
> > If I do
> >
> > cd /lib/gcc/i686-pc-mingw32/3.4.4
> > chown -R administrators.none *
> >
> > it breaks the symlinks in the directory.
>
>I can't see any problem.  What does that mean "it breaks the symlinks"?
>How do they look before, how afterwards?
>
>
>Corinna
>
>--
>Corinna Vinschen                  Please, send mails regarding Cygwin to
>Cygwin Project Co-Leader          cygwin AT cygwin DOT com
>Red Hat
>
>--
>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/
>



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019