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

Re: Running startx fails as a non-privileged user



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.

-- 
Pigeon

Be kind to pigeons
Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F

Attachment: signature.asc
Description: Digital signature


Reply to: