Linux System Administrator: Create a non interactive user (nologin)


Question: You are given an app server called app02 (172.16.238.11) with username steve and password Am3ric@ . Now login to app02 server by ssh and create a user named shawon as a non interactive user . That means user will not be required to login.

Solution:

In the terminal type ssh [email protected] 
Then type the password


Now Login as root by typing 

sudo su



After login as a root now you can create a non interactive user. In the terminal, type the below comand.

sudo adduser shawon -s /sbin/nologin/

Check user list by typing below command

cut -d: -f1 /etc/passwd


 

Download Coding Interview Book and Get More Tutorials for Coding and Interview Solution: Click Here

Download System Design Interview Book and Get More Tutorials and Interview Solution: Click Here

Do you need more Guidance or Help? Then Book 1:1 Quick Call with Me: Click Here

Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment