Bug 297

Summary: Validating user with /etc/passwd
Product: Sudo Reporter: Shamim <shamim_99>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED INVALID    
Severity: normal    
Priority: low    
Version: 1.6.8   
Hardware: PC   
OS: Other   

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.