LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-02-2017, 08:35 AM   #1
seaguy
Member
 
Registered: Dec 2010
Location: ALbama Coast
Distribution: Ubuntu 16 I think
Posts: 34

Rep: Reputation: 1
Lost admin password question


I managed to lose the password that allows app installs (OS is 12.04). I took over my wife's old Vaio and was trying to change her as admin to me. I am now only a guest user and the admin password she had will not work for me when I try to change user status or anything else for that matter. I was wondering if I could download a copy of 14.0 xxLlt and install it over the older OS. Would that allow a new assignment of a password?
 
Old 02-02-2017, 08:45 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
You can also use recovery mode and set a new password. Here's a guide:


http://askubuntu.com/questions/24006...ative-password
 
Old 02-02-2017, 11:44 PM   #3
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
Is your wife's user account still there? Can you log in as that user?
 
Old 02-03-2017, 04:08 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Just a side note that Ubuntu 12.04 is only supported until 16 April 2017.

You might consider installing a more up-to-date version (16.04 is recommended as it is the most recently released version with long-term support).
 
Old 02-04-2017, 09:57 AM   #5
seaguy
Member
 
Registered: Dec 2010
Location: ALbama Coast
Distribution: Ubuntu 16 I think
Posts: 34

Original Poster
Rep: Reputation: 1
I have tried the askubuntu method of recovry with no joy. only allows changing standard users passwds.Anytime I try to install and app,update or edit users I get the Authentication token error. I still have the 12.04 lts CD. Could I do a reinstall with it to them assign a new addmin user?
 
Old 02-04-2017, 10:42 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,516

Rep: Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492
The guest login is extremely limited and you won't be able to log in as a guest user and do much of anything. For example, logged in as a 'guest', you cannot switch to gain root/admin privileges even with the correct password. Additionally, any changes you make as a guest are lost on reboot by design. You indicate that your wife had admin rights and you know the password so just login in as the user your wife created and her password should work. If that user no longer exists, that's a different problem.

The link below gives some info on the Ubuntu guest account and it's limitations:

https://help.ubuntu.com/community/CustomizeGuestSession

Last edited by yancek; 02-04-2017 at 10:50 AM.
 
Old 02-04-2017, 03:42 PM   #7
seaguy
Member
 
Registered: Dec 2010
Location: ALbama Coast
Distribution: Ubuntu 16 I think
Posts: 34

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by hydrurga View Post
Just a side note that Ubuntu 12.04 is only supported until 16 April 2017.

You might consider installing a more up-to-date version (16.04 is recommended as it is the most recently released version with long-term support).
Thanks hyd. I did download 16.04 and then found it was for a 64 bit machine...the older Sony Vaio I have is 32bit. Didn't see a 32bit version.
 
Old 02-04-2017, 04:01 PM   #8
seaguy
Member
 
Registered: Dec 2010
Location: ALbama Coast
Distribution: Ubuntu 16 I think
Posts: 34

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by TxLonghorn View Post
Is your wife's user account still there? Can you log in as that user?
She is no longer a user. What happened was I signed in as her, changed her username to mine and then her password would not work any more. I used ask ubuntu method nad got a new password that will let me sign in as a standard user but still can't install anything
 
Old 02-04-2017, 05:20 PM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by seaguy View Post
Thanks hyd. I did download 16.04 and then found it was for a 64 bit machine...the older Sony Vaio I have is 32bit. Didn't see a 32bit version.
You can get a 32-bit version from here:

http://releases.ubuntu.com/16.04/ (1st "32-bit PC (i386) desktop image" down)
 
1 members found this post helpful.
Old 02-04-2017, 11:53 PM   #10
seaguy
Member
 
Registered: Dec 2010
Location: ALbama Coast
Distribution: Ubuntu 16 I think
Posts: 34

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by hydrurga View Post
You can get a 32-bit version from here:

http://releases.ubuntu.com/16.04/ (1st "32-bit PC (i386) desktop image" down)
Thanks Hydrurga. I think I will try to use an ISO cd and see if it will run. I should be able to boot into safe mode and get the ISO to install. Need to save a few fills first then I will give it a shot.
 
Old 02-05-2017, 06:43 AM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,516

Rep: Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492
Quote:
What happened was I signed in as her, changed her username to mine and then her password would not work any more
Which is why you are having this problem. The process would have been to log in under your wife's user name, use her password with sudo/admin privileges and create another user (yourself) and give yourself sudo/admin rights.

In your initial post, you mention the 'old Viao'. How old is old? Ubuntu might not be a good choice. You should check the minimum hardware requirements for Ubuntu. The link below lists the absolute minimums.

https://help.ubuntu.com/community/In...emRequirements
 
Old 02-05-2017, 08:38 AM   #12
seaguy
Member
 
Registered: Dec 2010
Location: ALbama Coast
Distribution: Ubuntu 16 I think
Posts: 34

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by yancek View Post
Which is why you are having this problem. The process would have been to log in under your wife's user name, use her password with sudo/admin privileges and create another user (yourself) and give yourself sudo/admin rights.

In your initial post, you mention the 'old Viao'. How old is old? Ubuntu might not be a good choice. You should check the minimum hardware requirements for Ubuntu. The link below lists the absolute minimums.

https://help.ubuntu.com/community/In...emRequirements
1.5 core2 duo,2gb ram,160gb hd,dual layer dvd. Should be ok for 16.04 lts 32bit.

Last edited by seaguy; 02-05-2017 at 08:43 AM. Reason: additional sentence
 
Old 02-05-2017, 10:59 PM   #13
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
*IF* you want to 'get down&dirty' aka CLI (like *I* -love- such puzzles),
you might investigate (/fix) 'id' owner and/or the UID/GID *numbers* in /etc/passwd
There's some 'basic tricks' here, since -all- files are owned by a UID# (not name)
BUT directories are names. So, maybe, you can ?easily hack? it back into all working!
ForWhatIt'sWorth
 
Old 02-06-2017, 12:08 AM   #14
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
You do need to install a currently supported version (16.04), and that will also solve the password problem.

Quote:
Originally Posted by yancek View Post
For example, logged in as a 'guest', you cannot switch to gain root/admin privileges even with the correct password.
Yes, you can. If the administrative user still exists (named "user1", for example), as "guest" you can open a terminal and enter
Code:
su user1
, and then user1's password. At that point you have access to all sudo commands, using user1's password. I know, because I just did it.

Also, you can press ctrl+alt+F2, and log in as the administrative user.

Quote:
Originally Posted by yancek View Post
Additionally, any changes you make as a guest are lost on reboot by design.
All changes you make in the personal configuration for "guest" are preserved on reboot - except in the special case of "kiosk" mode.

Last edited by TxLonghorn; 02-06-2017 at 12:11 AM.
 
Old 02-06-2017, 12:00 PM   #15
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,516

Rep: Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492
Quote:
Yes, you can. If the administrative user still exists (named "user1", for example), as "guest" you can open a terminal and enter
It doesn't. Post 8 where the OP states he changed the name of the primary user to another name. Doesn't say how?

On default Ubuntu 16.04 and 14.04 versions I have installed, logging in as guest, no commands prefixed with sudo do anything nor do commands such as su user1 or su - user1 when user1 has root privileges. They all result in 'operation not permitted' messages. Ctrl+Alt+F2 does allow login to the account with sudo privileges.

Quote:
All changes you make in the personal configuration for "guest" are preserved on reboot - except in the special case of "kiosk" mode.
The only way I've been able to save data from a guest session is as explained at the Ubuntu documentation site below, to a flash drive. Logging into an Ubuntu guest session pops a window every time stating no data will be saved on logout which is the default unless the guest user settings are modified as shown on the page at the second link below. Out of curiosity, which release of Ubuntu are you using? Based on the info at the Ubuntu sites, I'm surprised you are able to use sudo/su from the guest without modifications but then, I don't boot the Ubuntu system often.

https://help.ubuntu.com/stable/ubunt...t-session.html

https://help.ubuntu.com/community/CustomizeGuestSession

Last edited by yancek; 02-06-2017 at 02:17 PM.
 
  


Reply



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
Need help with lost admin password.. Nothing working trubloodfan27 Linux - Newbie 11 06-25-2013 02:55 AM
Lost Nagios admin password... HELP!!! scubaman99 Linux - Software 2 01-06-2009 04:02 PM
Lost Admin Password ntm333 Linux - Server 1 10-21-2008 05:15 AM
lost ldap admin password irvken Linux - Software 1 12-20-2007 02:03 AM
Recovering Lost Admin. Password Mr Neroazzurri Linux - Security 4 03-14-2003 05:26 PM

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

All times are GMT -5. The time now is 10:04 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