Can root ID be duplicated


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Can root ID be duplicated
# 1  
Old 06-07-2007
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
# 2  
Old 06-07-2007
We can create a such user id with duplicate uid of root. But don't know the effect of it
# 3  
Old 06-07-2007
It will still be the same user. The UNIX kernel and filesystems identify users by the uid, not the name.
# 4  
Old 06-07-2007
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.
# 5  
Old 06-07-2007
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
# 6  
Old 06-15-2007
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 ...
# 7  
Old 06-16-2007
on an audit perspective, you will invite alot of questions from the auditor for having 2 ids with number 0.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to remove duplicated lines?

Hi, if i have a file like this: Query=1 a a b c c c d Query=2 b b b c c e . . . (7 Replies)
Discussion started by: the_simpsons
7 Replies

2. UNIX for Dummies Questions & Answers

Find duplicated values in two columns out of three

hi! could u help in the following? I have the data (long list!) that looks like (three coumns white space separated): rs3094315 0.0665173 742429 rs12562034 0.0738998 758311 rs3934834 0.396449 995669 rs9442372 0.402693 1008567 rs3737728 0.406271 1011278 rs6687776 0.435429 1020428 rs9651273... (4 Replies)
Discussion started by: kush
4 Replies

3. Solaris

Migration of system having UFS root FS with zones root to ZFS root FS

Hi All After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
Discussion started by: sb200
2 Replies

4. UNIX for Dummies Questions & Answers

Removing duplicated lines??

Hi Guys.. I have a problem for some reason my database has copied everything 4 times. My Database looks like this: >BAC233456 rhjieaheiohjteo tjtjrj6jkk6k6 j54ju54jh54jh >ANI124365 afrhtjykulilil htrjykuk rtkjryky ukrykyrk >BAC233456 rhjieaheiohjteo tjtjrj6jkk6k6 j54ju54jh54jh... (6 Replies)
Discussion started by: Iifa
6 Replies

5. Shell Programming and Scripting

Help in duplicated chars in password

i have code to generate passwords but the issue is the duplicated chars so can any one help and give me function to check and verify if there is any duplicated chars as also the script uses capitals and small letters and numbers only many thx guys (4 Replies)
Discussion started by: Suicide_king
4 Replies

6. UNIX for Dummies Questions & Answers

Duplicated UID

Hi folks! I need you help to discover what's the impact of a duplicated UID in an operating system. What's the meaning when someone put in different users the same UID? (3 Replies)
Discussion started by: phcostabh
3 Replies

7. Shell Programming and Scripting

Help with remove duplicated content

Input file: hcmv-US25-2-3p hsa-3160-5 hcmv-US33 hsa-47 hcmv-UL70-3p hsa-4508 hcmv-UL70-3p hsa-4486 hcms-US25 hsa-360-5 hcms-US25 hsa-4 hcms-US25 hsa-458 hcms-US25 hsa-44812 . . Desired Output file: hcmv-US25-2-3p hsa-3160-5 hcmv-US33 hsa-47 hcmv-UL70-3p hsa-4508 hsa-4486... (3 Replies)
Discussion started by: perl_beginner
3 Replies

8. Shell Programming and Scripting

remove duplicated columns

hi all, i have a file contain multicolumns, this file is sorted by col2 and col3. i want to remove the duplicated columns if the col2 and col3 are the same in another line. example fileA AA BB CC DD CC XX CC DD BB CC ZZ FF DD FF HH HH the output is AA BB CC DD BB CC ZZ FF... (6 Replies)
Discussion started by: kamel.seg
6 Replies

9. UNIX for Dummies Questions & Answers

Run non-root script as root with non-root environment

All, I want to run a non-root script as the root user with non-root environment variables with crontab. The non-root user would have environment variables for database access such as Oracle or Sybase. The root user does not have the Oracle or Sybase enviroment variables. I thought you could do... (2 Replies)
Discussion started by: bubba112557
2 Replies

10. UNIX for Dummies Questions & Answers

Log files duplicated themselves?

Something strange happend today, I checked in /var/log has usual and I noticed that I have a "messages.1", "cron.1" "maillog.1", and so on. This has never happened before so I just want to know if this is normal? Before I always had "messages" "maillog" and "cron" but now I have 2 of each file.... (4 Replies)
Discussion started by: DISTURBED
4 Replies
Login or Register to Ask a Question