LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2011, 05:52 PM   #1
mikeborger
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Rep: Reputation: 0
Unable to login as root or user.


I am trying to help someone get to their records on a CentOS 5 box and the username/passwords they have given me are not being recognized.
 
Old 01-29-2011, 06:07 PM   #2
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,244

Rep: Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199
Welcome to the forums! If you have physical access to the machine (and the data is not encrypted), the easiest option is probably to boot using a Linux Live CD or USB and copy the data to an external drive.

If you need to reset a forgotten password, this is well-documented in the CentOS/RHEL manual: http://www.centos.org/docs/5/html/In...escuemode.html
 
1 members found this post helpful.
Old 01-30-2011, 03:25 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
and the username/passwords they have given me are not being recognized.
Perhaps they aren't correct?
Did you asked them?
Can they login?

Kind regards
 
Old 01-30-2011, 08:33 AM   #4
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
You can also try booting into runlevel 1 or single user mode. At the boot menu screen (lilo or grub) try hitting tab, or following the directions, but basically you want to append a '1' to the end of the boot string. That will take you into single user mode as root. Once logged in, simply run 'passwd' and edit the root password or 'passwd user' and edit that user's password.

This is assuming that there's no bootloader password or some other single user mode protection.
 
1 members found this post helpful.
Old 01-30-2011, 10:35 AM   #5
aggrishabh
Member
 
Registered: Nov 2010
Posts: 87

Rep: Reputation: 1
i have one question
the above said method of trist007 works fine if the grub is not locked.

what can we do if the grub is locked ?
 
Old 01-30-2011, 11:03 AM   #6
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
No way around it that I know of. Bios passwords can be bypassed by shorting the cmos, but a bootloader password is unstoppable.
 
1 members found this post helpful.
Old 01-30-2011, 11:49 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
I am trying to help someone get to their records on a CentOS 5 box and the username/passwords they have given me are not being recognized.
Again, ask the owner for the correct password.

Kind regards
 
Old 01-30-2011, 01:27 PM   #8
mikeborger
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
Again, ask the owner for the correct password.

Kind regards
That, unfortunately, is not an option.

But thanks for trying.
 
Old 01-30-2011, 01:31 PM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
That, unfortunately, is not an option.
Then you're not trying to help someone to get to their records on a CentOS 5 box ?
What are you trying to do then?

Kind regards
 
Old 01-31-2011, 10:59 AM   #10
mikeborger
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by trist007 View Post
You can also try booting into runlevel 1 or single user mode. At the boot menu screen (lilo or grub) try hitting tab, or following the directions, but basically you want to append a '1' to the end of the boot string. That will take you into single user mode as root. Once logged in, simply run 'passwd' and edit the root password or 'passwd user' and edit that user's password.

This is assuming that there's no bootloader password or some other single user mode protection.
Thank You! I was able to change the root password back to what it was supposed to be but now I cannot find the folder that contained all their records. Any idea why we cannot find it?
 
Old 01-31-2011, 11:09 AM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
I cannot find the folder that contained all their records. Any idea why we cannot find it?
Do a search? Ask the owner?

Kind regards
 
Old 01-31-2011, 11:58 AM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
May I ask what you are trying to do? Lets resume:
1. You are assigned to recover files from a CentOS-box.
2. The username/password that were given to you by the owner weren't correct, but asking for the right credentials was not an option (why?).
3. After breaking into the system, you can't find the files and have to ask us (not the owner of the machine) where to find them?

Judging by the info given from you to us I would recommend to anyone here not to answer to questions anymore, until the OP has told us, what he is doing. Sounds all very suspicious to me.
Just my two cents.
 
  


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
unable to login as user; can login as root. rksanders Debian 24 02-09-2011 09:01 AM
unable to login as user other than root on RHEL 4 done some changes in etc /shawdow abhi_raj Linux - Newbie 1 07-18-2006 09:47 AM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 04:44 AM
root(super user) is unable to login by using Telnet mahabooba Linux - Networking 10 02-03-2006 12:40 AM
Unable to logon on as non-root user after update as unable to set executable context pls198 Fedora 2 04-09-2004 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration