Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 03-14-2007, 01:12 PM   #1
Registered: Dec 2004
Location: Bosnia and Herzegowina
Distribution: Centos, FreeBSD
Posts: 49

Rep: Reputation: 15
adduser question


Can you tell me how to add a user from shell in one line, something like this:
adduser -u username -p password -s ....

any ideas?
Edit/Delete Message
Old 03-14-2007, 07:08 PM   #2
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
man useradd - This will explain all the switches and the syntax.

Generally after I build a new BSD box, I add myself into the wheel group and create a home directory. Something like this should be enough - useradd -m -G wheel -p password kristijan



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
Another basic adduser question AndeAnderson Debian 5 10-26-2005 08:44 AM
adduser jp_ Linux - General 6 10-18-2005 03:11 PM
adduser teqno Linux - Newbie 5 12-08-2003 01:26 PM
Adduser - xmdms Linux - Newbie 3 10-23-2003 04:54 PM
Adduser... Chijtska Linux - General 5 02-15-2002 08:53 AM > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 03:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration