[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: useradd with * in passwd field



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
> 
Depending on exactly what you are after, you man want to look at
setting the shell to /sbin/nologin.
(-s /sbin/nologin)

-- 

A:  Because it messes up the order in which people normally read text.
Q:  Why is top-posting a bad thing?


Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]