Debian Bug report logs - #615153
exec: 58: /usr: Permission denied

version graph

Package: xserver-xorg; Maintainer for xserver-xorg is Debian X Strike Force <debian-x@lists.debian.org>; Source for xserver-xorg is src:xorg.

Reported by: Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>

Date: Sat, 26 Feb 2011 05:51:01 UTC

Severity: important

Tags: moreinfo

Found in version xorg/1:7.5+8

Done: Jonathan Nieder <jrnieder@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, unknown-package@qa.debian.org:
Bug#615153; Package other. (Sat, 26 Feb 2011 05:51:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>:
New Bug report received and forwarded. Copy sent to unknown-package@qa.debian.org. (Sat, 26 Feb 2011 05:51:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
To: submit@bugs.debian.org
Subject: exec: 58: /usr: Permission denied
Date: Sat, 26 Feb 2011 02:44:57 -0300
[Message part 1 (text/plain, inline)]
Subject: exec: 58: /usr: Permission denied
Package: other
Severity: important

Hi!

My problem happen after I did the distro upgrade... I pass 2 months out of
my
debian distro, and I used the testing version (Squeeze), but I return
yesterday
to my debian distro and the Squeeze becomes stable... so I did the change to
Debian testing again (now called Wheezy)... so I rename all my source
packages
like this source.list:

# deb cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official amd64 CD Binary-1
20090214-19:11]/ lenny main

# deb cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official amd64 CD Binary-1
20090214-19:11]/ lenny main

#mirrors oficiais
deb http://ftp.br.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.br.debian.org/debian/ wheezy main contrib non-free

#mirrors de segurança
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

#destinados para programas que lançam atualizações constantemente
#deb http://volatile.debian.org/debian-volatile squeeze/volatile main
#deb-src http://volatile.debian.org/debian-volatile squeeze/volatile main

#mirror multimídia
deb http://ftp.br.debian.org/debian-multimedia/ testing main
#deb http://ftp.debian-unofficial.org/debian testing main contrib non-free

#mirror wine:
#deb http://www.lamaresh.net/apt/ squeeze/main

So, I went to my Lxterminal and type: "sudo aptitude update". After I type:
"sudo aptitude safe-upgrade".

The system make a download of 839mb of data. Everything was made without any
errors reported... I not use any login manager... I do my login in getty and
after I start my X and window manager (fluxbox). 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. So, I tried invoke X with root
and
I had sucess! When I went to the .xsession-errors I saw this error:

Xsession: X session started for invisiblemanguard at Ter Fev 22 16:36:02 BRT
2011
exec: 58: /usr: Permission denied

Like the /usr couldn't be acess by a user... only root can... but I not
change
any priority of the system... I only updated to wheezy... that's it... sorry
for my english... It not my mother tongue =/ ;)

Any doubt or question send me a e-mail!

Health and Sucess!

reportbug_version "4.12.6"
mode novice
ui gtk2
offline
realname "Debian bug report"
email "invisiblemanguard-debianbugreport@yahoo.com.br"
no-check-uid
no-cc
header "X-Debbugs-CC: invisiblemanguard-debianbugreport@yahoo.com.br"
smtphost reportbug.debian.org

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

 Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information
