LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   About Changing my root password (https://www.linuxquestions.org/questions/linux-newbie-8/about-changing-my-root-password-4175605526/)

jenkins123 05-08-2017 04:39 PM

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

jenkins123 05-08-2017 05:32 PM

I guess my question is too advance for the LQ community here to answer.

I will use single user mode :rolleyes:

BW-userx 05-08-2017 05:36 PM

just change it like you wound any user

jmgibson1981 05-08-2017 05:51 PM

Quote:

Originally Posted by jenkins123 (Post 5707984)
I guess my question is too advance for the LQ community here to answer.

I will use single user mode :rolleyes:


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.

jenkins123 05-08-2017 07:01 PM

Quote:

Originally Posted by jmgibson1981 (Post 5707987)
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.

astrogeek 05-08-2017 07:11 PM

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!

frankbell 05-08-2017 08:00 PM

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.

JJJCR 05-08-2017 10:23 PM

Patience is a virtue, even in the virtual world.

rtmistler 05-09-2017 07:15 AM

Quote:

Originally Posted by jenkins123 (Post 5708003)
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.

chrism01 05-10-2017 08:49 PM

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 ;) :)

JJJCR 05-10-2017 09:44 PM

Quote:

Originally Posted by chrism01 (Post 5708890)
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. :)

BW-userx 05-11-2017 08:09 AM

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.

sundialsvcs 05-11-2017 08:25 AM

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.


All times are GMT -5. The time now is 12:01 AM.