X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=BAYES_00,TW_RW,TW_WX X-Spam-Check-By: sourceware.org Message-ID: <4EF3027A.7090503@shaddybaddah.name> Date: Thu, 22 Dec 2011 21:12:10 +1100 From: Shaddy Baddah User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] CALL FOR TESTING: Cygwin 1.7.10 References: <4EF2D79D DOT 2020809 AT shaddybaddah DOT name> <20111222092552 DOT GA31936 AT calimero DOT vinschen DOT de> In-Reply-To: <20111222092552.GA31936@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Corinna, On 22/12/11 20:25, Corinna Vinschen wrote: > On Dec 22 18:09, Shaddy Baddah wrote: >> Hi, >> >> On 06/12/11 20:37, Corinna Vinschen wrote: >>> A lot of changes and fixes have been made in Cygwin since 1.7.9 has >>> been released, so we're looking forward to release Cygwin 1.7.10 soon. >>> >>> Please test the latest developer snapshots at http://cygwin.com/snapshots/ >>> which should have "Release Candidate" quality. >> >> I'm having a problem with the most recent snapshot (at time of >> writing), 2011-12-19 17:48:27 UTC. A regular non-privileged (not in >> Administrators) user is unable to execute any commands from within a >> Cygwin process itself. >> >> The following copy/paste from a Command Prompt session should >> illustrate the problem: >> >> c:\Users\Public\portapps\cygwin\bin>ls /var >> cache empty games lib log run tmp >> >> c:\Users\Public\portapps\cygwin\bin>sh -c "/bin/ls /var" >> sh: /bin/ls: Permission denied >> >> c:\Users\Public\portapps\cygwin\bin>id -a >> uid=1007(portapps) gid=513(None) groups=513(None),545(Users) >> >> c:\Users\Public\portapps\cygwin\bin>sh -c "/bin/id -a" >> sh: /bin/id: Permission denied >> >> I am running Windows 7 64bit. > > Works for me. I tried this with a non-admin domain member account > as well as with a non-admin local SAM account. Did you check the > actual permissions? > Yes. They all look right to me. Here is what I see for ls for example: c:\Users\Public\portapps\cygwin\bin>ls -l /bin/ls -rwxr-xr-x 1 portapps None 128526 Oct 28 15:00 /bin/ls c:\Users\Public\portapps\cygwin\bin>sh -c "/bin/ls -l /bin/ls" sh: /bin/ls: Permission denied I install all packages as the portapps user, keeping the install separate from my ordinary user that I run everyday. At this point, I should make a disclosure. To do this as a non-Administrator grouped user, I must rename setup.exe to cygpkg.exe. This defeats the later Windows releases abilities to automatically detect installer applications by their name, and force privilege elevation. This is something that I have been meaning to open up a discussion about for sometime (or may have tried to already, I can't recall), but I'll leave it to stand at the moment. In anycase, it has not caused me any issue until I upgraded from 1.7.9 now to the latest 1.7.10 snapshot. And whilst this unconventional step may be a factor, at this time I'd find that dubious. I don't have time right at this moment, but later I maybe able to help with some DLL debugging (I've done this in the past for problems such as with http://www.cygwin.com/ml/cygwin-developers/2010-02/msg00052.html). Thanks, Shaddy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple