Bug 297 - Validating user with /etc/passwd
Validating user with /etc/passwd
Status: RESOLVED INVALID
Product: Sudo
Classification: Unclassified
Component: Sudo
1.6.8
PC Other
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-07 19:05 MDT by Shamim
Modified: 2008-11-05 19:59 MST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shamim 2008-08-07 19:05:43 MDT
Whenever I'm trying to execute script without sudo it works.
$  sh /home/test 
 testing sudo execution 
mpmt@Server1 [~] 

However I tried to excute with sudo. It gives below error. It print the same message 3 times, without giving me any option to re-enter password.
$  sudo sh /home/test 
Sorry, try again. 
Sorry, try again. 
Sorry, try again. 
sudo: 3 incorrect password attempts 
mpmt@Server1 [~] 
$ 

The sudo is compiled with PAM enableb. But when there is no PAM available on the system then it should validate user with /etc/passwd!

Please correct if I'm missing something.

Regards
Comment 1 Todd C. Miller 2008-11-05 19:59:08 MST
You need to configure pam for use by sudo.  See the sample.pam file that comes with sudo.