Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 10-19-2004, 04:55 PM   #1
Registered: Jul 2004
Distribution: Debian, Ubuntu, FreeBSD, RHEL
Posts: 202

Rep: Reputation: 31
commands: adduser and useradd

what is the difference between the commands adduser and useradd ?
Old 10-19-2004, 06:36 PM   #2
Registered: Sep 2003
Location: Ankara/Turkey
Distribution: Slackware
Posts: 155

Rep: Reputation: 30
Re: commands: adduser and useradd

Originally posted by kurrupt
what is the difference between the commands adduser and useradd ?
adduser is a _shell script_ interface for useradd (_utilizes useradd_ internally). Look at this:

[root@slackware:~]$ file `which useradd`
/usr/sbin/useradd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
[root@slackware:~]$ file `which adduser`
/usr/sbin/adduser: Bourne-Again shell script text executable
at least this is true for my slackware box.
Old 10-20-2004, 12:47 AM   #3
Registered: Sep 2004
Posts: 312

Rep: Reputation: 30
Do not remember to googling for such questions


#whereis adduser
it will give the path of adduser

#ls -l <pathgiven by whereis>

it will show u the output

adduser is a symbolic link to useradd and they both can be used interchangebly

Mines show,

# ls -l /usr/sbin/adduser
lrwxrwxrwx 1 root root 7 Sep 7 21:49 /usr/sbin/adduser -> useradd*

Last edited by emailssent; 10-20-2004 at 12:49 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
adduser jp_ Linux - General 6 10-18-2005 03:11 PM
useradd and other commands BugBear Linux - Software 4 05-25-2004 08:29 AM
groupadd and useradd bash commands ph0ngwh0ng Linux - Newbie 1 04-28-2004 12:42 PM
Fedora - adduser/useradd doesn't work chongluo Linux - Newbie 2 03-25-2004 04:59 AM
Easy problem??? Can't find adduser or useradd in fresh install of Fedora jdruin Linux - Newbie 3 02-21-2004 11:57 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration