From: Jason Tishler <jason@tishler.net>
To: cygwin@cygwin.com
Subject: Re: Installed, Admin can run, other account can't...
Date: Fri, 26 Sep 2003 12:01:00 -0000 [thread overview]
Message-ID: <20030926115933.GB2336@tishler.net> (raw)
In-Reply-To: <3F7360C6.53FB260C@npc.net>
[-- Attachment #1: Type: text/plain, Size: 838 bytes --]
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
[-- Attachment #2: Type: message/rfc822, Size: 1930 bytes --]
[-- Attachment #2.1.1: Type: text/plain, Size: 600 bytes --]
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
[-- Attachment #2.1.2: shared.cc.diff --]
[-- Type: text/plain, Size: 625 bytes --]
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.");
}
[-- Attachment #3: Type: text/plain, Size: 218 bytes --]
--
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/
next prev parent reply other threads:[~2003-09-26 11:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-25 22:07 Marco Mason
2003-09-25 22:25 ` Igor Pechtchanski
2003-09-26 15:26 ` Marco Mason
2003-09-26 15:32 ` Igor Pechtchanski
2003-09-26 20:19 ` Marco Mason
2003-09-27 1:48 ` Pierre A. Humblet
2003-09-27 2:11 ` Igor Pechtchanski
2003-09-26 12:01 ` Jason Tishler [this message]
2003-09-26 12:20 ` Jason Tishler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030926115933.GB2336@tishler.net \
--to=jason@tishler.net \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).