1829380 Members
4110 Online
109991 Solutions
New Discussion

How to create a user

 
SOLVED
Go to solution
JimKali
Advisor

How to create a user

I am new to unix actually..

could you give me the full command to create the following users please :-

Username= Davep Name=Dave Paul Access=Admin
Username= Richap Name=richa Access=Admin,db
Username= danial Name=Danial K Access=User,db

To provide Admin access I have heard that I need to install HP's RABC or sudo.

I find it difficult to install sudo.

So if you recommend I will install RABC.

But I request you gurus to give me the full command please... I am actually from the windows team where everything is GUI.And I was asked to create the above 3 users.
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: How to create a user

If these users don't already exist, you can use SAM to add them. Just invoke "sam" and navigate the GUI.
Rohit Tole
New Member

Re: How to create a user

Here is the command to add user.
useradd [-u [-o]] [-g ] [-G [,]] [-d ] [-s ] [-c ] [-m [-k <skel dir>]] [-f <inactive>] [-e <expire>] [-r <yes|no>] <login><BR /><BR />You need root access to add user. Here is an example for the users you mentioned -<BR /><BR />useradd -m -c "Daniel K" -g User -G db danial<BR /><BR />Remember that every word is case sensitive. So make sure you know the exact user name and group name before running the command.<BR />Set the password of the user by following command example -<BR />passwd danial<BR /><BR />I would recommend that you use sudo. Its not that difficult to configure.<BR /><BR />Cheers3
SKR_1
Trusted Contributor

Re: How to create a user

/usr/bin/useradd -u (uid) -g (gid) -c (user description)-m -s /home/userID /usr/bin/sh ID

Thanks
SKR
Sandeep_Chaudhary
Trusted Contributor
Solution

Re: How to create a user


useradd -d /home/davep -m -g admin -c "Dave Paul" -s /usr/bin/ksh davep
useradd -d /home/richap -m -g admin -G db -c "Richa" -s /usr/bin/ksh richap
useradd -d /home/danial -m -g user -G db -c "Danial K" -s /usr/bin/ksh danial

if u want different she3ll home directory u camn specify
JimKali
Advisor

Re: How to create a user

thank u