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 Date: Fri, 26 Sep 2003 07:59:33 -0400 From: Jason Tishler To: cygwin AT cygwin DOT com Subject: Re: Installed, Admin can run, other account can't... Message-ID: <20030926115933.GB2336@tishler.net> Mail-Followup-To: cygwin AT cygwin DOT com References: <3F7360C6 DOT 53FB260C AT npc DOT net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline In-Reply-To: <3F7360C6.53FB260C@npc.net> User-Agent: Mutt/1.4i --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Marco, On Thu, Sep 25, 2003 at 05:40:22PM -0400, Marco Mason wrote: > I've installed cygwin on a new box. After I set it up, I could run it > as administrator. However, when I logged into a test account, I can't > successfully start it. > > Trying to run it under the test account in a DOS shell: > > D:\cygwin\bin>bash --login -i > D:\cygwin\bin\bash.exe: *** CreateFileMapping, Win32 error 5. > Terminating. See the attached. It is likely the above is the same problem. If so, then Pierre Humblet has a patch to correct this problem. > Does anyone have an idea of what I should try? What is you gid? $ id -g 513 If it is not 544, then edit your /etc/passwd so that it is. Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 --M9NhX3UHpAaciwkO Content-Type: message/rfc822 Content-Disposition: inline Date: Thu, 18 Sep 2003 09:07:01 -0400 From: Jason Tishler To: Cygwin-Developers Subject: Recent security improvements breaks proftpd Message-ID: <20030918130700 DOT GD1204 AT tishler DOT net> Mail-Followup-To: Cygwin-Developers Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="2/5bycvrmDh4d1IB" Content-Disposition: inline User-Agent: Mutt/1.4i --2/5bycvrmDh4d1IB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Pierre, The following change breaks proftpd: http://cygwin.com/ml/cygwin-cvs/2003-q3/msg00237.html By "breaks", I mean the following failure occurs when a user attempts to authenticate: C:\Cygwin\usr\sbin\proftpd.exe: *** CreateFileMapping, Win32 error 5. Terminating. I was able to workaround and isolate the problem with the attached "patch" -- that is reverting to the old behavior. Any ideas on how to fix the problem correctly? Thanks, Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 --2/5bycvrmDh4d1IB Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="shared.cc.diff" Index: shared.cc =================================================================== RCS file: /cvs/src/src/winsup/cygwin/shared.cc,v retrieving revision 1.73 diff -u -p -r1.73 shared.cc --- shared.cc 11 Sep 2003 07:57:39 -0000 1.73 +++ shared.cc 18 Sep 2003 12:51:59 -0000 @@ -97,7 +97,7 @@ open_shared (const char *name, int n, HA TRUE, mapname); } if (!shared_h && - !(shared_h = CreateFileMapping (INVALID_HANDLE_VALUE, psa, + !(shared_h = CreateFileMapping (INVALID_HANDLE_VALUE, &sec_all, PAGE_READWRITE, 0, size, mapname))) api_fatal ("CreateFileMapping, %E. Terminating."); } --2/5bycvrmDh4d1IB-- --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=us-ascii -- 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/ --M9NhX3UHpAaciwkO--