| Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
12-27-2005, 04:31 PM
|
#16
|
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
Quote:
|
And the supervisor and user passwords I changed do absolutely nothing here.......I hate being ignorant!!!
|
Did you edit the /etc/shadow file like someone posted above? Try that link to reset the root password that was posted earlier too - its really very easy. Although it is probably best to wipe and reinstall a computer that you bought off some random person at an auction - don't even think about doing your Internet Banking or shopping on it until you've done that as the original owner could have installed any number of backdoors
|
|
|
|
12-28-2005, 10:30 AM
|
#17
|
|
LQ Newbie
Registered: Dec 2005
Posts: 6
Rep:
|
Thank you all so much. But, I have given up and am going to try to reformat the hard drive with windows, since linux is a complicated new
OS that I can't seem to 'get'. I am too old to learn new tricks, which
makes me an old dog..............
Oh well, I sure do appreciate you all
trying to help me, but, I can't make any sense of this OS.....
THANKS TO ALL OF YOU!
Nelda
|
|
|
|
01-22-2006, 12:44 PM
|
#18
|
|
LQ Newbie
Registered: Jan 2006
Posts: 4
Rep:
|
Mandrake won't accept Root pw from user acct
I am trying to do some configuration on Mandrake 10.1 through my normal user account. It's been several weeks since I worked on learning this system... yes I'm a  . I managed to get logged in as Root and reset the PW for my user acct that had 'expired'.
The problem is, when I'm logged into my User Acct, & try to run the configuration console (KDE) it wants Root access and will not accept the root PW. I know the pw is correct, because I keep going back and forth & logging into a root session, but for some reason it won't accept the PW in the user account. (Yes I've checked caps lock, case sensitivity etc.)
I notice that when I enter the PW in the root login dialog box, that KDE encrypts it, but from the User acct it does not... surely that would not make a difference?
Any ideas or suggestions?
Thank you!
|
|
|
|
01-22-2006, 04:36 PM
|
#19
|
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
Quote:
|
I notice that when I enter the PW in the root login dialog box, that KDE encrypts it, but from the User acct it does not... surely that would not make a difference?
|
By 'encrypts it' do you mean it hides it by printing * or something like that? All the password dialogs in Linux should do that so if you're typing your password in and you can see what you're typing it might not be a password dialog
If, when logged in as yourself not root, you go menu->system->Configuration->Configure Your Computer and type the root password when prompted what happens? Does the Mandrake Control Centre popup after a short delay? What is 'the configuration console (KDE)'? What did you click on to get to it?
|
|
|
|
01-22-2006, 10:14 PM
|
#20
|
|
LQ Newbie
Registered: Jan 2006
Posts: 4
Rep:
|
It tells me Invalid Password (for root).
By encrypting the PW I mean it puts more **** than I type letters.
|
|
|
|
01-22-2006, 10:32 PM
|
#21
|
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
Quote:
|
By encrypting the PW I mean it puts more **** than I type letters.
|
If its just showing you back what you type then its not a proper password prompt, if its showing *** wether the same number or more than what you typed then its a valid password prompt.
If you open a terminal window and type su it will prompt you for the root password. Does it work then?
|
|
|
|
01-23-2006, 04:10 PM
|
#22
|
|
LQ Newbie
Registered: Jan 2006
Posts: 4
Rep:
|
No, it still tells me invalid password.
|
|
|
|
01-23-2006, 05:02 PM
|
#23
|
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
Login as root and run the passwd command in a terminal to reset your root password.
|
|
|
|
11-04-2007, 03:45 AM
|
#24
|
|
Member
Registered: Dec 2005
Location: norfolk, va
Distribution: kubuntu, debian
Posts: 36
Rep:
|
Quote:
Originally Posted by BangorScott
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 ?
|
I believe I have the solution to this question.
Quote:
Originally Posted by perfect_circle
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.
|
What perfect_circle said was essentially right. however i am currently running Kubuntu without a root password so I examined my /etc/shadow file to see how.
Code:
$sudo cat /etc/shadow | grep root
This is what I got...
Code:
root:!:13224:4:893999:7:::
(Note: some of the text above has been changed to protect the innocent, namely my computer.)
It looks like the password section of the line was replaced with "!". My assumption is that the "!" negates root login with out a password.
I found this thread because i just installed webmin and i need to login as root to setup webmin based user accounts. my plan is to backup the shadow file before giving root a password.
Now to test my hypothesis I will first try to replace the root password with the "!" character to see if it will return my system to a password less root configuration.
I'll be back to share the results.
Last edited by xweb; 11-04-2007 at 04:24 AM.
|
|
|
|
11-04-2007, 04:21 AM
|
#25
|
|
Member
Registered: Dec 2005
Location: norfolk, va
Distribution: kubuntu, debian
Posts: 36
Rep:
|
The solution. How to remove Root password
I believe my little experiment was a success!
Heres the details...
First I backed up my /etc/shadow file.
Code:
$ sudo cp /etc/shadow /etc/shadow.webmin
Then changed my root password.
Code:
$ sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
$ su
Password:
# exit
$
At this point I have a working root password.
I logged into wemin using my root password.Then immediately went to create some non root user account. However i discovered webmin has the option to allow any user who can run all commands though sudo to login as root for webmin. so in the end i did not need to create the root password.
Way to go webmin!(just wish i new in advance.)
Now that im done with the webmin stuff lets fix that password.
For this experiment i chose not to restore my /etc/shadow file but instead to edit it and see if replacing the encrypted root password with "!" would remove the root password and not allow me to log in as root without a password.
edit /etc/shadow
Code:
$ sudo vim /etc/shadow
changed from this
Code:
root:$1$OFmDEm.7$KL7uI1yTIVIiTS5jmNVif0:13224:4:893999:7:::
to this
Code:
root:!:13224:4:893999:7:::
now the test
(first with the password i created earlier then blank.)
Code:
$ su
Password:
su: Authentication failure
Sorry.
$ su
Password:
su: Authentication failure
Sorry.
$
Looks like it worked!
|
|
|
|
06-08-2012, 12:47 AM
|
#26
|
|
LQ Newbie
Registered: Jun 2012
Posts: 1
Rep: 
|
Quote:
Originally Posted by perfect_circle
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.
|
after editing the shadow file, i can't login on ssh using putty
someone please help
|
|
|
|
06-08-2012, 06:42 AM
|
#27
|
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,797
|
Welcome to LQ!!
Normally, you should start a new thread rather than re-open one that is 5 years old. In this case, it's OK--topic is relevant.
Try booting the machine into single-user mode (runlevel 1), and then resetting the root password from there.
If that does not work, then boot up from a Linux Live CD and edit the /etc/passwd file (not shadow), to remove the "x" between the first 2 colons. then reboot normally, and you'll be able to login as root with no password.
|
|
|
|
07-20-2012, 04:32 AM
|
#28
|
|
Member
Registered: May 2012
Location: Beijing China
Distribution: Asianux
Posts: 56
Rep: 
|
Quote:
Originally Posted by perfect_circle
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.
|
Truly it is, these information solve my issue about it.
Thanks.
: )
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:49 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|