[Message part 2 (text/html, inline)]
[reportbug-reportbug-20110222-2912-0VkUC5 (application/octet-stream, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, unknown-package@qa.debian.org:
Bug#615153; Package other. (Sat, 26 Feb 2011 06:12:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>:
Extra info received and forwarded to list. Copy sent to unknown-package@qa.debian.org. (Sat, 26 Feb 2011 06:12:05 GMT) Full text and rfc822 format available.

Message #10 received at 615153@bugs.debian.org (full text, mbox):

From: Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
To: 615153@bugs.debian.org
Subject: brief observation
Date: Sat, 26 Feb 2011 03:09:06 -0300
[Message part 1 (text/plain, inline)]
The file name attached to the message, instead of having other, has
reportbug ... was a mistake ... because my reportbug has a problem ...  when
I put "other" in the package name asked by reportbug, it makes a log to
reportbug, not to "other".
[Message part 2 (text/html, inline)]

Bug reassigned from package 'other' to 'general'. Request was from Martin Michlmayr <tbm@cyrius.com> to control@bugs.debian.org. (Sun, 27 Feb 2011 10:18:12 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, debian-devel@lists.debian.org:
Bug#615153; Package general. (Tue, 01 Mar 2011 15:24:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to 615153@bugs.debian.org:
Extra info received and forwarded to list. Copy sent to debian-devel@lists.debian.org. (Tue, 01 Mar 2011 15:24:03 GMT) Full text and rfc822 format available.

Message #17 received at 615153@bugs.debian.org (full text, mbox):

From: "Bernhard R. Link" <brlink@debian.org>
To: Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
Cc: 615153@bugs.debian.org
Subject: Re: Bug#615153: exec: 58: /usr: Permission denied
Date: Tue, 1 Mar 2011 16:20:11 +0100
* Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br> [110301 14:57]:
> My problem happen after I did the distro upgrade... I pass 2 months out of
> my debian distro, and I used the testing version (Squeeze), but I return
> yesterday to my debian distro and the Squeeze becomes stable... so I did
> the change to Debian testing again (now called Wheezy)...

A full upgrade is a very complicated thing to reproduce. And you seem to
have 3rd party repositories, so there are packages from other people
that might have bugs, so finding this will be complicated.

> so I rename all my source packages like this source.list:
>[...]
> #mirror multimídia
> deb http://ftp.br.debian.org/debian-multimedia/ testing main
> #deb http://ftp.debian-unofficial.org/debian testing main contrib non-free
>
> #mirror wine:
> #deb http://www.lamaresh.net/apt/ squeeze/main

As those are 3rd party repositories, there is some probability the bug
is there.

> So, I went to my Lxterminal and type: "sudo aptitude update". After I type:
> "sudo aptitude safe-upgrade".
>
> The system make a download of 839mb of data. Everything was made without any
> errors reported... I not use any login manager... I do my login in getty and
> after I start my X and window manager (fluxbox). 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. So, I tried invoke X with root
> and
> I had sucess! When I went to the .xsession-errors I saw this error:
>
> Xsession: X session started for invisiblemanguard at Ter Fev 22 16:36:02 BRT
> 2011
> exec: 58: /usr: Permission denied

Could you check the actual permissions of those directories?
Perhaps the output of "ls -la /" would be best.

Where things are mounted might also be interesting, i.e. the /etc/fstab
and the /proc/mounts files.

Other information interesting might be the /var/log/dpkg.* files
covering the interesting timespan.

(Saving /root/.bash_history and looking into it for anything interesting
might also be sensible).

	Bernhard R. Link




Information forwarded to debian-bugs-dist@lists.debian.org, debian-devel@lists.debian.org:
Bug#615153; Package general. (Fri, 25 Mar 2011 01:57:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to debian-devel@lists.debian.org. (Fri, 25 Mar 2011 01:57:04 GMT) Full text and rfc822 format available.

Message #22 received at 615153@bugs.debian.org (full text, mbox):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
Cc: 615153@bugs.debian.org
Subject: Re: exec: 58: /usr: Permission denied
Date: Thu, 24 Mar 2011 20:53:51 -0500
Hi,

Debian_bug_report wrote:

> When I went to the .xsession-errors I saw this error:
>
> Xsession: X session started for invisiblemanguard at Ter Fev 22 16:36:02 BRT
> 2011
> exec: 58: /usr: Permission denied

Could you send the (compressed) output of

 dpkg-query -W dash
 strace -f startx

?

Thanks,
Jonathan




Information forwarded to debian-bugs-dist@lists.debian.org, debian-devel@lists.debian.org:
Bug#615153; Package general. (Fri, 25 Mar 2011 05:03:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Joachim Breitner <nomeata@debian.org>:
Extra info received and forwarded to list. Copy sent to debian-devel@lists.debian.org. (Fri, 25 Mar 2011 05:03:03 GMT) Full text and rfc822 format available.

Message #27 received at 615153@bugs.debian.org (full text, mbox):

From: Joachim Breitner <nomeata@debian.org>
To: Jonathan Nieder <jrnieder@gmail.com>, 615153@bugs.debian.org
Subject: Re: Bug#615153: exec: 58: /usr: Permission denied
Date: Fri, 25 Mar 2011 10:30:41 +0530
[Message part 1 (text/plain, inline)]
Hi,

Am Donnerstag, den 24.03.2011, 20:53 -0500 schrieb Jonathan Nieder:
> Debian_bug_report wrote:
> > When I went to the .xsession-errors I saw this error:
> >
> > Xsession: X session started for invisiblemanguard at Ter Fev 22 16:36:02 BRT
> > 2011
> > exec: 58: /usr: Permission denied
> 
> Could you send the (compressed) output of
> 
>  dpkg-query -W dash
>  strace -f startx
> 
> ?

this sounds like http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=618023

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata
[signature.asc (application/pgp-signature, inline)]

Added tag(s) moreinfo. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Fri, 25 Mar 2011 05:09:02 GMT) Full text and rfc822 format available.

Message sent on to Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>:
Bug#615153. (Fri, 25 Mar 2011 05:09:05 GMT) Full text and rfc822 format available.

Message #32 received at 615153-submitter@bugs.debian.org (full text, mbox):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Joachim Breitner <nomeata@debian.org>
Cc: 615153-submitter@bugs.debian.org
Subject: Re: exec: 58: /usr: Permission denied
Date: Fri, 25 Mar 2011 00:07:01 -0500
tags 615153 + moreinfo
quit

Joachim Breitner wrote:

> this sounds like http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=618023

To me, it doesn't:

 Date: Sat, 26 Feb 2011 02:44:57 -0300
 Debian Release: wheezy/sid
   APT prefers testing
   APT policy: (500, 'testing')

Unfortunately the bug reporter seems to have gone missing.




Information forwarded to debian-bugs-dist@lists.debian.org, debian-devel@lists.debian.org:
Bug#615153; Package general. (Tue, 29 Mar 2011 19:45:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>:
Extra info received and forwarded to list. Copy sent to debian-devel@lists.debian.org. (Tue, 29 Mar 2011 19:45:03 GMT) Full text and rfc822 format available.

Message #37 received at 615153@bugs.debian.org (full text, mbox):

From: Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
To: 615153@bugs.debian.org
Subject: Re: Bug#615153: exec: 58: /usr: Permission denied
Date: Tue, 29 Mar 2011 16:42:56 -0300
[Message part 1 (text/plain, inline)]
Sorry for the delay, but I did all you request and compress in the .zip
file attached to you.

Regards.

2011/3/1 Bernhard R. Link <brlink@debian.org>

> * Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
> [110301 14:57]:
> > My problem happen after I did the distro upgrade... I pass 2 months out
> of
> > my debian distro, and I used the testing version (Squeeze), but I return
> > yesterday to my debian distro and the Squeeze becomes stable... so I did
> > the change to Debian testing again (now called Wheezy)...
>
> A full upgrade is a very complicated thing to reproduce. And you seem to
> have 3rd party repositories, so there are packages from other people
> that might have bugs, so finding this will be complicated.
>
> > so I rename all my source packages like this source.list:
> >[...]
> > #mirror multimídia
> > deb http://ftp.br.debian.org/debian-multimedia/ testing main
> > #deb http://ftp.debian-unofficial.org/debian testing main contrib
> non-free
> >
> > #mirror wine:
> > #deb http://www.lamaresh.net/apt/ squeeze/main
>
> As those are 3rd party repositories, there is some probability the bug
> is there.
>
> > So, I went to my Lxterminal and type: "sudo aptitude update". After I
> type:
> > "sudo aptitude safe-upgrade".
> >
> > The system make a download of 839mb of data. Everything was made without
> any
> > errors reported... I not use any login manager... I do my login in getty
> and
> > after I start my X and window manager (fluxbox). 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. So, I tried invoke X with
> root
> > and
> > I had sucess! When I went to the .xsession-errors I saw this error:
> >
> > Xsession: X session started for invisiblemanguard at Ter Fev 22 16:36:02
> BRT
> > 2011
> > exec: 58: /usr: Permission denied
>
> Could you check the actual permissions of those directories?
> Perhaps the output of "ls -la /" would be best.
>
> Where things are mounted might also be interesting, i.e. the /etc/fstab
> and the /proc/mounts files.
>
> Other information interesting might be the /var/log/dpkg.* files
> covering the interesting timespan.
>
> (Saving /root/.bash_history and looking into it for anything interesting
> might also be sensible).
>
>        Bernhard R. Link
>
[Message part 2 (text/html, inline)]
[files.zip (application/zip, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, debian-devel@lists.debian.org:
Bug#615153; Package general. (Tue, 29 Mar 2011 19:51:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>:
Extra info received and forwarded to list. Copy sent to debian-devel@lists.debian.org. (Tue, 29 Mar 2011 19:51:06 GMT) Full text and rfc822 format available.

Message #42 received at 615153@bugs.debian.org (full text, mbox):

From: Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
To: 615153@bugs.debian.org
Subject: Re: Bug#615153: exec: 58: /usr: Permission denied
Date: Tue, 29 Mar 2011 16:49:41 -0300
[Message part 1 (text/plain, inline)]
I forgot one thing... the /root/.bash_history file had nothing important to
see... only few commands without importance...

2011/3/29 Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>

> Sorry for the delay, but I did all you request and compress in the .zip
> file attached to you.
>
> Regards.
>
> 2011/3/1 Bernhard R. Link <brlink@debian.org>
>
>  * Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
>> [110301 14:57]:
>> > My problem happen after I did the distro upgrade... I pass 2 months out
>> of
>> > my debian distro, and I used the testing version (Squeeze), but I return
>> > yesterday to my debian distro and the Squeeze becomes stable... so I did
>> > the change to Debian testing again (now called Wheezy)...
>>
>> A full upgrade is a very complicated thing to reproduce. And you seem to
>> have 3rd party repositories, so there are packages from other people
>> that might have bugs, so finding this will be complicated.
>>
>> > so I rename all my source packages like this source.list:
>> >[...]
>> > #mirror multimídia
>> > deb http://ftp.br.debian.org/debian-multimedia/ testing main
>> > #deb http://ftp.debian-unofficial.org/debian testing main contrib
>> non-free
>> >
>> > #mirror wine:
>> > #deb http://www.lamaresh.net/apt/ squeeze/main
>>
>> As those are 3rd party repositories, there is some probability the bug
>> is there.
>>
>> > So, I went to my Lxterminal and type: "sudo aptitude update". After I
>> type:
>> > "sudo aptitude safe-upgrade".
>> >
>> > The system make a download of 839mb of data. Everything was made without
>> any
>> > errors reported... I not use any login manager... I do my login in getty
>> and
>> > after I start my X and window manager (fluxbox). 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. So, I tried invoke X with
>> root
>> > and
>> > I had sucess! When I went to the .xsession-errors I saw this error:
>> >
>> > Xsession: X session started for invisiblemanguard at Ter Fev 22 16:36:02
>> BRT
>> > 2011
>> > exec: 58: /usr: Permission denied
>>
>> Could you check the actual permissions of those directories?
>> Perhaps the output of "ls -la /" would be best.
>>
>> Where things are mounted might also be interesting, i.e. the /etc/fstab
>> and the /proc/mounts files.
>>
>> Other information interesting might be the /var/log/dpkg.* files
>> covering the interesting timespan.
>>
>> (Saving /root/.bash_history and looking into it for anything interesting
>> might also be sensible).
>>
>>        Bernhard R. Link
>>
>
>
>
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, debian-devel@lists.debian.org:
Bug#615153; Package general. (Wed, 13 Apr 2011 07:57:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to debian-devel@lists.debian.org. (Wed, 13 Apr 2011 07:57:03 GMT) Full text and rfc822 format available.

Message #47 received at 615153@bugs.debian.org (full text, mbox):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
Cc: 615153@bugs.debian.org, xserver-xorg@packages.debian.org
Subject: Re: exec: 58: /usr: Permission denied
Date: Wed, 13 Apr 2011 02:55:33 -0500
# Probably not an X bug, but one has to start somewhere.
# Please cc me on replies.
reassign 615153 xserver-xorg
quit

Hi again,

Debian_bug_report wrote[1]:

> Sorry for the delay,

Now it's my turn to apologize.  Our analysts have been very carefully
looking over the information you sent and --- hey, who am I kidding.
In the original report, you 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?

Also for reference I would be interested in the output from
"dpkg-query -W xserver-xorg x11-common".

That's all for now.  Hope that helps.

Regards,
Jonathan

[1] http://bugs.debian.org/615153
[2]
> So, I tried invoke X with root and
> I had sucess! When I went to the .xsession-errors I saw this error:
>
> Xsession: X session started for invisiblemanguard at Ter Fev 22 16:36:02 BRT 2011
> exec: 58: /usr: Permission denied

I admit I was more interested in what produces the latter message (so,
"sudo strace -f startx") but let's look at your stracelog for the
former.  First, a quick cast of characters:

 $ egrep '^[0-9]*  (clone|exec|wait|<... clone)' stracelog | think
 2300 startx
 - 2301 hostname
 - 2302 (startx)
   - 2303 hostname
   - 2304 grep
 - 2305 hostname
 - 2306 mcookie
 - 2307 mktemp
 - 2308 xauth
 - 2309 (startx)
   - 2310 xauth
   - 2311 sed
 - 2312 xauth
 - 2313 (startx)
   - 2314 xauth
   - 2315 sed
 - 2316 xauth
 - 2317 xinit
   - 2318 xserverrc -> X
 - 2319 rm

The expected symptom is "xinit: connection to X server lost", but
instead we get (from xinit):

  connect(3, {sa_family=AF_INET6, sin6_port=htons(6000), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 ECONNREFUSED (Connection refused)
  [...]
  connect(3, {sa_family=AF_INET, sin_port=htons(6000), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused)
  close(3)                          = 0
  wait4(2318, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], WNOHANG, NULL) = 2318
  write(2, "xinit: ", 7)            = 7
  write(2, "giving up", 9)          = 9
  write(2, "\n", 1)                 = 1
  write(2, "xinit: ", 7)            = 7
  write(2, "unable to connect to X server", 29) = 29
  write(2, ": Connection refused\n", 21) = 21

What happened to the server?

  open("/etc/X11/Xwrapper.config", O_RDONLY) = -1 EACCES (Permission denied)
  lstat("/etc/X11/X", {st_mode=S_IFLNK|0777, st_size=13, ...}) = 0
  readlink("/etc/X11/X", "/usr/bin/Xorg", 1024) = 13
  access("/etc/X11/X", X_OK)        = 0
  getuid()                          = 1000
  write(2, "X: user not authorized to run th"..., 54) = 54
  exit_group(1)                     = ?

Ah.




Bug reassigned from package 'general' to 'xserver-xorg'. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Wed, 13 Apr 2011 07:57:07 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#615153; Package xserver-xorg. (Wed, 13 Apr 2011 08:21:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Wed, 13 Apr 2011 08:21:08 GMT) Full text and rfc822 format available.

Message #54 received at 615153@bugs.debian.org (full text, mbox):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
Cc: 615153@bugs.debian.org
Subject: Re: exec: 58: /usr: Permission denied
Date: Wed, 13 Apr 2011 03:18:58 -0500
found 615153 xserver-xorg/1:7.5+8
quit

Jonathan Nieder wrote:

> 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 [...] kernel feature (selinux,
> apparmor, etc) that might cause that not to work?

I'm still very curious about the above.

> [...] unusual filesystem or [...]
>
> Also for reference I would be interested in the output from
> "dpkg-query -W xserver-xorg x11-common".

But this was lazy of me.  The supplied dpkg.log.* indicate

 - xserver-xorg 1:7.5+8
 - x11-common 1:7.5+7

and the supplied fstab says the filesystem is reiserfs.

Kernel is some version of 2.6.32-5-amd64, I suppose.




Bug Marked as found in versions xserver-xorg/1:7.5+8. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Wed, 13 Apr 2011 08:21:10 GMT) Full text and rfc822 format available.

Bug No longer marked as found in versions xserver-xorg/1:7.5+8. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Wed, 13 Apr 2011 08:33:06 GMT) Full text and rfc822 format available.

Bug Marked as found in versions xorg/1:7.5+8. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Wed, 13 Apr 2011 08:33:07 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#615153; Package xserver-xorg. (Thu, 14 Apr 2011 07:27:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Tokarev <mjt@tls.msk.ru>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Thu, 14 Apr 2011 07:27:03 GMT) Full text and rfc822 format available.

Message #65 received at 615153@bugs.debian.org (full text, mbox):

From: Michael Tokarev <mjt@tls.msk.ru>
To: Jonathan Nieder <jrnieder@gmail.com>, 615153@bugs.debian.org
Cc: Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>, xserver-xorg@packages.debian.org
Subject: Re: Bug#615153: exec: 58: /usr: Permission denied
Date: Thu, 14 Apr 2011 11:18:46 +0400
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




Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#615153; Package xserver-xorg. (Thu, 14 Apr 2011 07:42:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Thu, 14 Apr 2011 07:42:05 GMT) Full text and rfc822 format available.

Message #70 received at 615153@bugs.debian.org (full text, mbox):

From: Jonathan Nieder <jrnieder@gmail.com>
To: 615153@bugs.debian.org
Cc: Michael Tokarev <mjt@tls.msk.ru>, Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
Subject: Re: exec: 58: /usr: Permission denied
Date: Thu, 14 Apr 2011 02:38:29 -0500
Michael Tokarev wrote:

> 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.

Thanks, I should have remembered (allowing ptrace to control setuid
programs would be a huge security hole).  Sorry for the thinko.

invisiblemanguard, could you give an exact set of commands and the
exact output produced, when

 1) starting X as a normal user
 2) starting X as root

?  (Generally speaking, unless it involves sending megabytes of data,
being concrete when submitting bugs --- i.e., giving the reader a
complete account of what happened --- always tends to be helpful.)
I'd also still be interested in output from

 3) ls -l /usr/bin/X /etc/X11/Xwrapper.config
 4) sudo strace -o /tmp/startxlog startx




Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#615153; Package xserver-xorg. (Thu, 14 Apr 2011 07:45:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Thu, 14 Apr 2011 07:45:08 GMT) Full text and rfc822 format available.

