public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Marco Mason" <mmason@npc.net>
To: cygwin@cygwin.com
Subject: Re: Installed, Admin can run, other account can't...
Date: Fri, 26 Sep 2003 20:19:00 -0000	[thread overview]
Message-ID: <3F749D78.1F379DB9@npc.net> (raw)
In-Reply-To: <Pine.GSO.4.56.0309261120100.3193@slinky.cs.nyu.edu>



Igor Pechtchanski wrote:

> On Fri, 26 Sep 2003, Marco Mason wrote:
>
> > Igor Pechtchanski wrote:
> >
> > > On Thu, 25 Sep 2003, Marco Mason wrote:
> > >
> > > > Hey, gang--
> > > >
> > > > 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.
> > > >
> > > > D:\cygwin\bin>
> > > >
> > > > I tried googling for the message, but couldn't find anything useful.
> > > >
> > > > I ran a 'cygcheck -svr' and attached the output to this message as a
> > > > text file.
> > > >
> > > > Does anyone have an idea of what I should try?
> > > > --marco
> > >
> > > $ net helpmsg 5
> > > Access is denied.
> > > $
> > >
> > > Basically, it looks like Win2k couldn't run the application as the test
> > > user.  What's the output of "ls -l /bin/bash.exe"?  How about "getfacl
> > > /bin/bash.exe"?  You may need to change the permissions manually on your
> > > Cygwin tree, using the "chmod -R" command.
> > >         Igor
> >
> > Here's what you asked:
> >
> > $ ls -al /bin/bash.exe
> > -rwx------+   1 Administ Users      534016 Sep 15 05:47 /bin/bash.exe
> >
> > $ getfacl /bin/bash.exe
> > # file: /bin/bash
> > # owner: Administrators
> > # group: Users
> > user::rwx
> > group::---
> > group:D-Application Server-RW:rwx
> > mask:rwx
> > other:---
> >
> > The user having difficulties is named 'EagleGen' and is a member of the
> > D-Application Server-RW group.
> >
> > --marco
>
> Ok.  This pretty much confirms my guess.
>
> A quick fix would be to "chmod -R a+x /bin /usr/X11R6/bin /usr/sbin
> /usr/i686-pc-* /usr/lib/gcc-lib && chmod -R a+r /usr /etc /lib /var".  I
> may have missed some directories with executables.  You may also need to
> give write access to everyone in /tmp and /var...
>

Hmmm...

I just tried this, and I still can't seem to make it operate.  I'm going to have
to
start learning how the Windows Security stuff is put together so I can try some
more.

>
> The "real" fix would be to make setup create the directories with the
> right permissions from the start.  I'm not sure this is possible.
> Perhaps people with more knowledge of ACLs (Pierre, Corinna, CGF?) will
> chime in and offer their opinions...
>         Igor
> --

If it's a security thing, then perhaps setup will create the directories
properly
if I fix the security and then reinstall.  At least, I'm hoping so..  8^)

Thanks for your assistance...

--marco


--
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/

  reply	other threads:[~2003-09-26 20:12 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 [this message]
2003-09-27  1:48       ` Pierre A. Humblet
2003-09-27  2:11         ` Igor Pechtchanski
2003-09-26 12:01 ` Jason Tishler
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=3F749D78.1F379DB9@npc.net \
    --to=mmason@npc.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).