LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mageia (https://www.linuxquestions.org/questions/mageia-97/)
-   -   localhost password not working (https://www.linuxquestions.org/questions/mageia-97/localhost-password-not-working-4175486434/)

herakles_14 12-01-2013 03:08 AM

localhost password not working
 
Hey,

Earlier yesterday I got a notice there were some updates ready to be installed. It asked for my bill48 password. I entered it and it was declined. I entered the password again and it was decliend again. I was able to get the updates by going through the Mageia Control Center using the Root password, which I did remember.

Now I need some assitance in creating a new 'localhost' password. By 'new' I mean restoring the password I already have to its righful place. Any ideas as to where I can go or what I need to do would be appreciated.

TIA

herakles_14

pingu 12-01-2013 03:29 AM

My first guess is that your user "bill48" doesn't have 'sudo' rights.
If so, as root add your user to a group with sudo rights. I don't know Mageia's Control Center, but you can check the file /etc/sudoers, edit with "sudoedit".

herakles_14 12-01-2013 03:47 AM

pingu;

I was not able to open the /etc/sudoer.d folder. I also used the terminal entering; /etc/sudoers that did not work well.

I know how to change my Unix password but before I do that I need to know is the Unix passwrod just another name for the Root password? If it is not then I coudl go ahead an nmake the change or correct the change?

273 12-01-2013 09:20 AM

If I am understanding correctly you know the root password but not the password for bill48 and so you want to change bill48's password?
I that is the case then open a terminal type
Code:

su -
then enter the root password. After that run
Code:

passwd bill48
and enter the new password when asked. Then you just type exit to log out as root and you're all done.

pingu 12-01-2013 09:34 AM

Quote:

Originally Posted by herakles_14 (Post 5073307)
pingu;
I was not able to open the /etc/sudoer.d folder. I also used the terminal entering; /etc/sudoers that did not work well.

I know how to change my Unix password but before I do that I need to know is the Unix passwrod just another name for the Root password? If it is not then I coudl go ahead an nmake the change or correct the change?

1) You must be root to edit sudoers files. And "/etc/sudoers" does nothing, it's not a binary (executable) file. You edit the file with command "sudoedit" as I wrote in my first post.

2) "is the Unix passwrod just another name for the Root password" - now you are a bit confused.
All passwords are Unix passwords - root, bill48 etc all use Unix passwords.
But each account has it's own.
However if you have sudo rights, then it's a matter of configuratin which password you are to enter when executing a 'sudo' - in most systems I've seen it's your users password but it could be roots.

herakles_14 12-01-2013 12:11 PM

273,

Thank you. Followed your commandline instruction and it worked. I entered my password for bill48 then retyped it. Then typed 'exit' and I was no longer root. Closed the terminal and I am again ready with the non root password.

herakles_14

273 12-01-2013 12:23 PM

Glad I could help. Don't forget to mark the thread solved.

herakles_14 12-03-2013 04:02 AM

273

Right , my bad sorry.

273 12-03-2013 08:57 AM

Quote:

Originally Posted by herakles_14 (Post 5074466)
273

Right , my bad sorry.

No need to apologise, it's easy to forget.


All times are GMT -5. The time now is 04:40 PM.