Message #75 received at 615153@bugs.debian.org (full text, mbox):

From: Jonathan Nieder <jrnieder@gmail.com>
To: 615153@bugs.debian.org
Cc: Michael Tokarev <mjt@tls.msk.ru>, Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
Subject: Re: exec: 58: /usr: Permission denied
Date: Thu, 14 Apr 2011 02:44:40 -0500
Jonathan Nieder wrote:

> invisiblemanguard, could you give an exact set of commands and the
> exact output produced, when
>
>  1) starting X as a normal user
>  2) starting X as root
[...]
> I'd also still be interested in output from
>
>  3) ls -l /usr/bin/X /etc/X11/Xwrapper.config
>  4) sudo strace -o /tmp/startxlog startx

This last item (4) should of course include an -f, as in

	sudo strace -f -o /tmp/startxlog startx

Sorry for the sloppiness.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#615153; Package xserver-xorg. (Thu, 14 Apr 2011 08:27:26 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Tokarev <mjt@tls.msk.ru>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Thu, 14 Apr 2011 08:27:26 GMT) Full text and rfc822 format available.

Message #80 received at 615153@bugs.debian.org (full text, mbox):

From: Michael Tokarev <mjt@tls.msk.ru>
To: Jonathan Nieder <jrnieder@gmail.com>
Cc: 615153@bugs.debian.org, Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
Subject: Re: exec: 58: /usr: Permission denied
Date: Thu, 14 Apr 2011 12:20:26 +0400
14.04.2011 11:38, Jonathan Nieder wrote:
> Michael Tokarev wrote:
> 
>> 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.
> 
> Thanks, I should have remembered (allowing ptrace to control setuid
> programs would be a huge security hole).  Sorry for the thinko.
> 
> invisiblemanguard, could you give an exact set of commands and the
> exact output produced, when

