delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/29/19:54:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: Wed, 29 Jan 2003 19:53:51 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Chris January <chris AT atomice DOT net>
cc: Lars Munch <lars AT segv DOT dk>, <cygwin AT cygwin DOT com>
Subject: RE: su command ?
In-Reply-To: <LPEHIHGCJOAIPFLADJAHAECFDEAA.chris@atomice.net>
Message-ID: <Pine.GSO.4.44.0301291952000.24195-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Thu, 30 Jan 2003, Chris January wrote:

> > On Tue, Dec 24, 2002 at 01:54:23AM -0000, Chris January wrote:
> > >
> > > > > 'su' is not implemented in cygwin (yet).  The closest you can
> > > > > get now is setting up sshd and using 'ssh user AT localhost'.
> > > > > There was some talk of one of the new packages having that
> > > > > functionality, but you'd have to read the mailing list archives
> > > > > to verify that.
> > > > >         Igor
> > > >
> > > > Well, actually, I made a search on su, but I didn't get any answer.
> > > > Thanks for yours. :-)
> > >
> > > See here for source and binary. Works on XP only. (Also works on
> > > Windows 2k, but you can't escalate priveleges - i.e. can't get
> > > Administrator from normal User account).
> > >
> > > http://www.doc.ic.ac.uk/~ccj00/twiki/bin/view/Cygwin/CygwinSu
> > > Chris
> >
> > Hi Chris
> >
> > I have just tried this on Windows XP as Administrator. I tried to su to
> > a normal user but got:
> >
> > su: cannot run /bin/bash: Permission denied
>
> Try chmod 644 /bin/bash. You probably installed Cygwin for "Just Me". Or as
            ^^^
Umm, 755, maybe?

> an outside bet you might have been bitten by the change to the Cygwin DLL
> that makes ntsec on by default.
> It would appear you have successfuly changed users however
>
> Chris

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

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019