What option is used with the useradd command to specify the users - ProProfs Discuss
Advertisement

What option is used with the useradd command to specify the users login shell?

Asked by Tobyyy, Last updated: Mar 19, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

tobyyy

tobyyy

tobyyy
Tobyyy

Answered Nov 26, 2019

-s

When we create the user it assign the bash shell to user, to assign the different shell use the -s option. Example: useradd -s /bin/sh user1 : which creates the user user1 by assigning the /bin/sh shell. You can check the /etc/passwd file to check the user id, users private group id, home directory and login shell.
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.