Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-20-2016, 01:34 PM   #1
LQ Newbie
Registered: Dec 2016
Posts: 4

Rep: Reputation: Disabled
Linux - can't add a new user

I'm new to Linux, and everything that has to do with computer language in general. I just started to teach myself coding, literally 2 days ago. I do not know computer talk AT ALL, but I pick up on things quickly & love computers. I'm trying to familiarize myself with the command line before I get more in-depth into this coding stuff. Here's my question:

I can't add a new user:
login as su-
useradd NewUser
Command not found
adduser NewUser
command not found
cd /usr/sbin/useradd
no such file or directory (same with add user)

I have searched everywhere. I do not even have "man" pages for useradd. I've even used apropos and can't find anything to do with adding a user. Is this normal? Am I doing something wrong? If so, what is it? Any relevant information would be useful. Thanks in advance.
Old 12-20-2016, 02:45 PM   #2
Registered: Mar 2016
Distribution: Ubuntu and Fedora
Posts: 52

Rep: Reputation: 5
See about running all of the following commands:

whereis useradd
which useradd
find / -name useradd -type f
If any of these show where something is at, it might just not be part of your PATH.
Otherwise, you could be missing the necessary files completely, which would need you to install the package that has
useradd inside of it.

I believe that package would be shadow-utils
Old 12-20-2016, 02:46 PM   #3
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hey Gtnewbrry - what version (distro) of Linux are you using ? Most distros have some kind of wiki / docs to help with this stuff ... Sometimes even a quick google search on a command will bring you to a useful Unix / Linux resource.

... so let's start with what distro you're on and go from there ... ;-)
Old 12-20-2016, 06:30 PM   #4
LQ Newbie
Registered: Dec 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
I have Googled until I can't Google anymore. I also can't find what distort I'm using, none of the commands I have found online help me with either one, it's nowhere in /etc either. I can find my kernel version, but now my distro.
Old 12-20-2016, 06:37 PM   #5
LQ Newbie
Registered: Dec 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
It's on OSX, I do not know the version. I think that answers your question.
Old 12-20-2016, 06:53 PM   #6
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Well, OSX is BSD UNIX, not Linux. So, maybe start there:
1 members found this post helpful.
Old 12-20-2016, 07:01 PM   #7
LQ Newbie
Registered: Dec 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you. I've been looking for this information for 2 days.


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
How to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 01:14 PM
How to edit PAM DB of VSFTPD (..add user, delete user, change user password ) jsaravana87 Linux - Server 1 10-02-2012 08:49 AM
How to add user in linux JATA01 Linux - Server 11 10-19-2010 05:36 AM
Linux - How to add a new user with the same root/super-user's privileges? asgarcymed Linux - General 8 12-23-2006 07:45 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:21 PM.

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