Skip to content

Instantly share code, notes, and snippets.

@AbdullahGhani1
Last active March 25, 2026 22:21
Show Gist options
  • Select an option

  • Save AbdullahGhani1/607b952ab75b47820bc3e763008301bb to your computer and use it in GitHub Desktop.

Select an option

Save AbdullahGhani1/607b952ab75b47820bc3e763008301bb to your computer and use it in GitHub Desktop.
Create a Linux User with non-interactive shell - KodeKloud

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 mark with a non-interactive shell in the app02 server

Click on ✔ and Do Task Again

Solution:-

SSh acording to Task

ssh tony@stapp01 ## AppServer 1 Pass= Ir0nM@n
### OR
ssh steve@stapp02 ## Appserver 2 Pass = Am3ric@
### OR
ssh banner@stapp03 ## AppServer 3 Pass = BigGr33n

Replace user Name Acording To Task

sudo adduser user -s /sbin/nologin
cut -d: -f1 /etc/passwd
@pratipc
Copy link
Copy Markdown

pratipc commented Mar 25, 2026

how to check for if i have successfully added the user ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment