0

Adduser without login

I want to create a user in my linux system, but the user must not have a login session, so how can i do that?

Shell useradd Add a comment
jackbrookes
asked Jan 30 2018

Answer

0

Use the below command to add a user with no login shell

useradd user1 -s /sbin/nologin
Add a comment
parthiban
asked Feb 01 2018
edited Oct 05 2018
Post your Answer