LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-07-2019, 01:37 PM   #1
antares4141
LQ Newbie
 
Registered: Sep 2008
Location: truth or consequences, nm
Distribution: suse
Posts: 20

Rep: Reputation: 11
Ubuntu set to log in automatically. Can I change lost password from there?


I do it every time, I set computer to log in automatically, write down password, but for some reason when I forget it, and try the wrote down password it doesn't work.

Regardless I am able to log in to Ubuntu automatically. Is there an easier way than the conventional methods of recovering passwords?

Seeing as I am able to log in automatically?

If I go to user settings and try it there I still need a password to change the password.

I think last time I tried the safe-mode route I ended up in frustration just re-installing linux.

Hoping to avoid this.
 
Old 12-07-2019, 02:50 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ Win10
Posts: 9,518

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
stop Automatically logging in so you can remember it by using it. muscle memory
if you have your user as sudo user group you should be able to change it

Code:
sudo passwd userName
there too is a way to create a user with no passwd, you'd have to look into it, or hopefully maybe someone else in here will remember how to do that and share it with you in here.

Last edited by BW-userx; 12-07-2019 at 02:51 PM.
 
Old 12-07-2019, 03:26 PM   #3
uteck
Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: GalliumOS on Chrombook
Posts: 321

Rep: Reputation: 63
sudo will not work since it will ask for the users password.
passwd by itself will also ask for the current password.

You will need to login to recovery mode and run "passwd username" from there. Running passwd as root/sudo will not ask for the current password.
If you login automatically, then pick an easy to remember password, or stick it in file were you can open and read it.
 
Old 12-07-2019, 03:34 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ Win10
Posts: 9,518

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
sudo set w/nopasswd in sudoers file
Code:
userx@slack14.2plus.gm:~
$ sudo passwd userx
Changing password for userx
Enter the new password (minimum of 5 characters)
Please use a combination of upper and lower case letters and numbers.
New password: 
Re-enter new password: 
passwd: password changed.
just FYI
 
Old 12-07-2019, 03:42 PM   #5
uteck
Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: GalliumOS on Chrombook
Posts: 321

Rep: Reputation: 63
Quote:
Originally Posted by BW-userx View Post
sudo set w/nopasswd in sudoers file
just FYI
That is not the default setting for Ubuntu, so it does little good for this issue.
 
Old 12-07-2019, 05:50 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ Win10
Posts: 9,518

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Quote:
Originally Posted by uteck View Post
That is not the default setting for Ubuntu, so it does little good for this issue.
ya yes lets forget about the next time, as even I had to manually set my sudoers file to sudo no passwd. that is why I said, Just FYI..

as OP has already confessed it is not the first time this has taken place with him/her.

cheers!
 
Old 12-08-2019, 12:31 PM   #7
antares4141
LQ Newbie
 
Registered: Sep 2008
Location: truth or consequences, nm
Distribution: suse
Posts: 20

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by uteck View Post
sudo will not work since it will ask for the users password.
passwd by itself will also ask for the current password.

You will need to login to recovery mode and run "passwd username" from there. Running passwd as root/sudo will not ask for the current password.
If you login automatically, then pick an easy to remember password, or stick it in file were you can open and read it.
Ironically I did both of those. The password should have been _______2. My other computer being ______1. (which works) How I screwed that up I don't know?

I also wrote it down in an encrypted cheat sheet I have for all my passwords. But never deleted any of the old passwords labeled linux. So I tried them all and none worked.

And it's been a while since I decided to start toying with these computers but could have sworn I had both set to prompt for a login. So I thought I had that base covered also.

Anyways thanks for all the replies. I'm probably going to wait a while and see if I keep typing all the different iterations I've used for linux computers one will eventually work. And all the other things. Make sure cap lock wasn't on, different keyboard, maybe I wrote it down somewhere else cause I was to lazy to open, edit, and save my encrypted file.

Thanks again!
 
Old 12-08-2019, 03:25 PM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ Win10
Posts: 9,518

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
you also can separate your home and root, so in a the moment of desperation, reinstall the OS and keep your personal files. = new passwd
 
  


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
How to log internal-sftp chroot jailed users access log to /var/log/sftp.log file LittleMaster Linux - Server 0 09-04-2018 04:45 PM
[SOLVED] after installation of MySQL could not log into mysql using temporary password in /var/log/mysqld.log User247 Linux - Server 2 12-25-2017 10:31 AM
I have lost my password. can you help me to recover my password in ubuntu croosnaya Linux - Newbie 4 04-17-2012 07:52 PM
[SOLVED] WD Elite - Lost Password - How -To Remove the lost password? fixcom1 Linux - General 3 03-06-2011 06:23 PM
In Apache server, How to change log file location and log format for access log fil? since1993 Linux - Server 1 08-19-2009 05:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:34 PM.

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