On Wed, 20 Aug 2014 10:01:45 -0500
Dan McGhee <[email protected]> wrote:

> On 08/20/2014 08:39 AM, Hazel Russman wrote:
> > Once again "sudo startx" works.
> >
> > If you want to take it further, I'm quite willing to do the legwork
> > but my instinct is to drop it and wait for the next stable LFS
> > version.
> 
> I have forgotten the particulars of your previous posts and know
> nothing of systyemd. However, this last you wrote reminded me of a
> situation in which I found myself last year.
> 
> ISTR that you had earlier written that you changed ownership of the
> xorg server to root. Given that, I ran into a similar situation in
> which I had all the files necessary to slip into a graphics
> environment, but couldn't based on various and sundry permission
> errors. In recovering I used <chown root:root /usr/bin/Xorg> and
> things still didn't work.
> 
> I was reminded that using chown resets all the bits and that the xorg 
> server not only needs to be owned by root, but also SUID root. Since 
> sudo works for you--and I think that means you are invoking root 
> privileges as a user--it's possible that something like this exists
> in your setup. Here is my result of <ls -alQ /usr/bin | grep Xorg>:
> 
> > -rwsr-sr-x 1 root root 12630128 Nov 29 2013 "Xorg"
> 
> I had forgotten until I saw this just now that it is also SGID.
> 
> Most of the time when I encounter difficulty the cause and fix are 
> frustratingly simple. A forrest and tree thing. Hope this helps.
> 
> Dan
> 

No, I didn't chown anything. I just ran startx as root, as a test
to see if it would work that way. And it did. I don't go around changing
ownership and permissions of system files unless someone tells me to.
You can really screw up your system doing that.

As far as I know, this version of X doesn't run suid; it uses a
separate Xwrapper program to do that for it.

Hazel
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to