This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: logis as root?


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?

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

Right, can I control this with a command?

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

Thanks!

>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 unknow
n Cygwin"

Regards

Salvo


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]