LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-14-2003, 07:50 AM   #1
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Rep: Reputation: 30
Unhappy Lost My root password !!!


Hello,

I have setup one server with redhat 7.0,with 350 client.and all most 200 up users login at the same time.

now i need to do some imp work in my cable server.

but i lost my root password.

any one have any idea how can i retrive my 'root' password

and i can't reboot my server.and also in any mode.

if any one have some idea??????


Thanks in ADV.

Hitesh
 
Old 03-14-2003, 08:36 AM   #2
precipice4gh
LQ Newbie
 
Registered: Mar 2003
Location: Belgium
Distribution: Red Hat 7.3, 8.0 Mandrake 9.1
Posts: 3

Rep: Reputation: 0
Question

The only way I know of to bypass this problem involves switching the system to single user mode, either through rebooting or using the "init" command.

<I'm being vague on purpose, as this is the easiest way to "kick in the door" on a Linux machine. Mail me for details>
 
Old 03-14-2003, 08:37 AM   #3
carlywarly
Member
 
Registered: Feb 2003
Location: Sunny Southport, again.
Distribution: PCLinuxOS 0.93 and 0.92, Vector sometimes
Posts: 825

Rep: Reputation: 30
A fairly common problem - some solutions -

http://www.linuxquestions.org/questi...=lost+password

 
Old 03-14-2003, 08:38 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
vague? odd...

ok, so assuming you're using lilo, press esc when you get the lilo menu, and run "linux single". that will load you into single user mode (runlevel 1) then just use "passwd" to set a new root password.
 
Old 03-14-2003, 11:51 AM   #5
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
Post Lost my root password !!!

Hello Friends,

Thanks for kindly reply,


but i can't switching my linux to single user mode.with "init1".
or i can't reboot my my RHL server.

I have an have to runing up.bec'z of 350 client accessing at the same time.

so here is my question again,

1)how can i retrive my admin passwd with out rebooting my linux box.
2)and also with out switching to single user mode "init1"

so is there any other way to slove this problem.??????

plzz help me....


Hitesh
 
Old 03-14-2003, 11:57 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
you can't. no. you have a server with 350 simulatneous connections and you simply forget your root password? you MUST get into single user mode. doesn't it strike you as a little bit insecure to be able to change roots password without being root???
 
Old 03-14-2003, 12:22 PM   #7
crichards
Member
 
Registered: Feb 2003
Location: Arizona
Distribution: Gentoo!
Posts: 124

Rep: Reputation: 15
If you have sudo installed, you may be able to do this easier. First, if you don't have the proper permissions in sudo to execute passwd, you'll need to edit your /etc/sudoers.conf file from either a rescue disc or single user.

Then run 'sudo passwd root' and then change your root password. I'm not in Linux currently, so I can't give you details on how to edit your sudoers.conf

Next time, don't lose it.
 
Old 03-14-2003, 12:26 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
well the whole point is that he refuses to reboot. if he does then he can get into single mode anyway, so why would sudo be any easier? it's even more drawn out...!
 
Old 03-14-2003, 04:48 PM   #9
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Rep: Reputation: 30
Quote:
Originally posted by acid_kewpie
you can't. no. you have a server with 350 simulatneous connections and you simply forget your root password? you MUST get into single user mode. doesn't it strike you as a little bit insecure to be able to change roots password without being root???
I was thinking the same thing. Linux is easy to hack into ... ? Why did they not make this more secure?
 
Old 03-14-2003, 05:22 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
it IS secure... you CAN'T change the password without being root... that's what i meant. getting to single user mode requires 1) physcial machine access and 2) access to boot loader configuration. the second is normally fine, but you can easily set lilo or grub to use a password in order to prevent alternative, non standard boots.

it IS perfectly secure. i meant that the guy is demanding to be able to change it without rebooting the system, which IF it were possible, which it is not, is staggeringly insecure.
 
Old 03-15-2003, 03:36 AM   #11
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Rep: Reputation: 30
Well I guess it's pretty well locked away then. I figure as long as you keep fishing around in computers, you'll find what you need eventually. Kinda like finding socks from the 4th layer of my room's floor.
 
Old 03-19-2003, 07:48 AM   #12
precipice4gh
LQ Newbie
 
Registered: Mar 2003
Location: Belgium
Distribution: Red Hat 7.3, 8.0 Mandrake 9.1
Posts: 3

Rep: Reputation: 0
So, basically, your (hitesh_linux) problem is organisational more then it is technical : There are quite a few solutions to this problem. But apart from the most unfeasable one (typing every possible combination of charactes on a keyboard), they all involve rebooting.

I haven't really heard any reason why you can't reboot, apart from continuity. If this is indeed your only restriction, you have to take this up with your management (if you're not running a one-man show) or your clients. If you state your case to them, it should be obvious to them that a little downtime now will save them trouble later on. Agree on a date and duration (more then you would normally need, just in case), inform the clients, and stick to the planning.

And if they don't let you take the system down, you can give them a full frontal "I told you so" when (not if) then system comes down at the most inconvenient moment.
 
Old 04-05-2003, 08:51 AM   #13
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
Hello Friends,

Thanks to all of you,for giveing good and kindly reply,

but still my questions is,

can i get root password with out rebooting my server,

here i am changeing my way like,

------
is there any shell script ,which through i can enter and can be able to change root password.
-------
yes iam talking about hacking.......???
i mean Hack the server with shell script when it's in runing mode ....


how it w'll possible ???

send it, if any one have that shell script....

Thanks in ADVNACE .....
-------------
Hitesh
 
Old 04-05-2003, 09:23 AM   #14
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 449

Rep: Reputation: 31
I do believe that answer was clear: No, you cannot change the root password without the root password unless you reboot. An exception would be if sudo is installed and enabled and you can become a user (whose password you *do* remember) who has been given appropriate permissions. Bite the bullet, reboot.

Last edited by fsbooks; 04-05-2003 at 08:37 PM.
 
Old 04-05-2003, 09:41 AM   #15
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
Quote:
Originally posted by hitesh_linux

yes iam talking about hacking.......???
i mean Hack the server with shell script when it's in runing mode ....
[...]
send it, if any one have that shell script....
-------------
Hitesh
It is were that simple, I doubt that anyone would be using a linux distro
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost Root password Oakstaff Linux - Newbie 6 11-29-2006 05:03 AM
Lost root password amirdhagopal Suse/Novell 13 02-10-2005 01:09 AM
lost root password papitu76 Mandriva 12 10-31-2004 11:40 AM
Lost root Password us06154 Linux - Newbie 17 08-14-2003 05:08 PM
lost root password dvong3 Linux - Newbie 2 06-13-2003 10:34 AM


All times are GMT -5. The time now is 08:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration