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
create new user in unix arulkumar UNIX for Dummies Questions & Answers 3 08-28-2007 09:49 PM
Create Unix User wenay Shell Programming and Scripting 6 06-04-2007 11:30 PM
I create user but i cant login the user i created. jerome UNIX for Dummies Questions & Answers 5 06-09-2006 02:08 PM
How to create a new unix user in through a c program naren_chella High Level Programming 5 03-02-2006 08:39 PM
Other than root user .Normal user is unable to create files mallesh UNIX for Advanced & Expert Users 1 06-22-2005 09:18 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-19-2007
Registered User
 

Join Date: Apr 2007
Posts: 23
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.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-19-2007
Awadhesh's Avatar
Registered User
 

Join Date: Jul 2005
Location: Delhi, India
Posts: 92
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
Reply With Quote
  #3 (permalink)  
Old 07-19-2007
Registered User
 

Join Date: Apr 2007
Posts: 23
@ 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.
Reply With Quote
  #4 (permalink)  
Old 07-19-2007
Registered User
 

Join Date: Feb 2005
Location: Canada
Posts: 131
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/
Reply With Quote
  #5 (permalink)  
Old 07-19-2007
Registered User
 

Join Date: Apr 2007
Posts: 23
@qfwfq THX for Correcting me .

THX to Awadesh for help.
Reply With Quote
  #6 (permalink)  
Old 07-19-2007
Registered User
 

Join Date: Jan 2004
Posts: 17
Quote:
Originally Posted by qfwfq View Post
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.
Reply With Quote
  #7 (permalink)  
Old 07-24-2007
Registered User
 

Join Date: Apr 2007
Posts: 23
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.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:31 PM.


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

Content Relevant URLs by vBSEO 3.2.0