Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying to run FreeBSD (.iso) in a virtual VMWare machine. The useradd command gives me an error:

# useradd pstnc
useradd: Command not found

Why is that? The command is correct and very simple, just put useradd and then the password and that's it.

I tried to find a solution here and open a lot of other sites, but in all places talk about of creation of one new user, and none about what to do if it gives you an error like in my case!

share|improve this question
3  
It sounds like you have not yet read the FreeBSD Handbook. You may want to start there, since it explicitly answers your question, and then come back here if something doesn't make sense. –  larsks Mar 9 '12 at 14:16
    
ahhh .. ok, sorry about that, but honestly i was trying to find it, and not come here and just posting new themes, thank you and sorry –  pstnc Mar 9 '12 at 14:18
    
@ Larsks your answer is very good and i' m sure that is save a lot of time for another people to find you direct solution link., i spent one hour to try to find it and with not results .. i think that is a good ideea to post your message like a answer. –  pstnc Mar 9 '12 at 14:26
    
No problem...there ya go. –  larsks Mar 9 '12 at 14:50
    
adduser and useradd are basically the same, Debian-like distros use adduser, the rest use useradd. –  ramonovski Mar 9 '12 at 19:24
add comment

2 Answers

up vote 2 down vote accepted

The FreeBSD Handbook is an excellent source of information about FreeBSD. The Modifying Accounts section has explicit instructions for adding and removing users.

share|improve this answer
add comment

On FreeBSD you could use pw user add user_name to add a new user

Or the adduser script

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.