Project

General

Profile

Bug #271

passwd alone after sudo/pfexec changes original users's password

Added by Roy Sigurd Karlsbakk over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Category:
OS/Net (Kernel and Userland)
Target version:
-
Start date:
2010-09-28
Due date:
% Done:

0%

Estimated time:
Difficulty:
Tags:

Description

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: 

History

#1

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.

Also available in: Atom PDF