create New UNIX User


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers create New UNIX User
# 1  
Old 07-19-2007
create New UNIX User

Hi all,

I wish to create some users, I can do that using the following command.
Code:
useradd

I wonder If i could create Uers as a clone of Root. I mean different users but having the same provileages as Root user. Can be ablle to access the Root Dir and so on ..

Please help me out Is this possible. ?? If yes How can I do that.
# 2  
Old 07-19-2007
you can do it by editing /etc/passwd file, change the uid filed to 0.

cat /etc/passwd|grep root
paste the o/p in /etc/passwd and change user root to desired username.

but think again if it is very neccessay to do........

Regards,

Awadhesh
# 3  
Old 07-19-2007
@ Awadesh Thx for the reply.

Well I am not trying to change the Root user.

Rather i am trying to Create some more new users Like ROOT.

So my query is .. "How Can I create new users exacly same( WRT provileages) as ROOT".

Assume I wana Create a user "ADMIN1" .. So i need this user to be a clone of the ROOT . ADMIN1 must be having same powers as the ROOT.

THX for the help in advance.
# 4  
Old 07-19-2007
What Awadhesh is saying, is that you have to create a new user and make sure that new user has uid 0, same as root. But honestly, I would never do that on my system. See SUDO instead if you need to give root privileges.

http://www.gratisoft.us/sudo/
# 5  
Old 07-19-2007
@qfwfq THX for Correcting me Smilie.

THX to Awadesh for help.
# 6  
Old 07-19-2007
Quote:
Originally Posted by qfwfq
What Awadhesh is saying, is that you have to create a new user and make sure that new user has uid 0, same as root. But honestly, I would never do that on my system. See SUDO instead if you need to give root privileges.

http://www.gratisoft.us/sudo/
we did this on solaris for the following reason: only use the "root"-account for emergencies, nevery change anything to that account (f.e. shell, also make sure its on the root partition) and have a second "root"-account for administrators with altered shell etc. so there is always a backup-root-account which is working for sure even if ur shell is broken, homedir on a corrupted harddrive which gives lockups or something. But I also recommend rather using sudo as far as possible.
# 7  
Old 07-25-2007
Hi ,, Again , I gota stuck up in the same issue addrssed above.

I have created new user ..e.g test
And now Iam ready to edit the passwd file to change the access of the user as ROOT o/p 0.

I would like to have a suggestion what would be the best and possible way to edit the passwd file.

Thx in advance.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find if a User exist if not create user

What I'm trying to do is write a script in Perl to find a user and if that user exist it would print "User Exist, Pls Try Again". If The user doesn't exist I'm able to create a user with a password. Any suggestions? (3 Replies)
Discussion started by: GoBoyGo
3 Replies

2. HP-UX

How to create a user in UNIX with some limited permissions?

As i know, Unix or Linux only manages 2 type of user: root user or normal user. All users with userID=0 will have all administration permissions like root user with the system. In my case, i want to create a new user in HP-UNIX environment with all root permissions only one exception that this... (5 Replies)
Discussion started by: hieucn1404
5 Replies

3. Shell Programming and Scripting

New To UNIX - Need Script to create report of user & group accounts

Hi, I'm new to the world of UNIX and have been asked to create a complex script (at least complex to me:confused:) for AIX UNIX to create a report of all the users on the server including server, user, UID, groups, GID, etc. Found a script using lsuser, but the output is still lacking. 2 things I... (2 Replies)
Discussion started by: panthur
2 Replies

4. Homework & Coursework Questions

Create script to add user and create directory

first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Discussion started by: pbhound
12 Replies

5. Ubuntu

Create New User with the same group nd privileges of the other user

Hi, Anyone can help me on how to duplicate privileges and group for useroradb01 to userrootdb01. I have currently using "useroradb01" and create a newly user "userrootdb01". I want both in the sames privileges and group. Please see the existing users list below; drwxr-xr-x 53 useroradb01... (0 Replies)
Discussion started by: fspalero
0 Replies

6. UNIX for Dummies Questions & Answers

create new user in unix

hi how to create new user in unix plz explain me (3 Replies)
Discussion started by: arulkumar
3 Replies

7. Shell Programming and Scripting

Create Unix User

Is there any way to create user with default password by shell script withoud manual intervantion and from a text file having user's information and default password. Thanks (6 Replies)
Discussion started by: wenay
6 Replies

8. UNIX for Dummies Questions & Answers

I create user but i cant login the user i created.

I created a user, i login as a root. I add him in the group where he can access and login as a root! I checked it in users' list and in group's list, he is there. My problem is this, I cant login using the username/account I just created! What should i do to use and login the user/account i've just... (5 Replies)
Discussion started by: jerome
5 Replies

9. Programming

How to create a new unix user in through a c program

Hi , I want to create a new user using c program not with unix adduser command . is it possible to write a cprogram to create a new user account , it should accept username , grouid , group name and all other privilages . i can use system calls inside c program to do this . i will... (5 Replies)
Discussion started by: naren_chella
5 Replies

10. UNIX for Advanced & Expert Users

Other than root user .Normal user is unable to create files

Hi all, I am using Sun Solaris 9 .In this system normal users unable to create files from the command line.I added these users in bin,adm and even root group i found them unable to create a file. (1 Reply)
Discussion started by: mallesh
1 Replies
Login or Register to Ask a Question