LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-18-2005, 02:43 PM   #1
BangorScott
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
How to remove Root password


Have 2006 installed without root password. Had to set a root password when installing driverloader which configures via a web interface ( it wouldn`t accept a blank password for root ). Would like to go back to passwordless root. Have tried blank entry in KDE configurator, but won`t save changes unless characters are entered. Also tried passwd in terminal, but again it will not accept just a return on password entry. Not the end of the world but any ideas ?
 
Old 12-18-2005, 03:24 PM   #2
mebrelith
Member
 
Registered: Nov 2004
Location: Torreón, Coahuila, México
Distribution: Gentoo
Posts: 342
Blog Entries: 1

Rep: Reputation: 30
Moohoohaha, looks like the passwd system is a bit too zealous of your security. You should trust it. Having no passwd for root (didn't even thought that was possible) is a bad bad bad bad bad idea.

As in bad bad bad bad bad bad idea.
 
Old 12-18-2005, 03:32 PM   #3
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
login as root and open /etc/shadow with a text editor.

"At the top of the file, you'll see a line starting with root. Right after
root, you'll notice the encrypted password information between two colons.
Here's how root's line in /etc/shadow might look:

root:EnCl6vi6y2KjU:10266:0:::::

To remove root's password, you use the editor to erase the scrambled text
between the two colons, leaving a line that looks like this:

root::10266:0:::::

Save the file and reboot the machine, and you'll be able to log in as root
without a password. The first thing you should do is set a new password
for root, especially if your machine is connected to a network."

This is from slackware-how-to but it should work for the vast majority of the distros.
Be careful when messing with those stuff, and I wouldn't advise you to stay without a root password at all. It's really dangerous.
 
Old 12-18-2005, 04:03 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
This is one of those things that leads to Windows like problems on your Linux. If you don't have a root passowrd, then anyone can do what they want if they break into your system. Even local users can do as they wish without any limitation.
 
Old 12-19-2005, 01:47 PM   #5
apimente.br
Member
 
Registered: Aug 2003
Location: Sao Paulo - Brazil
Distribution: Mageia
Posts: 155

Rep: Reputation: 23
Take a look at How to Reset forgotten Root passwords. All your issues will be cleared.
 
Old 12-22-2005, 12:13 PM   #6
Nelda Nolen
LQ Newbie
 
Registered: Dec 2005
Posts: 6
Blog Entries: 1

Rep: Reputation: 0
Hello, I am of course a newbie in the dark!
I purchased a nice computer at an auction, and have NO idea how to "get in to the OS, and it is password protected. I just want to get in and set up a new OS or at least learn how to use this new system! I am currently attending a vo-tech for computer repair and troubleshooting, but there is so little information about Linux...
HELP! Please!!!
I know how to set jumpers to reset bios in other OS's, but don't know if that will work in Linux...........sheesh, I feel dumb!

During POST it lists gentoo linux and asks for tama-chan password?

Last edited by Nelda Nolen; 12-22-2005 at 12:42 PM.
 
Old 12-22-2005, 12:54 PM   #7
BangorScott
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the replies

Have decided to stay with a root password, only in as much as the driverloader web interface requires one. While I appreciate the security concerns, I found password less root convienient as a single user not logged on as root,instead of having to supply the root password everytime when tweaking, and I guess that is why Mandriva provides it as an option when installing . I don`t need to worry about others hacking in to break my machine, I do that often enough myself !
thanks

Bangorscott
 
Old 12-22-2005, 02:49 PM   #8
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Quote:
Originally Posted by BangorScott
Have decided to stay with a root password, only in as much as the driverloader web interface requires one. While I appreciate the security concerns, I found password less root convienient as a single user not logged on as root,instead of having to supply the root password everytime when tweaking, and I guess that is why Mandriva provides it as an option when installing . I don`t need to worry about others hacking in to break my machine, I do that often enough myself !
thanks

Bangorscott
You might look into "sudo". sudo allows you to execute commands as root from other accounts without logging in as root. To set it up you add your user to the /etc/sudoers file with the visudo command. By default it prompts your user's password, but it can also be set to not prompt for a password.
 
Old 12-22-2005, 02:55 PM   #9
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Quote:
Originally Posted by Nelda Nolen
Hello, I am of course a newbie in the dark!
I purchased a nice computer at an auction, and have NO idea how to "get in to the OS, and it is password protected. I just want to get in and set up a new OS or at least learn how to use this new system! I am currently attending a vo-tech for computer repair and troubleshooting, but there is so little information about Linux...
HELP! Please!!!
I know how to set jumpers to reset bios in other OS's, but don't know if that will work in Linux...........sheesh, I feel dumb!

During POST it lists gentoo linux and asks for tama-chan password?
Nelda Nolen, you should probably start a new thread for this question. First of all, Linux does not load during the POST; so you need to tell us where in the boot process it asks for the password. Do you see some kind of bootloader (something like LILO or GRUB with a menu of options to boot)? Do you see anything about a kernel booting? Do you see a bunch of services loading with "[ok]"?
 
Old 12-23-2005, 10:24 AM   #10
Nelda Nolen
LQ Newbie
 
Registered: Dec 2005
Posts: 6
Blog Entries: 1

Rep: Reputation: 0
Question Newbie now Lost in Linux land.........

Quote:
Originally Posted by spooon
Nelda Nolen, you should probably start a new thread for this question. First of all, Linux does not load during the POST; so you need to tell us where in the boot process it asks for the password. Do you see some kind of bootloader (something like LILO or GRUB with a menu of options to boot)? Do you see anything about a kernel booting? Do you see a bunch of services loading with "[ok]"?

Thank you, I did try to start a thread yesterday, but I guess I did something wrong...

The computer opens up with:
enter current password, ( I changed it in the BIOS, User and supervisor) So I can get past this, and immediately, there is a red "lilo" screen with 'lilo 22.5.9' and only offers load "defaults".
Then it boots through a lot of things like Apache 2, init:entering run level 3, etc. , all followed by the [OK], and finally;
THis isTama-Chan.(none) (Linux i686 2.6.8.1) 04:02:04, then a single line:
Tama-Chan Login:

And the supervisor and user passwords I changed do absolutely nothing here.......I hate being ignorant!!!
Thank you, Nelda

Nelda
 
Old 12-23-2005, 10:45 AM   #11
radioradio
Member
 
Registered: Nov 2004
Location: East UK
Distribution: Mandriva 2006 Discovery, SUSE 10.0, Red Hat, Knoppix
Posts: 47

Rep: Reputation: 15
FWIW I would say .... download (assuming you have a working computer) another linux distro, maybe a live CD and run that. Then decide if you like it and install it. And forget about the pre-installed lunux.

You obviously (unless I misread things) need to get the BIOS to boot from a CD rather than the HDD.
If you are worried about tinkering with the BIOS - maybe linux is not for you ??

Oh ok you say you can get into the bios, well just boot from a CD and install another distro..

Good luck.
 
Old 12-23-2005, 10:59 AM   #12
Nelda Nolen
LQ Newbie
 
Registered: Dec 2005
Posts: 6
Blog Entries: 1

Rep: Reputation: 0
Lightbulb BIOS changes!


AWWWW! I just got so 'freaked' with thinking of learning a NEW OS, that it never entered my feeble mind to just change the boot sequence......sheesh!

Thank you, I am pretty overwhelmed with all the new information I am having to learn at school, ( I am over the hill about a mile.. surrounded by teenie boppers who get their information by osmosis, you know, it justs jumps from their book into their brains!! all the while I have to read, re-read- read again---well, you get the point, I just ain't as quick as I used to be, but am determined to learn how to repair and upgrade my computers...at least then I won't be ripped off so often at the "shops"!!!!!
Thank you so much for getting me back on a track I can follow!
Nelda.............OLD OLD OLD school
 
Old 12-23-2005, 11:46 AM   #13
radioradio
Member
 
Registered: Nov 2004
Location: East UK
Distribution: Mandriva 2006 Discovery, SUSE 10.0, Red Hat, Knoppix
Posts: 47

Rep: Reputation: 15
Good luck...

Unfortunately you'll still have to learn the OS once you have booted from the live CD .. ;-))
But as I have been finding over the past year IMO linux is getting more friendly and easier to use.

At least a live CD and a new install will give you a clean slate and you can decide how you like it set up. Good luck .. and I am sure if you ask here ppl will help.

Cheers !
 
Old 12-24-2005, 09:45 AM   #14
Umikun 13
LQ Newbie
 
Registered: Dec 2005
Location: Kashiwa, Chiba, Japan
Distribution: Mandrake 10.1 on a Pentium III
Posts: 10

Rep: Reputation: 0
Quote:
Originally Posted by reddazz
This is one of those things that leads to Windows like problems on your Linux. If you don't have a root passowrd, then anyone can do what they want if they break into your system. Even local users can do as they wish without any limitation.
What if you're the only person using your computer? I live by myself and I figured the lock on my apartment door is security enough.
 
Old 12-24-2005, 05:49 PM   #15
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by Umikun 13
What if you're the only person using your computer? I live by myself and I figured the lock on my apartment door is security enough.
As long as you are connected to the net, you are at risk from intruders. In windows are most attacks not from the web? The same applies in Linux/Unix, someone can access your PC and install a rootkit giving them complete control over your PC. Also it protects you from your own mistakes e.g. making irreversible changes or deleting stuff that can hose your system. Having a root password and not using the root account for day to day purposes may seem like a nuisance for people moving from Windows, but there is a reason why Unix and Linux were designed this way and this results in a better security model when comapred to Windows.
 
  


Reply

Tags
passwordless, root, shadow, webmin



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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
Booting into Single User on MDK 9 asks for root password instead of booting into root acadcworks Linux - General 6 01-10-2006 06:51 AM
How to remove IPC$ password from samba tulip4heaven Linux - Networking 1 10-15-2005 07:19 PM
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 01:29 AM
How do i remove Wmaker from root? NightSky Slackware 1 05-17-2002 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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