I do not remember any of my administrator authentication codes

Asked by Bill

I have just began re-using an older computer. I need to make administrative changes to all 3 administrative accounts but when I try, it tells me that "Authentication is required to change user data". I don't remember the passwords for any of these accounts. I know one of them does not even have a password to enter the account but the authentication is asking for one anyway. I don't know what to do to authenticate. Please help me.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu nautilus Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#1
Revision history for this message
zchat (chatfree) said :
#2

1. Boot into Recovery Mode:
Restart your computer.

When the Ubuntu boot screen appears (the GRUB menu), hold the Shift key to access the GRUB menu.

In the GRUB menu, select the Advanced options for Ubuntu.

Choose the recovery mode option (it will usually have (recovery mode) next to the kernel version).

2. Drop into a Root Shell:
In the recovery menu, use the arrow keys to select the root option, which will drop you into a root shell prompt.

Press Enter.

3. Remount the File System with Write Permissions:
By default, the file system is mounted as read-only in recovery mode. To make changes, you need to remount it with write permissions:

bash
Kopyala
Düzenle
mount -o remount,rw /
4. Reset the Password:
Now you can reset the password for any of the accounts. For example, if you want to reset the password for a user (e.g., username), run the following command:

bash
Kopyala
Düzenle
passwd username
You'll be prompted to enter a new password for the account. Enter the new password twice to confirm.

5. Restart the Computer:
Once you've reset the password, you can reboot your system:

bash
Kopyala
Düzenle
reboot
After the restart, you should be able to log in using the new password and make administrative changes.

If You Don't Have Access to Root:
If the root account is locked or you don't have permission to reset the password, you might need to boot from a live USB or CD to mount the system disk and reset the password from there.

Let me know if you need more detailed steps for that approach!

source: chat https://zchat.org

Can you help with this problem?

Provide an answer of your own, or ask Bill for more information if necessary.

To post a message you must log in.