tags #687164 moreinfo
thanks

Hi,

is this still reproducible in current unstable?

On Mon, Sep 10, 2012 at 02:50:14PM +0200, Oswald Buddenhagen wrote:
> sudo apparently sets the wrong requesting user (which is just the real
> uid of the process, iirc) when calling the pam stack, which breaks at
> least pam_xauth. compare the debug outputs:
> 
> === su (works) ===
> pam_unix(su:session): session opened for user root by obuddenh(uid=1002)
> pam_xauth(su:session): requesting user 1002/1002, target user 0/0
> pam_xauth(su:session): /home/obuddenh/.xauth/export does not exist, ignoring
> pam_xauth(su:session): /root/.xauth/import does not exist, ignoring
> pam_xauth(su:session): reading keys from `/home/obuddenh/.Xauthority'
> pam_xauth(su:session): running "/usr/bin/xauth -f /home/obuddenh/.Xauthority 
> nlist :0" as 1002/0
> pam_xauth(su:session): writing key `0100 0007 74726f6c6c3038 0001 30 0012 
> 4d49542d4d414749432d434f4f4b49452d31 0010 8977806e7957465e43f8847d0562c87d ' 
> to temporary file `/root/.xauthyPpqBT'
> pam_xauth(su:session): running "/usr/bin/xauth -f /root/.xauthyPpqBT nmerge 
> -" as 0/0
> 
> === sudo (broken) ===
> pam_unix(sudo:session): session opened for user root by obuddenh(uid=0)
> pam_xauth(sudo:session): requesting user 0/0, target user 0/0
> pam_xauth(sudo:session): /root/.xauth/export does not exist, ignoring
> pam_xauth(sudo:session): /root/.xauth/import does not exist, ignoring
> pam_xauth(sudo:session): reading keys from `/root/.Xauthority'
> pam_xauth(sudo:session): running "/usr/bin/xauth -f /root/.Xauthority nlist 
> :0" as 0/1002
> pam_xauth(sudo:session): no key

How would I obtain that debug output?

Greetings
Marc

Reply via email to