Bug#615153: exec: 58: /usr: Permission denied
13.04.2011 11:55, Jonathan Nieder wrote:
[]
>> So, when I restart my machine
>> and try to start my X with the command "startx", the system returns the error:
>> "xinit: connection to X server lost" and after said "Wait for X server to shut
>> down" and stayed with prompt flashing again.
>
> but the strace you sent does not show that message[2]. Instead it shows
>
> X: user not authorized to run the X server, aborting
>
> due to
>
> open("/etc/X11/Xwrapper.config", O_RDONLY) = -1 EACCES (Permission denied)
>
> What does "ls -l /usr/bin/X /etc/X11/Xwrapper.config" tell? For reference,
> on my system, it gives
>
> -rw------- 1 root root 601 Jan 31 08:31 /etc/X11/Xwrapper.config
> -rwsr-sr-x 1 root root 9024 Apr 2 10:23 /usr/bin/X
>
> Notice in particular the setuid ("s") bits on X. Is it the same on yours?
> Do you use any unusual filesystem or kernel feature (selinux,
> apparmor, etc) that might cause that not to work?
When you run something under strace, setuid/setgid bits
are ignored by the kernel, the processes will run as
user who started them. This is significant difference
in environment with and without strace. JFYI.
/mjt
Reply to: