This is the mail archive of the
mailing list for the Cygwin project.
RE: logis as root?
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Salvo <salvo at scicli dot com>
- Cc: cygwin at cygwin dot com
- Date: Tue, 4 Feb 2003 18:57:37 -0500 (EST)
- Subject: RE: logis as root?
- Reply-to: cygwin at cygwin dot com
On Wed, 5 Feb 2003, Salvo wrote:
> Hi Igor :-)
> >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 /'
> I obtain this output:
> "$ mount -m | grep -i cygwin | sed 's/ -u / -s /'
> mount -f -s -b "C:/cygwin/usr/X11R6/lib/X11/fonts" "/usr/X11R6/lib/X11/fonts"
> mount -f -s -b "C:/cygwin/bin" "/usr/bin"
> mount -f -s -b "C:/cygwin/lib" "/usr/lib"
> mount -f -s -b "C:/cygwin" "/" "
> >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.
> Ok, is it correct the above output?
Looks fine. You can just paste all 4 of the above mount lines into your
shell. This will re-mount all of your standard mounts as "system" mounts,
which will be seen by all users.
> >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
> Right, can I control this with a command?
Control what? The uid is hard-coded into the program source, at least in
the case of inetutils and procmail... You can change the privileges of
other accounts to approach those of LocalSystem, but *this is not
recommended*. You're much better off figuring out what xdm considers
"root" (maybe it just needs to run as a service or something). Again, the
cygwin-xfree list is the place to go for that. I suggest you post a new
message there with "xdm" in its subject (e.g., 'xdm says "Only root wants
to run xdm"' or something similar).
> >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.
> >P.S. Incidentally, which "su" are you using?
> 1.3.19: uname tell me
> "$ uname -a
> CYGWIN_NT-5.1 wittgenstein 1.3.19(0.71/3/2) 2003-01-23 21:31 i686 unknown unknown Cygwin"
Umm, I actually asked about the "su" command, rather than the system
version... In the future, try "which su" and "su --version" in response
to such a question (no need to do that now, as I've found that there's an -
apparently non-working - su.exe packaged in the latest "sh-utils"
|\ _,,,---,,_ firstname.lastname@example.org
ZZZzz /,`.-'`' -. ;-;;,_ email@example.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!
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html