I think it's not necessary.  See #618023:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=618023

The issue we see here is due to bug in dash which is now fixed.
This bug, if my theory is correct, should become a duplicate
of #618023.

Thanks.

/mjt




Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#615153; Package xserver-xorg. (Thu, 14 Apr 2011 09:03:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Thu, 14 Apr 2011 09:03:04 GMT) Full text and rfc822 format available.

Message #85 received at 615153@bugs.debian.org (full text, mbox):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: 615153@bugs.debian.org, Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
Subject: Re: exec: 58: /usr: Permission denied
Date: Thu, 14 Apr 2011 04:02:16 -0500
Hi Michael,

Michael Tokarev wrote:

> I think it's not necessary.  See #618023:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=618023
>
> The issue we see here is due to bug in dash which is now fixed.
> This bug, if my theory is correct, should become a duplicate
> of #618023.

How is that possible when

 (1) the submitter runs testing, not experimental
 (2) the version introducing that bug did not exist when the
     bug was reported?




Information stored :
Bug#615153; Package xserver-xorg. (Thu, 14 Apr 2011 19:36:18 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and filed, but not forwarded. (Thu, 14 Apr 2011 19:36:18 GMT) Full text and rfc822 format available.

Message #90 received at 615153-quiet@bugs.debian.org (full text, mbox):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
Cc: 615153-quiet@bugs.debian.org
Subject: Re: exec: 58: /usr: Permission denied
Date: Thu, 14 Apr 2011 14:35:44 -0500
Hi again,

