Ubuntu – the difference between adduser and useradd adduseruseradd What is the difference between the commands adduser and useradd on Ubuntu? Best Answer useradd is native binary compiled with the system. But, adduser is a perl script which uses useradd binary in back-end. adduser is more user friendly and interactive than its back-end useradd. There's no difference in features provided. Source: What's the difference between “adduser” and “useradd”? Related SolutionsUbuntu – password does not work with useradd -p From man useradd : -p, --password PASSWORD The encrypted password, as returned by crypt(3). The default is to disable the password. As you can see the PASSWORD with -p option is the encrypted password returned by the crypt(3) library function. If you use -p password1, the system will consider this plain text password1 as the encrypted shadow password entry in /etc/shadow. The solution is to use the encrypted password here with -p which is unsafe, you should set the password interactively. For example create the suer first : sudo useradd -m -s /bin/bash guest_user Now set the password : sudo passwd guest_user Or better use adduser instead : sudo adduser --gecos '' guest_user Ubuntu – Difference between adduser and usermod -G -a adduser and usermod are two different utilities which have in common the fact that both can add a user to a group. According to man adduser adduser is friendlier front ends to the low level tools like useradd, groupadd and usermod programs. More info: man adduser : adduser, addgroup - add a user or group to the system man usermod : usermod - modify a user account Related QuestionUbuntu – password does not work with useradd -pUbuntu – Difference between adduser and usermod -G -a
Best Answer
Source: What's the difference between “adduser” and “useradd”?