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 |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-08-2017, 05:39 PM
|
#1
|
LQ Newbie
Registered: May 2017
Posts: 3
Rep:
|
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
|
|
|
05-08-2017, 06:32 PM
|
#2
|
LQ Newbie
Registered: May 2017
Posts: 3
Original Poster
Rep:
|
I guess my question is too advance for the LQ community here to answer.
I will use single user mode
|
|
|
05-08-2017, 06:36 PM
|
#3
|
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
|
just change it like you wound any user
|
|
1 members found this post helpful.
|
05-08-2017, 06:51 PM
|
#4
|
Senior Member
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Linux Mint 22
Posts: 1,213
|
Quote:
Originally Posted by jenkins123
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.
|
05-08-2017, 08:01 PM
|
#5
|
LQ Newbie
Registered: May 2017
Posts: 3
Original Poster
Rep:
|
Quote:
Originally Posted by jmgibson1981
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.
|
|
|
05-08-2017, 08:11 PM
|
#6
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,311
|
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.
|
05-08-2017, 09:00 PM
|
#7
|
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
|
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.
|
|
|
05-08-2017, 11:23 PM
|
#8
|
Senior Member
Registered: Apr 2010
Posts: 2,285
|
Patience is a virtue, even in the virtual world.
|
|
2 members found this post helpful.
|
05-09-2017, 08:15 AM
|
#9
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,938
|
Quote:
Originally Posted by jenkins123
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.
|
|
|
05-10-2017, 09:49 PM
|
#10
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,418
|
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.
|
05-10-2017, 10:44 PM
|
#11
|
Senior Member
Registered: Apr 2010
Posts: 2,285
|
Quote:
Originally Posted by chrism01
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.
|
|
|
05-11-2017, 09:09 AM
|
#12
|
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
|
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.
|
|
|
05-11-2017, 09:25 AM
|
#13
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,057
|
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 09:21 AM.
|
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
|
|