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
0 comments:
Post a Comment