X-Spam-Check-By: sourceware.org Message-ID: X-Sender: karlm30 AT hotmail DOT com In-Reply-To: <20051218202027.GC2965@calimero.vinschen.de> From: "Karl M" 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 Content-Type: text/plain; format=flowed X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 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/