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

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

    <bug>
          <bug_id>33439</bug_id>
          
          <creation_ts>2017-05-01 12:24:19 +0300</creation_ts>
          <short_desc>passwd without username changes password for another user under su -</short_desc>
          <delta_ts>2017-05-01 13:54:48 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p8</product>
          <component>passwd</component>
          <version>не указана</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>33440</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          
          
          <qa_contact name="qa-p8@altlinux.org">qa-p8</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>163507</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2017-05-01 12:24:19 +0300</bug_when>
    <thetext>$ rpm -qf &quot;$(which passwd)&quot; &quot;$(which su)&quot;
passwd-1.0.13-alt1
su-0.60-alt34
$ apt-cache depends passwd | sed -nre &apos;s:^    ::p&apos; | sort -u
control-0.7.6-alt1
glibc-core-6:2.23-alt3
libpam0-1.3.0-alt1
pam0-config-1.7.0-alt1
pam-config-1.7.0-alt1
sh-3.2.57-alt1
tcb-utils-1.1-alt1
$ 

I expect to change the password for root, but passwd without username changes password for another user under &quot;su -&quot;:

imz@rollerderby ~ $ su -
Password: 
rollerderby ~ # passwd
passwd: updating all authentication tokens for user imz.

...

(First, I didn&apos;t notice that the username is written in the message and couldn&apos;t understand what was happening!)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163513</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2017-05-01 13:54:48 +0300</bug_when>
    <thetext>This has been a specific &quot;feature&quot; for a long time -- https://bugzilla.altlinux.org/show_bug.cgi?id=33440#c3 .</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>