# Ubuntu server useradd vs adduser shell assingment?

**URL:** <https://community.learnlinux.tv/t/ubuntu-server-useradd-vs-adduser-shell-assingment/186>\
**Category:** Linux on Servers\
**Created:** [January 24, 2021, 1:44am UTC](https://community.learnlinux.tv/t/ubuntu-server-useradd-vs-adduser-shell-assingment/186 "2021-01-24T01:44:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brent](https://community.learnlinux.tv/letter_avatar_proxy/v4/letter/b/ec9cab/32.png) [@Brent](https://community.learnlinux.tv/u/Brent)\
**Post date:** [January 24, 2021, 1:44am UTC](https://community.learnlinux.tv/t/ubuntu-server-useradd-vs-adduser-shell-assingment/186/1 "2021-01-24T01:44:19Z")

</div>

I noticed with useradd the shell is /bin/sh and adduser is /bin/bash. Why the difference? Is one better then the other?

---

<div class="post-metadata">

**Author:** ![datapioneer](https://community.learnlinux.tv/user_avatar/community.learnlinux.tv/datapioneer/32/14_2.png) [@datapioneer](https://community.learnlinux.tv/u/datapioneer)\
**Post date:** [January 24, 2021, 4:00pm UTC](https://community.learnlinux.tv/t/ubuntu-server-useradd-vs-adduser-shell-assingment/186/2 "2021-01-24T16:00:46Z")

</div>

Brent, the _useradd_ command is a user management built-in command present in all Linux distros which is a low-level command for adding users in the system and has limitations. On the other hand, the _adduser_ command is a more sophisticated user management command which Ubuntu uses as do other Linux developers which incorporates a Perl script to process the addition of users as well as their home directories and the like. When adduser is invoked in the Terminal, useradd is actually running in the background, but the Perl script takes care of some of the more sophisticated functionality for the Linux sysadmin.

---

<div class="post-metadata">

**Author:** ![jay](https://community.learnlinux.tv/user_avatar/community.learnlinux.tv/jay/32/649_2.png) [@jay](https://community.learnlinux.tv/u/jay)\
**Post date:** [January 28, 2021, 1:47am UTC](https://community.learnlinux.tv/t/ubuntu-server-useradd-vs-adduser-shell-assingment/186/3 "2021-01-28T01:47:05Z")

</div>

^ great answer

In regards to the shell though, that just means one was tested on /bin/sh and the other /bin/bash. Sometimes it even comes down to the preferences of whomever wrote the script.
