Bug 51889

Summary: does not accept 'user' argument or option
Product: [Applications] kdepasswd Reporter: Karolina Lindqvist <pgd-karolinali>
Component: generalAssignee: Geert Jansen <g.t.jansen>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Karolina Lindqvist 2002-12-14 10:51:34 UTC
Version:            (using KDE KDE 3.0.99)
Installed from:    Compiled From Sources
OS:          Linux

It looks like kdepasswd can accept a "--user" option, but it does not work. It is probably supposed to be a <user> argument, and the programs works if a '+' is stuck in front of "user" in the KCmdLineOptions.

The following assumes the patch of inserting a '+' is applied:

If the <user> argument is specified, the program should check if it is the root user calling the program, since otherwise it will not change the password for that user but for the current user.

If the root user is using that argument, it will give the wrong message and say "your password has been changed" instead of saying "the password for user xxx has been changed"
Comment 1 Waldo Bastian 2003-04-21 20:52:34 UTC
Subject: kdeutils/kdepasswd

CVS commit by waba: 

CCMAIL: 51889-done@bugs.kde.org
Accept 'user' as argument (when running as root) (BR51889)


  M +16 -6     kdepasswd.cpp   1.7
  M +8 -6      passwd.cpp   1.9
  M +3 -2      passwd.h   1.4
  M +21 -13    passwddlg.cpp   1.8
  M +3 -6      passwddlg.h   1.2
  M +1 -1      userinfo/userinfo.cpp   1.6