[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Running startx fails as a non-privileged user



On Fri, 2005-02-04 at 05:17 +0000, Pigeon wrote:
> On Wed, Feb 02, 2005 at 08:06:58PM -0600, Ron Johnson wrote:
> > On Wed, 2005-02-02 at 23:25 +0000, Pigeon wrote:
> > > Sorry, not "non-Debian", but "non-woody" on a woody box (backport,
> > > 4.3.0-0ds2.0.0woody1, compiled from source).
> > 
> > Hmmm, they don't look like setuid :
> > 
> > # dir /usr/X11R6/bin/X
> > lrwxrwxrwx  1 root root 22 2005-02-02 11:52 /usr/X11R6/bin/X
> >           -> /usr/X11R6/bin/X Free86
> > 
> > # dir /usr/X11R6/bin/XFree86
> > -rwxr-xr-x  1 root root 1745740 2004-12-15 13:19 /usr/X11R6/bin/XFree86
> > 
> > 
> > Should I do:
> > # chmod 4000 /usr/X11R6/bin/XFree86
> 
> Well, something's slightly different, because on my box
> /usr/X11R6/bin/X is a 7k-odd binary; looks like it reads
> Xwrapper.config and execs the main binary, but it's definitely setuid
> root. So is the original file in the build directory, and the one in
> the xserver-common .deb. And the debconf templates file in the 
> xserver-common .deb mentions the X server running with superuser
> privileges. So I don't think that by endorsing your above chmod
> suggestion I'm suggesting anything dangerous... just the equivalent of
> how it is on my box, which I'm pretty sure is the way it's intended to
> be. It's more of a puzzle to me why yours isn't setuid to begin with.

It was a few days ago!

This got me back to running as an NPU:
  # chmod 4755 /usr/X11R6/bin/XFree86

Thanks.

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B I prefer encrypted mail.

"A C program is like a fast dance on a newly waxed dance floor by
people carrying razors."
Waldi Ravens

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: