LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-08-2006, 05:58 PM   #1
NaomiHikaru
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Rep: Reputation: 0
HELP tried all password resets-still no progress


I just got a server from an oil company that was throwing them out. I was happy to take a few and they were glad to get their hands off of the (you know oil companies with their millions to throw away at new servers) Anyways the server i have is running Red Hat Enterprise Linux 4? AS and i need to reset the root password so that i can work on it. As of now i have only ben able to get to the sh-2.05b shell prompt and when i type in passwd to reset i get the error -authentication token manipulation error- now this server is missing a powerbank that is supposed to be attatched with like 16 drives, but as to what i know it works without it. Am i missing a file or is there some security that the oil company put on here that i don't know about. Your help is appreciated
 
Old 08-08-2006, 06:32 PM   #2
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
take a look in /etc/shadow there should be a line that looks similar to this:
Code:
root:$1$jta6DcY/$fzZDKjIXQZ0xu8lrlQgD/0$rX:12732:0:::::
delete all the stuff in bold, that should blank the pass.

Last edited by AAnarchYY; 08-08-2006 at 06:37 PM.
 
Old 08-08-2006, 07:02 PM   #3
NaomiHikaru
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Original Poster
Rep: Reputation: 0
hm i tried to access the file but it says Permission denied
 
Old 08-08-2006, 07:29 PM   #4
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
you need to find a way to either boot with a livecd or remove the drive and put it in another computer, either do what i said earlier or chroot to the drive and passwd. what kernel version is it? uname -r
 
Old 08-09-2006, 04:17 PM   #5
Super7
Member
 
Registered: Mar 2006
Location: Oakville
Distribution: Mandrake
Posts: 37

Rep: Reputation: 15
reset root password

when linux is about to boot hit tab you will get a command prompt. Once your at the prompt you type linux single, passwd (your new password) and then your done.

Its been a while since I have done it like that, maybe they changed it.

edit: I just checked on the wonderful internet they still do this.

http://www.redhat.com/docs/manuals/l...ng-single.html

Last edited by Super7; 08-09-2006 at 04:22 PM.
 
Old 08-09-2006, 04:56 PM   #6
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
Quote:
Originally Posted by Super7
when linux is about to boot hit tab you will get a command prompt. Once your at the prompt you type linux single, passwd (your new password) and then your done.

Its been a while since I have done it like that, maybe they changed it.

edit: I just checked on the wonderful internet they still do this.

http://www.redhat.com/docs/manuals/l...ng-single.html
yeah that could work if its a poorly set up system...
 
Old 08-10-2006, 12:23 AM   #7
NaomiHikaru
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Doubt its a poorly set up system....this is a system from an oil company that they bought when it was top of the line
 
Old 08-10-2006, 01:30 PM   #8
Super7
Member
 
Registered: Mar 2006
Location: Oakville
Distribution: Mandrake
Posts: 37

Rep: Reputation: 15
did you try it out? It can be the most expensive serveron the face of the earth, but it could have been overlooked or not known about by the person that installed the software.
 
Old 08-10-2006, 01:46 PM   #9
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
Do you need to keep redhat or can you just overwrite it with something else?

Last edited by simcox1; 08-10-2006 at 01:49 PM.
 
Old 08-10-2006, 01:56 PM   #10
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
yeah, installing a new distro on it would be great IMHO... i mean, how do you know there are no backdoors in the current install?? using other people's installs gives me the creeps...
 
Old 08-11-2006, 12:43 AM   #11
NaomiHikaru
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Well i want to try and keep the orginal install due to scsi drivers and things and there's about 4 different installs??? I have no idea. I haven't had the time to try all the suggestions yet, but will when i get the time I will and post back. Thanx for the help so far

Last edited by NaomiHikaru; 08-11-2006 at 09:56 PM.
 
Old 08-11-2006, 09:56 PM   #12
NaomiHikaru
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Original Poster
Rep: Reputation: 0
ok so i got knoppix to work on the server and I again tried acessing the /etc/shadow file to no prevail. The thing is locked and/or encrypted to some extent that even knoppoix won't open it. I really think these oil companies thought their servers trough before putting them online.
 
Old 08-11-2006, 10:52 PM   #13
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
well what type of errors are you encourntering, can you even mount the drive? read any of the data? are you sure you tried knoppix thru root? can you chroot to the drive and passwd?
 
Old 08-12-2006, 12:14 AM   #14
Super7
Member
 
Registered: Mar 2006
Location: Oakville
Distribution: Mandrake
Posts: 37

Rep: Reputation: 15
why dont you just format? stop wasting your time, find the drivers for your controller and your fine. unless your after daa on thier servers (which they might have deleted) it might be hard but definatly not impossible. you can format in 30 mins tops on a high end server, even picking through the driver lists, and if its a high end expensive server the drivers are there 99% of the time.
 
Old 08-12-2006, 12:25 AM   #15
NaomiHikaru
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Ok well i finnaly was able to chroot the drive and change the password, but all in all its become useless because it was part of a cluster. At this point in time i'm thinking of doing a fresh install. I'm not after any of the data, cause its all geological, any good linux versions that implement 4Xp3 700mhz xenon procs and scsi drives?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Shift + Backspace resets X manicman Linux - Newbie 2 05-29-2006 12:05 PM
iptables resets gizza23 Linux - Networking 2 07-09-2005 11:25 AM
When ever I log in it just resets X-server Zeppelin_Fan SUSE / openSUSE 1 06-05-2005 02:22 AM
Permissions resets Wolf_Assassin Linux - Security 4 10-22-2004 03:31 AM
Computer resets erratically bitpicker Linux - Hardware 1 09-27-2003 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:53 AM.

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