Bugzilla – Bug 23
Root passwd vulnerable to change.
Last modified: 2001-01-21 19:15:19 MST
Tested on i386 linux RH 6.1 & 6.2. if a user has /usr/bin/passwd as an allowed command then a user can change the root passwd by typing "sudo passwd" and then entering a passwd. Adding lines like !/usr/bin/passwd root to the sudoers file does not change this behaviour. Sudo SHOULD change the users passwd by default if no user is specified.
This is not a bug in sudo. If you don't want a user to be able to change root's password then don't give them access /usr/bin/passwd or restrict them to running it with an argument (that is not "root").