Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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:57:37 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Salvo cc: cygwin AT cygwin DOT com Subject: RE: logis as root? In-Reply-To: <001401c2cca5$14d52ba0$81dcb9c2@wittgenstein> Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Salvo, 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 > >account). > > 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 >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 unknown Cygwin" > > Regards > Salvo 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" package). Igor -- 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/