useradd with * in passwd field

Aldo Foot lunixer at gmail.com
Mon Apr 6 16:16:28 UTC 2009


On Mon, Apr 6, 2009 at 7:50 AM, Sudarshan Soma <sudarshan12s at gmail.com> wrote:
> 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

You mean not let it login ever?
Then change the shell entry as shown.
       myuser:*:12:23:guest:/:/sbin/nologin

You cannot even login from the root account, you get a
message that says: "This account is currently not available."
It works well for service accounts that do not require login or
user interaction.

Also, please when replying, post at the bottom of the message.
~af




More information about the fedora-list mailing list