Debian / Ubuntu
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 like this:
ggarron@debian:~/tmp$ sudo adduser test
Adding user `test' ...
Adding new group `test' (1004) ...
Adding new user `test' (1003) with group `test' ...
Creating home directory `/home/test' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for test
Enter the new value, or press ENTER for the default
Full Name []: gasf
Room Number []: asdg
Work Phone []: asdf
Home Phone []: asdf
Other []: asdf
Is the information correct? [Y/n] y
As you can see the script will do the job for you, I prefer using the command itself, as I like to have the control, but is up to you which one to use.
De esta manera podemos concluir que el COMANDO es useradd, pero adduser también funciona, la diferencia en que al ser un SCRIPT (programa) que llama a useradd es más completo porque nos ahorra trabajo, introduciendo contraseñas, creando el directorio home del usuario. Lo mismo ocurre con addgroup y groupadd y, en definitiva, cualquiera que utilicéis es perfectamente válido.
No hay comentarios:
Publicar un comentario