useradd with * in passwd field

2009-04-06 Thread Sudarshan Soma
Hi All, I need to add a user who will have entry in the /etc/passwd file as below, where the passwd field is marked as * myuser:*:12:23:guest:/:/bin/bash I need to do this by using command useradd, but i am not able to find easier way to do this by commands other than manually editing passwd

Re: useradd with * in passwd field

2009-04-06 Thread Sudarshan Soma
Thanks Chris. I got the command , usermod -p * user /dev/null Actually i want to make user with no access at any time. Best Regards, pavan On Mon, Apr 6, 2009 at 7:46 PM, Chris Tyler ch...@tylers.info wrote: On Mon, 2009-04-06 at 19:37 +0530, Sudarshan Soma wrote: Hi All, I need to add