The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
creating a new unix user account ravi raj kumar UNIX for Dummies Questions & Answers 7 12-15-2006 03:25 PM
creating admin account gammaman UNIX for Dummies Questions & Answers 3 08-12-2005 06:39 PM
Error creating new account Ralph Armstrong Post Here to Contact Site Administrators and Moderators 0 02-14-2005 03:52 PM
Creating a manager account neked UNIX for Dummies Questions & Answers 2 02-02-2005 02:15 AM
Creating a 'catchall' account in Sendmail captainash UNIX for Advanced & Expert Users 6 10-30-2003 11:52 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-08-2008
domburf69 domburf69 is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 2
Creating a new account

Hi

How do I create a new account with a specific group and home directory specified?

TIA
  #2 (permalink)  
Old 02-08-2008
Colton Colton is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 13
You can use the following command to create a user:

useradd -d <homedir> -g <groupID> -s <shell> -m USERNAME

So for example:

useradd -d /home/foo -g 1001 -s /bin/bash -m foo

Last edited by Colton; 02-10-2008 at 12:16 AM..
  #3 (permalink)  
Old 02-08-2008
Colton Colton is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 13
Err, also you can specify -p '<password>' if you'd like in with the other options but then you need to know the crypt(3) version of the password. Otherwise it'll just create the account without a password and you can log in and use the passwd utility.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0