Bug#3244: no subject)
Moin
Martin> Subject: Changing wrong password Package: passwd Version: 1.0-4
Martin>
Martin> Good day folks,
Martin>
Martin> recently I noticed that the password program doesn t change the
Martin> password it should. If I su and call passwd the root password
Martin> isn't changed, but my user password.
Martin>
Martin> I think (?!) this can be fixed by looking at the uid/euid when
Martin> trying to find out for which user the program should work.
Martin>
Martin> Here's an excerpt:
Martin>
Martin> namib!joey:~> su - Password: namib!root:~# passwd Changing password
Martin> for joey Enter new password: Re-type new password: You misspelled
Martin> it. Password not changed.
Hast Du mal 'su' ohne '-' versucht?.
Von su(1):
-, -l, --login
Make the shell a login shell. This means the fol-
lowing. Unset all environment variables except
`TERM', `HOME', and `SHELL' (which are set as
described above), and `USER' and `LOGNAME' (which
are set, even for the super-user, as described
above), and set `PATH' to a compiled-in default
value. Change to USER's home directory. Prepend
"-" to the shell's name, to make it read its login
startup file(s).
Tschoe,
--
Dirk Eddelb"uttel http://qed.econ.queensu.ca/~edd
Reply to: