The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
using sed to get rid of duplicated columns... fedora Shell Programming and Scripting 5 1 Week Ago 07:45 AM
remove duplicated columns kamel.seg Shell Programming and Scripting 6 02-21-2008 04:36 AM
Random duplicated print jobs Barry Staples SCO 1 03-20-2007 02:34 PM
grep and delete 2nd duplicated of txt... -part2 happyv Shell Programming and Scripting 16 01-19-2007 02:40 AM
Log files duplicated themselves? DISTURBED UNIX for Dummies Questions & Answers 4 07-01-2002 06:54 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-07-2007
Registered User
 

Join Date: May 2007
Posts: 211
Can root ID be duplicated

Hi,

I have the root id and the uid is always 0 for the root. Can i create another user say admin with the uid as 0? If so will it have the same privilege as that of user.

Will there be any effect while doing this?

lorcan
Reply With Quote
Forum Sponsor
  #2  
Old 06-07-2007
praveenkumar_l's Avatar
Registered User
 

Join Date: May 2007
Posts: 36
We can create a such user id with duplicate uid of root. But don't know the effect of it
Reply With Quote
  #3  
Old 06-07-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
It will still be the same user. The UNIX kernel and filesystems identify users by the uid, not the name.
Reply With Quote
  #4  
Old 06-07-2007
Registered User
 

Join Date: May 2007
Posts: 211
Quote:
Originally Posted by porter
It will still be the same user. The UNIX kernel and filesystems identify users by the uid, not the name.
So if i forgot the root password, can i login through admin (uid=0) id and have all the rights like root.
Reply With Quote
  #5  
Old 06-07-2007
andryk's Avatar
Registered User
 

Join Date: Sep 2003
Posts: 448
Of course, you will have full root privilege with that user cause your ID is 0, but single user mode is the better way to recover a lost root password
Reply With Quote
  #6  
Old 06-15-2007
Just Ice's Avatar
Lights on, brain off.
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 629
Quote:
Originally Posted by andryk
single user mode is the better way to recover a lost root password
being an extremely lazy SA, i would not go to single user mode when a quick reset of the root password can be done by another root account ... going to single user mode just to recover a lost password takes the machine off line and involves a lot more steps to do the same thing as what is available already ...
Reply With Quote
  #7  
Old 06-15-2007
Registered User
 

Join Date: Sep 2006
Posts: 1,580
on an audit perspective, you will invite alot of questions from the auditor for having 2 ids with number 0.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:47 AM.


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 Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0