LinuxQuestions.org
Register a domain and help support LQ
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 11-29-2014, 10:05 AM   #1
Deuxis
LQ Newbie
 
Registered: Nov 2014
Distribution: Linux Mint 16 Petra
Posts: 2

Rep: Reputation: Disabled
Unhappy Root password changed after removing main account password


Hello. I recently removed password from the main (and only) account. The thing is, while I can log on no problem, I cannot access root commands. When I try to do anything with "sudo" at the beginning, the terminal asks me for a password, and the one I was using before doesn't work. I thought it switched to some default, but when I changed root password by these instructions
http://blog.zwiegnet.com/linux-serve...rd-linux-mint/
it returned success, but after rebooting and logging in to my account, I discovered that nothing changed, I still can't use sudo. Does anyone know what happened and what can I do to fix it?
 
Old 11-29-2014, 12:04 PM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Hi, and welcome to LQ!
I think you are a little bit confused here: The root account and your personal account are two different accounts.
With sudo you are to type in your own password - nott root's (actually, this is configurable but this is Mint default.) So when you reset root password, it doesn't change anything concerning your usage of sudo.
Removing a password, which actually is making it blank, is not a good idea. Several authentication methods do not accept blank passwords, as you now have noticed.
So, solution is to set your own password to something, (or you could use "su -" to switch to root account in a terminal).
 
1 members found this post helpful.
Old 11-29-2014, 01:54 PM   #3
Deuxis
LQ Newbie
 
Registered: Nov 2014
Distribution: Linux Mint 16 Petra
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thumbs up

Thanks for your reply, and for the "su -" thing, I didn't know that before. My main problem was the fact that it would ask me for a password when I tried to set it for my passwordless account, but thanks to you I was able to figure it out using root.
 
  


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
news user account password changed, not sure what its for even rjo98 Linux - Newbie 4 09-30-2013 11:07 AM
[SOLVED] I changed the root password nigelc Linux - General 3 03-05-2013 07:01 AM
i forget my root password. how to login in root account with new password in red hat. balajiraja Linux - Desktop 3 08-22-2012 02:41 AM
Help Root password changed!!! UmneyDurak Fedora 4 09-28-2004 02:47 PM
someone changed my root password. what do i do? budds Linux - Security 4 09-12-2004 01:09 AM


All times are GMT -5. The time now is 04:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration