Creating New Users in UNIX Machine !!!


 
Thread Tools Search this Thread
Special Forums UNIX Desktop Questions & Answers Creating New Users in UNIX Machine !!!
# 1  
Old 05-30-2008
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
# 2  
Old 05-30-2008
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]
# 3  
Old 05-30-2008
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.
# 4  
Old 07-14-2008
useradd is easier to use anyways. just prompts you for input.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

To get total number of users and their groups in remote UNIX machine

Hi All I am trying to do ssh to different server and on the remote server for each user trying to get groups of that user but i am not getting the required result. ssh username@ip_address "for i in $( cat /etc/passwd| cut -d: -f1);do groups $i done;exit" >>abc.txt only names are... (5 Replies)
Discussion started by: Ekamjot
5 Replies

2. Red Hat

Migrating users from old machine to new machine

What is the best way to move all user, with permission etc... from a old linux redhat 5 to a new redhat 6 machine. It is as simple as coping the etc/passwd file etc.. ? (4 Replies)
Discussion started by: da2013
4 Replies

3. UNIX for Dummies Questions & Answers

Script for creating users

Hi, I wants to create the users for multiple machine from single main server using the shell script ,can you please help me on this.... (2 Replies)
Discussion started by: Rahulne25
2 Replies

4. UNIX for Advanced & Expert Users

Creating groups and users

Hi Could anyone please suggest how we can check in Linux if a user or a group name is already existing? In case of a user the command should also be able to specify the user with a given directory and shell. We can of course check this using a grep command but since that is just a pattern match,... (12 Replies)
Discussion started by: Dorothy
12 Replies

5. Shell Programming and Scripting

How to transfer files from unix machine to local machine using shell script?

Hi All.. Am new to Unix!! Am creating a shell script in which a scenario is like i have transfer the output file from unix machine (Server) to local directory (Windows xp). And also i have to transfer the input file from the local directory to Unix machine (Server) Any help from you... (1 Reply)
Discussion started by: vidhyaS
1 Replies

6. Solaris

How many users are there in solaris machine ?

Dears How can i find , how many users are in solaries machine ? any command please . regards Halim (6 Replies)
Discussion started by: Halimju
6 Replies

7. HP-UX

creating users

hi, can any one help in how to get the numeric user id through useradd command ?? or any other command for the same?? (1 Reply)
Discussion started by: vishwaraj
1 Replies

8. UNIX for Advanced & Expert Users

Creating Users with SMC

Hi, I tried to create a user test1 using SMC and its only partially created with following errors: Jun 25 13:44:54 wasana WBEM_Logging_Service: The alias for user test1 could not be created. This indicates an error accessing the alias table. The error was null. Jun 25 13:44:54 wasana... (2 Replies)
Discussion started by: chaandana
2 Replies

9. UNIX for Dummies Questions & Answers

Creating Users!!!!

Can any body show me how to create users......... Thnx.... (1 Reply)
Discussion started by: ocpguy
1 Replies
Login or Register to Ask a Question