Another item that would be useful:

 sh /usr/share/bug/xserver-xorg/script 3>&1

That makes the list:

 1) starting X as a normal user
 2) starting X as root
 3) ls -l /usr/bin/X /etc/X11/Xwrapper.config
 4) sudo strace -f -o /tmp/startxlog startx
 5) sh /usr/share/bug/xserver-xorg/script 3>&1

Sorry to fill up your inbox, but hope that helps.

Thanks and regards,
Jonathan




Reply sent to Jonathan Nieder <jrnieder@gmail.com>:
You have taken responsibility. (Mon, 25 Apr 2011 05:42:04 GMT) Full text and rfc822 format available.

Notification sent to Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>:
Bug acknowledged by developer. (Mon, 25 Apr 2011 05:42:04 GMT) Full text and rfc822 format available.

Message #95 received at 615153-done@bugs.debian.org (full text, mbox):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Debian_bug_report <invisiblemanguard-debianbugreport@yahoo.com.br>
Cc: 615153-done@bugs.debian.org
Subject: Re: exec: 58: /usr: Permission denied
Date: Mon, 25 Apr 2011 00:38:22 -0500
Jonathan Nieder wrote:

> Another item that would be useful:

No response.  For the future: invisiblemanguard, I highly recommend
reading
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

Sorry for the noise, all.




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 23 May 2011 07:37:25 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 01:24:38 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.