passwd alone after sudo/pfexec changes original users's password
sudo -i or pfexec bash will allow a user to gain a root shell, which is nice, but then, if the user attempts to change the root password from within this shell, passwd defaults to the originating user, not root. This is probably wrong (at least compared to other systems I've worked on) and should be fixed.
roy@mime:~$ pfexec bash roy@mime:~# passwd passwd: Changing password for roy New Password:
Updated by Guido Berhörster over 8 years ago
- Status changed from New to Rejected
- Assignee set to Guido Berhörster
passwd(1) does not work like this on Solaris, when called without arguments it changes the password of the user which is logged into the current terminal. Use "passwd root" with sufficient privileges instead.