LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-08-2017, 05:39 PM   #1
jenkins123
LQ Newbie
 
Registered: May 2017
Posts: 3

Rep: Reputation: Disabled
About Changing my root password


Hi

I didn't forget my root password, I just want to change it after using the same password for years.

What is the proper protocol? Should I change my root password in single user mode by booting into single user mode or change my root password in the current runlevel my system is booted at?

Thanks
 
Old 05-08-2017, 06:32 PM   #2
jenkins123
LQ Newbie
 
Registered: May 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
I guess my question is too advance for the LQ community here to answer.

I will use single user mode
 
Old 05-08-2017, 06:36 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243
just change it like you wound any user
 
1 members found this post helpful.
Old 05-08-2017, 06:51 PM   #4
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Linux Mint 22
Posts: 1,213

Rep: Reputation: 436Reputation: 436Reputation: 436Reputation: 436Reputation: 436
Quote:
Originally Posted by jenkins123 View Post
I guess my question is too advance for the LQ community here to answer.

I will use single user mode

It's quite common not to get answers to questions that are also so simple anyone could find the answer with a 5 second google search. Threads like that go days without a reply and usually never get replies. People here value effort instead of the quick fix. Speaking from personal experience of looking for a quick fix instead of doing my own research.

Also insulting the community by calling your question to hard is wrong as well. The people here are volunteers with lives to live. They do this in their spare time, they don't sit there all day refreshing the browser to answer questions immediately. Generally give it 24 hours before anything else.

Last edited by jmgibson1981; 05-08-2017 at 07:20 PM.
 
3 members found this post helpful.
Old 05-08-2017, 08:01 PM   #5
jenkins123
LQ Newbie
 
Registered: May 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jmgibson1981 View Post
It's quite common not to get answers to questions that are also so simple anyone could find the answer with a 5 second google search.
I did not ask how to change my password. I know how to do that. I was asking if I need to be in single user mode to change the root password or if it's ok to do it at the current runlevel I'm in.
 
Old 05-08-2017, 08:11 PM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,311
Blog Entries: 24

Rep: Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263
I see no reason to go into single user mode.

You will need the old password, and need to have root privs, so there is no additional safety to be gained.

jmgibson1981's point was valid. Everyone here volunteers their time of course, and each individual decides how to apply it, which posts to answer and which to skip in their time available. There is always the expectation that we have done our own searches before asking others for help. Please do not think that to be unfriendly or unwelcoming!

Welcome to LQ!
 
1 members found this post helpful.
Old 05-08-2017, 09:00 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,719
Blog Entries: 28

Rep: Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275Reputation: 6275
Also, jenkins123, your first post was made at 17:39 and your second one was not quite an hour later.

As my own general rule, when I post a Linux Question, I usually wait 24 hours before I check for an answer, because I know it takes a while for a willing volunteer to stumble over it and choose to answer it.
 
Old 05-08-2017, 11:23 PM   #8
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,285

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Patience is a virtue, even in the virtual world.
 
2 members found this post helpful.
Old 05-09-2017, 08:15 AM   #9
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,938
Blog Entries: 13

Rep: Reputation: 4968Reputation: 4968Reputation: 4968Reputation: 4968Reputation: 4968Reputation: 4968Reputation: 4968Reputation: 4968Reputation: 4968Reputation: 4968Reputation: 4968
Quote:
Originally Posted by jenkins123 View Post
I did not ask how to change my password. I know how to do that. I was asking if I need to be in single user mode to change the root password or if it's ok to do it at the current runlevel I'm in.
Hi jenkins123 and welcome to LQ.

There's no harm in trying that, and it would work fine, allowing you to change your root password. To be clear, I have the opinion that at a command prompt if not root, you could type "su" and the existing root password at the next prompt, to become root and then issue the "passwd" command to change your password.

Sorry you feel there was indifference, what others are saying, which is that not everyone is on call here, waiting with catlike readiness to answer questions. Sometimes there may be a surprisingly fast response, and sometimes there may be a delay, and I feel that it is reasonable to wait about a day to see if anyone has any recommendations. Meanwhile you may self-resolve, and that is fine, we're all hoping that people who post questions are not simply asking for quick, simple answers, but instead working to learn continually. Myself I have started some questions and then never posted them because in my efforts to write a clear question and describe my situation, I had a moment where I realized the solution.

Best of luck and looking forward to any future questions or posts you may have.

If you feel that this problem is solved, then please mark the thread as solved (using the Thread Tools in the page) and it likely will help a future searcher of this very same question.
 
Old 05-10-2017, 09:49 PM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,418

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
Quote:
Myself I have started some questions and then never posted them because in my efforts to write a clear question and describe my situation, I had a moment where I realized the solution.
So true, so true - been there done that (as it were) more than once
 
1 members found this post helpful.
Old 05-10-2017, 10:44 PM   #11
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,285

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Lightbulb

Quote:
Originally Posted by chrism01 View Post
So true, so true - been there done that (as it were) more than once
Agree to this one, i was in the same boat quite a few times. I guess writing a question is a therapy to find a solution also.
 
Old 05-11-2017, 09:09 AM   #12
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243
I usually end up writing the question, posting it, then at times almost immediately after posting it. I end up figuring out the answer in post posting, afterwords.
 
Old 05-11-2017, 09:25 AM   #13
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,057
Blog Entries: 4

Rep: Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068
Also, be very mindful of the fact that the root user is not the only way to gain "rootly privileges." (In fact, on many systems, that user-id is simply disabled.)

On most Linux systems, if you are a member of the wheel group (as in: "s/he's a 'big wheel' around here ..."), you can become root simply by entering sudo su and entering your own(!) login password.

This, of course, is why you should never use any user-id which is a member of this group, unless you are performing system maintenance. "Your every-day userid" should not be Billy Batson. Thus, if someone tricks you into saying, "Shazam!" ... and they very-easily could ... absolutely nothing should happen.
 
  


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
Unable to login using root after changing root password using passwd command rodimail SUSE / openSUSE 3 12-27-2011 11:34 PM
changing root password sunlinux Linux - Security 2 03-21-2006 07:24 AM
Root Password Keeps Changing jameskilbane Linux - Security 4 10-14-2005 05:51 PM
changing root password Bombo Linux - Newbie 2 04-10-2005 11:42 PM
changing root password jamaso Linux - Newbie 1 12-25-2001 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:21 AM.

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