This may seem obvious to some but I very new to Linux, and I have a hard time reading guides, as most of whats on the internet are bits and pieces, there doesn't seem to be exact specifc steps to anythine you want to do, for the newcommers, so I've written this quick easy post for my reference, and for anyone else who so happens to stubble upon it. :)
Don't know what happened but somehow I forgot may password, and was stuffed, I didn't want to reinstall my CentOS, so with a bit of Google i found this, however I'm posting this to make it clear the actual specific steps you have to go through in order to change your password:
1. Reboot your Linux machine with the installation dvd/cd/etc. (you may have to hit F12 key to allow you to select the appropriate boot device e.g. CDROM.
2. At the command/boot prompt (boot::) type linux rescue and hit enter.
3. Then type: chroot /mnt/sysimage and hit enter.
4. Then type: passwd root or passwd username (obviously replace username with the user/login you want to change the password for, if the user does not exists it will say so after running hte command. don't forget to hit enter at the command.
5. Now type in the password you want and hit enter
6. Now type it in again, and hit enter
7. Now type exit and hit enter
8. Now type exit again and hit enter to reboot
all done.
Good Luck
Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts
Mar 4, 2012
Jun 28, 2010
access denied for user 'root'@'localhost' (using password: no)
access denied for user 'root'@'localhost' (using password: no)
on ubuntu after mysql install (sudo apt-get install mysql-server)
to enter/change password use:
mysqladmin -u root -p password yourpassword
(yourpassword <- goes here)
I've read other places you don't need the -p but on ubuntu you do!
see ya
on ubuntu after mysql install (sudo apt-get install mysql-server)
to enter/change password use:
mysqladmin -u root -p password yourpassword
(yourpassword <- goes here)
I've read other places you don't need the -p but on ubuntu you do!
see ya
Jun 21, 2010
May 18, 2010
fix screen resolution in ubuntu on virtualbox
May 11, 2010
sudo passwd root - ubuntu- how to waste my time
let me start by saying, i've never used linux before. so how the f##k would i know how to install software on it.
i do have plenty of windows experience, been working in and around it for 10+ years. am a pc gamer, like to build my own pcs, like to dabble in new stuff when i have time.
which leads me to thinking, i really would like to try out the bugzilla open source tracking software. so hey i'll install linux in vmware, and do it. (i know there are windows versions) but i wanted it to be in linux so i could potientally give it to the really it guys to put it on our live servers.
so off i went, first trying to install openSUSE, which took ages, because i wasn't smart enough to choose ide disk instead of scsi (linux doesn't like scis on vmware 5.5, use ide disk instead) straight away. then oh i need apache web server. then trying to install apache, what a pain. i tried installing different linux dist. and finally when with ubuntu. so i installed ok, installed xampp instead, installs ok, then i try and start it "/opt/lampp/lampp start". f##k nothing. oh gotta get to the root. "su" 'passwd:' what, what password, i never set a password for su during the installation. i put my name in and a password. ok, i'll try that password. ********** 'su" authentication failure', ok i'll try no password. 'su" authentication failure' try password 'su" authentication failure' maybe i spelt my password wrong 'su" authentication failure' maybe the caps was on 'su" authentication failure' f##k this shit. google, searching................. ........ ...... ... ... .. f##k this ..... . .. . .. . . .. . ... ....... .. . ok ubuntu documentatino search..... su default password... nothing. f##ken f##k f##k f##k. ok RootSudo. Ahhh root acount password is locked in Ubuntu. ahhh 'sudo password root' change password. done.
what i f##ken un-user-friendly documentation. f##ken f##k heads those f##ken it guys, why don't you write f##ken documentation from the non it perspective. ah f##k im a it guy. sh#t i do the same thing.
lesson learned. not only to be f##cken persistance. but lets be kind, to those nubies entering unknown situations. lets write documentation from a non it perspective and orgnaise it correctly. god i'll be doing this from now on for my users.
next time ubuntu documentation, put the f##ken sudo passwd root in the install instructions chapter up front.
ps sorry about the swearing.
***
can't get to the root in ubuntu, do this: at terminal enter (without quotes) "sudo passwd root" and change the password, now you can get to "su". thanks me.
***
i do have plenty of windows experience, been working in and around it for 10+ years. am a pc gamer, like to build my own pcs, like to dabble in new stuff when i have time.
which leads me to thinking, i really would like to try out the bugzilla open source tracking software. so hey i'll install linux in vmware, and do it. (i know there are windows versions) but i wanted it to be in linux so i could potientally give it to the really it guys to put it on our live servers.
so off i went, first trying to install openSUSE, which took ages, because i wasn't smart enough to choose ide disk instead of scsi (linux doesn't like scis on vmware 5.5, use ide disk instead) straight away. then oh i need apache web server. then trying to install apache, what a pain. i tried installing different linux dist. and finally when with ubuntu. so i installed ok, installed xampp instead, installs ok, then i try and start it "/opt/lampp/lampp start". f##k nothing. oh gotta get to the root. "su" 'passwd:' what, what password, i never set a password for su during the installation. i put my name in and a password. ok, i'll try that password. ********** 'su" authentication failure', ok i'll try no password. 'su" authentication failure' try password 'su" authentication failure' maybe i spelt my password wrong 'su" authentication failure' maybe the caps was on 'su" authentication failure' f##k this shit. google, searching................. ........ ...... ... ... .. f##k this ..... . .. . .. . . .. . ... ....... .. . ok ubuntu documentatino search..... su default password... nothing. f##ken f##k f##k f##k. ok RootSudo. Ahhh root acount password is locked in Ubuntu. ahhh 'sudo password root' change password. done.
what i f##ken un-user-friendly documentation. f##ken f##k heads those f##ken it guys, why don't you write f##ken documentation from the non it perspective. ah f##k im a it guy. sh#t i do the same thing.
lesson learned. not only to be f##cken persistance. but lets be kind, to those nubies entering unknown situations. lets write documentation from a non it perspective and orgnaise it correctly. god i'll be doing this from now on for my users.
next time ubuntu documentation, put the f##ken sudo passwd root in the install instructions chapter up front.
ps sorry about the swearing.
***
can't get to the root in ubuntu, do this: at terminal enter (without quotes) "sudo passwd root" and change the password, now you can get to "su". thanks me.
***
Subscribe to:
Posts (Atom)



