Answer for KodeKloud Question - Add a user with a non-interactive shell

 The System admin team of xFusionCorp Industries has installed a backup agent tool on all app servers. As per the tool's requirements, they need to create a user with a non-interactive shell.

Therefore, create a user named Siva with a non-interactive shell in the app01 server.

Answer

ssh <user>@<server>

sudo su 

adduser siva -s /sbin/nologin


Note: ** The question copied for learning purposes.**, Commands are correct but based on your question the server and user name(siva) might differ so please do check. 

check below video too for how to do the task (i have done a sample task on  Ubuntu OS)



 





No comments:

Post a Comment

Featured Post

Answer for Kodekloud DEVOPS Questions - Init container in Kubernetes

Question: 1. Create a Deployment named as ic-deploy-devops. 2. Configure spec as replicas should be 1 , labels app should be ic-devops , ...