LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-12-2010, 02:38 PM   #1
panseluta
LQ Newbie
 
Registered: Dec 2008
Posts: 20

Rep: Reputation: 1
RHEL delete root password consequence


Hello,
I have a server with 2 hard drives in raid for RHEL and 16 harddrives in raid 10 for storage. I was not allowed to have the root password just in case because "we don't give root password". A few days ago it crashed asking for root password for maintenance and had to restore the system to factory settings losing all user settings and updates (wich I paid for every year).

I'm not a linux guru but i can mount the system with a live cd, edit /etc/shadow and delete the root password but what I don't know is the consequence of deleting the root password. Can something go wrong after that? Can it have boot problems or something else? Can they set traps to prevent this?

Server is not connected to internet and it will never be.
 
Old 12-12-2010, 02:57 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Since you can boot from a CD, you can

1) Run fsck on your "real" drives from the CD without mounting them (which is what you should have done).
2) Mount your "real" file system and chroot to it, and then set (or unset) the "root" password using the usual tools. (No need to know your "root" password for this since you are already logged in as "root" from the CD).

So, first, not giving you the root password but letting you boot from CD was rather foolish on the part of the management that didn't want you to have it. And, second, disabling the root account (which is all removing the root password accomplishes) has no deleterious consequences.

<edit>
If you "report" your post, the moderator(s) might move it to the Security forum where you might get more targeted responses.
</edit>

Note that Ubuntu installs with "root" disabled, and works quite well. (Personally, I like to be able to work on administration tasks as "root," so I always enable "root" on my systems, but most Ubuntu users don't bother to do so.)

Last edited by PTrenholme; 12-12-2010 at 03:02 PM.
 
1 members found this post helpful.
Old 12-13-2010, 01:25 AM   #3
panseluta
LQ Newbie
 
Registered: Dec 2008
Posts: 20

Original Poster
Rep: Reputation: 1
I don't need more targeted responses. Yours is precise. Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL root password automatic change idlehands Linux - Security 15 05-10-2011 09:05 AM
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
Password Restrict.. Password History in RHEL 5.0 your_shadow03 Linux - Newbie 6 08-14-2008 10:33 AM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 02:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration