Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

exboyfil

(17,993 posts)
Tue Apr 12, 2022, 01:31 PM Apr 2022

Ubuntu users

I recently acquired a used computer that is running the Ubuntu operating system. There seems to be a newuser account that requires a password (I can web browse etc until the machine times out and goes to the newuser). I don't know this newuser password. I would either like to figure out the newuser password or create an account with a new password.

I can open up the console to do direct commands, but I am in the newuser prompt. It asks for a password everytime I try to do something.

Any suggestions?

4 replies = new reply since forum marked as read
Highlight: NoneDon't highlight anything 5 newestHighlight 5 most recent replies
Ubuntu users (Original Post) exboyfil Apr 2022 OP
boot to single user and then use passwd to modify password for any account lapfog_1 Apr 2022 #1
Thank you exboyfil Apr 2022 #3
This message was self-deleted by its author exboyfil Apr 2022 #2
Another thing to try (YMMV) usonian Apr 2022 #4

lapfog_1

(30,138 posts)
1. boot to single user and then use passwd to modify password for any account
Tue Apr 12, 2022, 01:39 PM
Apr 2022

To boot into single user mode you edit the boot instructions for the GRUB menu entry you wish to boot and add the kernel parameter/option single. Brief instructions for how to do this are below.

Hold down the left Shift key while rebooting to bring up GRUB menu
Select (highlight) the GRUB boot menu entry you wish to use.
Press e to edit the GRUB boot commands for the selected boot menu entry.
Look near the bottom of the list of commands for lines similar to

linux /boot/vmlinuz-3.2.0-24-generic root=UUID=bc6f8146-1523-46a6-8b
6a-64b819ccf2b7 ro quiet splash
initrd /boot/initrd.img-3.2.0-24-generic
Change the middle line in (4) by adding the kernel boot parameter single to the end of the line (i.e. after ro quiet splash).

For this example you would change:

6a-64b819ccf2b7 ro quiet splash
to

6a-64b819ccf2b7 ro quiet splash single
Press either Ctrl+X or F10 to boot using these kernel options.

Note: These changes are not persistent. Any change to the kernel boot options made this way will only affect the next boot and only if you start that boot by pressing either Ctrl+X or F10 while still in GRUB edit mode.

Response to exboyfil (Original post)

usonian

(13,754 posts)
4. Another thing to try (YMMV)
Tue Apr 12, 2022, 02:39 PM
Apr 2022

I personally would want to just reinstall, with a new version of Ubuntu. That way, you know exactly what is going on, and can set up your own account.

My favorite trick is to download or grab a copy of Knoppix http://knoppix.net/ (it sometimes shows up in Linux magazines in bookstores).

Knoppix is a nice Linux distro that at last download uses the old init system, not systemd (I am an old-timer)

You can just boot it live off a dvd drive or USB if you have a boot image on USB stick. Install later if it works.

FWIW, I donated some old computers to the thrift store with Linux Mint distro on them, AND I LABELED THE ACCOUNTS AND PASSWORDS.

Latest Discussions»Help & Search»Computer Help and Support»Ubuntu users