Ask Your Question

what is differance between "adduser" and "useradd"?

asked 2015-08-15 16:03:13 -0500

geleem gravatar image

when trying to add a user to a group, which should one use. adduser or useradd?

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted

answered 2015-08-15 16:17:57 -0500

sideburns gravatar image

They're just two names for the same command. If you use man adduser you get the man page for useradd.

edit flag offensive delete link more

answered 2015-08-15 16:33:45 -0500

masteroman gravatar image

As sideburns mentioned, they're the same, in fact adduser is just a symbolic link to useradd command in Fedora:

$ ls -ld /usr/sbin/adduser
lrwxrwxrwx. 1 root root 7 Nov 26  2014 /usr/sbin/adduser -> useradd

So basically it doesn't matter which command do you use. You can even use usermod ;-)

usermod -a -G group user
edit flag offensive delete link more

answered 2015-08-15 19:46:34 -0500

The command adduser is a symbolic link to command useradd. Both share the same man pages.

edit flag offensive delete link more

answered 2015-08-31 06:38:15 -0500

srakitnican gravatar image

In fedora they are the same thing but in other distros may be a different thing. For example ubuntu uses a perl script for adduser command which works and behaves a little different. I suggest get used to term useradd (especially for scripts) because that's what the program is called anyway .

edit flag offensive delete link more

Question Tools


Asked: 2015-08-15 16:03:13 -0500

Seen: 850 times

Last updated: Aug 15 '15