On Debian or Ubuntu systems, useradd is a command itself, and you can create users and define options to them using this command, and adduser is a perl script, that uses useradd to create the account, asking you the password, Full-name, phone and others ..
On Fedora or CentOS systems, adduser is just a symbolic link to useradd, but may try to copy the script from a Debian system to the CentOS one, I have never tried it, and may need to modify it a little before using it.
On Gentoo systems, is the same as in CentOS or Fedora, adduser is just a symbolic link to useradd.
On Debian or Ubuntu systems, useradd is a command itself, and you can create users and define options to them using this command, and adduser is a perl script, that uses useradd to create the account, asking you the password, Full-name, phone and others .. On Fedora or CentOS systems, adduser is just a symbolic link to useradd, but may try to copy the script from a Debian system to the CentOS one, I have never tried it, and may need to modify it a little before using it. On Gentoo systems, is the same as in CentOS or Fedora, adduser is just a symbolic link to useradd.
"useradd" command and sometimes adduser command. Please refer to the manual page of the command by issuing "man useradd" for detailed information
su command is used to change the user.
The only other way to create a user other than the appropriate adduser or useradd command is to use a graphical frontend to these tools, such as GNOME's User Manager or KDE's KUser.
In linux adduser and useradd commands are used to add user account.
The syntax is the only difference. Both accomplish the same thing and if you compare the man pages of these commands, you will see that they are effectively the same text. useradd is the 'standard' UNIX command for adding users, present on solaris, HPUX, etc. mkuser follows aix specific syntax that uses name,value pairs to define the attributes.
There are many variations of the useradd command; most standard installations may not have this switch. Please identify which Unix system you are talking about.
Use useradd command
useradd <username> <other-options> For detailed information, please refer the man (manual) pages ex: man useradd
There is a command called useradd in Linux which you can use to add a new user. Here's an example 1. Add the user (you need to be a superuser to run this command) # useradd test 2. Set the password # passwd test Changing password for user test. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully.
To create a new user account under any Linux distribution use command called useradd. The system administrator is responsible for creating account. Login as root user (or use sudo command).
There are two ways you can add a user on Fedora 9. The first is to use the User Manager tool. The second is to use the command line tool useradd.