delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/04/18:07:56

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: Tue, 4 Feb 2003 18:07:44 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Salvo <salvo AT scicli DOT com>
cc: Cygwin mailing list <cygwin AT cygwin DOT com>
Subject: Re: logis as root?
In-Reply-To: <001201c2cc9d$5b791970$81dcb9c2@wittgenstein>
Message-ID: <Pine.GSO.4.44.0302041753580.24195-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h14N7ud16998

Salvo,

First off, to avoid that "permission denied" message, make sure your
mounts of "/", "/usr/bin" and "/usr/lib" are system mounts, not user
mounts.  Try cutting and pasting the output of

$ mount -m | grep -i cygwin | sed 's/ -u / -s /'

into your bash shell (after proper inspection, of course, and I also
suggest you save the full output of "mount -m" first so you can recover
your mount table if something goes wrong).  "man mount" for details.

Now, as far as root is concerned, Unix programs think of "root" as uid 0.
The Cygwin versions of those programs are usually patched to consider uid
18 to be root (this corresponds to the LocalSystem account, which has very
high privileges on NT systems, unlike the Administrator account).

I'm not sure what xdm considers root (it's in the source, I'm sure).  You
might have better luck asking on the <cygwin-xfree at cygwin dot com>
list, which is for all things X.
	Igor
P.S. Incidentally, which "su" are you using?

On Tue, 4 Feb 2003, Salvo wrote:

> Hi all,
> I know that the nice cygwin isn't Unix, but there is a manner to be
> "root"?
> I use it in Windows XP as administrator with name "salvo", but if I run
> "xdm" cygwin says:
> "$ xdm
> Only root wants to run xdm"
>
> Is I type "su" it says:
> "$ su
> su: user root does not exist"
>
> If login as Administrator I get:
> "$ login Administrator
> Password: ********
> Fanfare!!!
> You are successfully logged in to this server!!!
> login: no shell: /bin/bash: Permission denied"
>
> My passwd file has:
> "Administrator:unused_by_nt/2000/xp:500:544:U-WITTGENSTEIN\Administrator
> ,S-1-5-21-1390067357-1202660629-1060284298-500:/home/root:/bin/bash
> Salvo:unused_by_nt/2000/xp:1003:544:U-WITTGENSTEIN\Salvo,S-1-5-21-139006
> 7357-1202660629-1060284298-1003:/home/Salvo:/bin/bash"
>
> There are /home/root and /home/Salvo directories.
>
> How can I do?
> Many thanks in advance!
>
> Salvo Micciché

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