Bug 54984 - kdepasswd doesn't work as expected
Summary: kdepasswd doesn't work as expected
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kdeutils
Version: 7.3
Hardware: s390
OS: Linux
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2001-10-23 22:55 UTC by Ben Levenson
Modified: 2005-10-31 22:00 UTC (History)
0 users

Clone Of:
Last Closed: 2001-10-24 08:54:33 UTC

Attachments (Terms of Use)

Description Ben Levenson 2001-10-23 22:55:59 UTC
Description of Problem:
can't change root or standard user passwd w/ kdepasswd. 

Version-Release number of selected component (if applicable):

How Reproducible:

Steps to Reproduce:
1. launch kdepasswd (as root)
2. enter original passwd
3. enter identical passwords in <Password> and <Verify> fields:
   Sorry, passwords do not match <OK>
4. just to see what happens, enter original passwd in both fields:
   Conversation with 'passwd' failed. <OK>
   Information: Your password has been changed. <OK>
when the same steps are performed as a standard user, the utility doesn't
appear to accept the original passwd:
 Error: Conversion with 'passwd' failed. <OK>
Then it prompts you for the new passwd.... 
 Sorry: Conversion with 'passwd' failed. <OK>
 Information: Your password has been changed. <OK>
But the password is not changed in either instance.
Additionally, the following message is displayed on the terminal that is
used to launch the utility:
   passwd: Only root can specify a username

Additional Information:
what is the purpose of the --user option? The binary executes the same
way with or without it. Is the root user supposed to be able to use
kdepasswd to change standard users' passwords w/ this option? If so, 
this is broken as well:
kdepasswd & kdepasswd --user => both appear to launch the passwd utility
                                for the user that launched them.
kdepasswd veloce & kdepasswd --user veloce => both fail w/ the same error
                                even when executed as root:
                                message: "Unexpected argument 'veloce'.
                                (veloce is a standard user on my system.)

Comment 1 Ben Levenson 2001-10-23 22:58:23 UTC
problem also exists on i386.

Comment 2 Bernhard Rosenkraenzer 2001-10-24 08:54:28 UTC
This is because of a change in passwd - older versions used to allow user bero 
to run "passwd bero", newer versions complain that only root can specify a 
user name, even if the user name is the user's own name. :/

Adapting kdepasswd code...

Comment 3 Bernhard Rosenkraenzer 2001-10-24 09:33:42 UTC
I've fixed this in CVS, and thrown a new package at dist-7.2-scratch (won't 
fix dist-8.0 for now - 8.0 will have KDE 3.x anyway).

It'll automatically be fixed when we release the update to KDE 2.2.2 on 
November 12.

Note You need to log in before you can comment on or make changes to this bug.