The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > UNIX Desktop for Dummies Questions & Answers
Google UNIX.COM


UNIX Desktop for Dummies Questions & Answers Questions regarding GNOME, KDE, CDE, Open Office, etc go 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 USERs with restricted Access ramanan25 UNIX for Advanced & Expert Users 4 05-05-2008 08:05 PM
creating users vishwaraj HP-UX 1 01-14-2008 04:30 AM
Creating Users with SMC chaandana UNIX for Advanced & Expert Users 2 06-25-2007 10:45 PM
bash/awk scripting help (creating OLD new users) Jukai Shell Programming and Scripting 2 10-17-2006 02:36 AM
Creating Users!!!! ocpguy UNIX for Dummies Questions & Answers 1 12-04-2001 11:39 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-29-2008
Registered User
 

Join Date: Jun 2007
Posts: 112
Creating New Users in UNIX Machine !!!

Hi

How to create users in the UNIX machine ....

I am the ROOT and i want to create users with normal privileges .

a) Please give the sequence of commands which i need to use.

b) How to set their userid and passwords
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-29-2008
Registered User
 

Join Date: Mar 2008
Location: /bin/sh
Posts: 338
Simple user

Code:
login as root 
adduser <username> 
-- this is sometimes useradd...you have to watch out depending on your flavour of unix
passwd <username> 
-- change the passwd for the user you have just added
.


More complex user
Code:
login as root 
adduser <username> -c <comment> -d <home directory of user> -g <primary group of this user> -G <a comma delimited list of groups to which this user belongs> -m -k <directory to make this new directory look like> -s <users shell>

passwd <username> 
-- change the passwd for the user you have just added
.


[/code]
Reply With Quote
  #3 (permalink)  
Old 05-30-2008
Registered User
 

Join Date: May 2008
Posts: 64
My I also suggest doing a "man" or "info" on the useradd command. My experience has shown that adduser is usually a symlink or alias to useradd.
Reply With Quote
  #4 (permalink)  
Old 07-14-2008
Registered User
 

Join Date: Jul 2006
Posts: 49
useradd is easier to use anyways. just prompts you for input.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0