useradd with * in passwd field

Stephen Berg (Contractor) stephen.berg.ctr at nrlssc.navy.mil
Mon Apr 6 14:53:26 UTC 2009


Sudarshan Soma 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 should probably use "passwd -l <username>" then.  Let the passwd 
command lock the account properly.

-- 
Stephen Berg
Systems Administrator
NRL Code: 7321
Office: 228-688-5738
stephen.berg.ctr at nrlssc.navy.mil 




More information about the fedora-list mailing list