LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   "useradd: unable to lock password file" need help (https://www.linuxquestions.org/questions/programming-9/useradd-unable-to-lock-password-file-need-help-217809/)

monzter 08-15-2004 06:17 AM

"useradd: unable to lock password file" need help
 
useradd: unable to lock password file

this is an error message when I use adduser command
with sudo -u mysudoer adduser newuser

mysudoer set NOPASSWD to this command

what should I do please help

DanTheKiwi 08-16-2004 12:59 AM

-u mysudoer would cause the adduser script to run as someone other than root.. Before writing to the password file it has to be locked to avoid 2 people writing to it at once, If i'm right, only root can do this. Run sudo without any options to run the program as root.

If I'm right, the NOPASSWD option probaby means you don't have to enter mysudoer's password to run the command.


All times are GMT -5. The time now is 08:51 PM.