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

Notices


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

Rep: Reputation: 15
adduser question


Hi,

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?
regards,
Adnan
Edit/Delete Message
 
Old 03-14-2007, 07:08 PM   #2
Kristijan
Member
 
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

-Kristijan
 
  


Reply


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

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 03:27 AM.

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