What's the difference between useradd and adduser? When/why should I prefer using one or the other?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
|
||||
|
In the case of Debian and its related distros, adduser is a friendlier interactive frontend to useradd. |
|||||
|
|
On Ubuntu, useradd simply creates an entry in the user database (/etc/passwd etc.). adduser on the other hand also creates a home directory for the user, populates it with the content of /etc/skel and lets you set the password interactively. |
|||||
|
|
lrwxrwxrwx. 1 root root 7 Nov 17 13:52 /usr/sbin/adduser -> useradd One is a "shortcut" / "symbolic link" to the other. So no difference. This is on redhat linux (and centos / fedora), it may not hold true on other distros. |
||||
|
On FreeBSD: |
|||
|
|
Debian Linuxbased question. – unixman83 Mar 2 '12 at 18:45