LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-22-2003, 08:56 AM   #1
rinux
Member
 
Registered: May 2003
Posts: 44

Rep: Reputation: 15
changing root password (not logged in)


hello,
i need to change the root password while not logged, how can i ??
i tried using linux rescue while booting from the linux CD
but the part of fdisk /dev/hda doesn't work can u help me plz
 
Old 05-22-2003, 09:06 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,393

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
get your lilo or grub screen, press esc or ctrl+x for lilo, then run "linux single", on grub, press e, then add "single" to the boot command. when you get to a prompt you will be root, just run "passwd" to set it again.
 
Old 05-22-2003, 09:31 AM   #3
rinux
Member
 
Registered: May 2003
Posts: 44

Original Poster
Rep: Reputation: 15
how can i get my lilo or grub screen
 
Old 05-22-2003, 12:56 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Are you using grub or lilo?
 
Old 05-22-2003, 01:00 PM   #5
rinux
Member
 
Registered: May 2003
Posts: 44

Original Poster
Rep: Reputation: 15
grub
 
Old 05-22-2003, 01:07 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
1) Reboot
2) Highlight the entry for your os
3) Press e
4) Select the kernel line
5) Press e
6) Append " 1" no quotes to the line
7) Press enter
8) Press b
 
Old 05-22-2003, 01:13 PM   #7
rinux
Member
 
Registered: May 2003
Posts: 44

Original Poster
Rep: Reputation: 15
can u explain more plz what is 1 and b and why ???
THANKS
 
Old 05-22-2003, 01:15 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
1 will put you into runlevel 1 which is single user mode and b will boot.

Why what? Why do this? Because YOU forgot YOUR root password
 
Old 05-22-2003, 02:05 PM   #9
rinux
Member
 
Registered: May 2003
Posts: 44

Original Poster
Rep: Reputation: 15
THANKS A LOT it worked
but last 2 questions
1- what is the meaning of single user mode
2- and if is that easy, how can i defend myself from anyone do so to me and change my root password ???
 
Old 05-22-2003, 02:10 PM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
1) It is the most basic access to a linux system - usually used for troubleshooting purposes.

2) It is only a weekness if:
a - Other people have your root password
b - Other people have access to your machine
If b is true then you can add a bootloader password to stop people editing the commands.
 
Old 05-22-2003, 02:15 PM   #11
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
If your computer isn't physically secured, it isn't secure no matter what OS is used.
 
  


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
Root Password Keeps Changing jameskilbane Linux - Security 4 10-14-2005 04:51 PM
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 01:29 AM
changing root password Bombo Linux - Newbie 2 04-10-2005 10:42 PM
Changing the root password divsky Linux - Newbie 4 04-03-2004 10:02 PM
Changing root password Gibby Mandriva 1 10-02-2003 10:38 PM


All times are GMT -5. The time now is 12:25 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