Fedora – adduser has no difference from useradd

fedorauseradd

When I use the adduser command on fedora, it's not aksing for password or fullname.
It's working exactly like useradd.
I don't understand why.

[hugues@localhost ~]$ sudo adduser user1
[hugues@localhost ~]$ sudo useradd user2

And it creates two users in /etc/passwd

user1:x:1004:1010::/home/user1:/bin/bash 
user2:x:1005:1011::/home/user2:/bin/bash

Best Answer

in fedora there is only useradd command, adduser is just a symlink to useradd.

you can check that with the following command:

ls -ld /usr/sbin/adduser

the output of the command:

[root@fedora28 ~]# ls -ld /usr/sbin/adduser
lrwxrwxrwx. 1 root root 7 Feb 6 05:37 /usr/sbin/adduser -> useradd
Related Question