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-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Mon, 14 Apr 2003 22:32:01 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: John Williams cc: cygwin AT cygwin DOT com Subject: Re: chmod again In-Reply-To: Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 15 Apr 2003, John Williams wrote: > Hi there, > > Building a (cross-platform) uClinux kernel under Cygwin I stike a > variant of the Cygwin chmod issue: > > The build process is to make the kernel, make the libs, make the user > apps, then copy everything into a directory and run the utility genromfs > over it. This makes a romfs image of the file system which gets > appended to the kernel and uploaded to the target board, ready to run. > > Here's the catch: the compiled and linked user executables coming out of > my toolchain don't have the execute permissions set. genromfs > faithfully mirrors the file permissions, meaning that my user > executables can't be exec'ed when my board boots up, failing because (of > course) the files don't have execute permission. > > So, I naively tried to just do a chmod 777 on all of my user binaries > then run genromfs over it, but chmod doesn't actually do anything, the > permissions stay unchanged, as illustrated by the following log: > > jwilliams AT G435-9029 /cygdrive/d/uClinux-dist/user/init > $ ls -alrt init > -rw-r--r-- 1 jwilliam mkgroup_ 27984 Apr 15 11:45 init > > jwilliams AT G435-9029 /cygdrive/d/uClinux-dist/user/init > $ chmod 777 init > > jwilliams AT G435-9029 /cygdrive/d/uClinux-dist/user/init > $ ls -alrt init > -rw-r--r-- 1 jwilliam mkgroup_ 27984 Apr 15 11:45 init > > I've checked the FAQ and tried the CYGWIN variable settings ntsec and > nontsec, but it has no effect in the example presented above. > > How can I force Cygwin to get these permissions right? > > Thanks, > John John, First off, make sure your /etc/passwd and /etc/group are up to date (see ). Second, you might wish to attach the output of "cygcheck -svr", as per . Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Knowledge is an unending adventure at the edge of uncertainty. -- Leto II -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/