<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>32606</bug_id>
          
          <creation_ts>2016-10-12 18:20:25 +0300</creation_ts>
          <short_desc>not authorized to connect to X after 2 invocations of su</short_desc>
          <delta_ts>2016-10-20 13:47:54 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>su</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>159187</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-10-12 18:20:25 +0300</bug_when>
    <thetext>$ rpm -qf &quot;$(which su)&quot;
su-0.60-alt34

(I&apos;m using the fresh regular-wmaker with Sisyphus.)

If I do &quot;su&quot; a single time (in an X terminal in my X session), I can connect to X (example: xmessage hi):

either

su -

or (a user named &quot;test&quot;)

su - test

-- both work. &quot;xauth list&quot; lists one cookie.

But after doing &quot;su&quot; 2 times (with a different user, not to re-use the same cookie, probably), the X clients fail to connect:

[imz@baseimz ~]$ su -
Password: 
[root@baseimz ~]# xmessage hi
Warning: Cannot convert string &quot;vlines2&quot; to type Pixmap
[root@baseimz ~]# su - test
[test@baseimz ~]$ xmessage hi
No protocol specified
Error: Can&apos;t open display: :0
[test@baseimz ~]$ echo $DISPLAY 
:0
[test@baseimz ~]$ xauth list
xauth:  file /home/test/.Xauthority does not exist
[test@baseimz ~]$</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>