Hot answers tagged

33

If you can't remember the password, then that's all she wrote. All you can do is install a new OS. You don't need to enter recovery mode to do that. Just boot up the live USB and carry out the normal installation process. The hard drive will get overwritten.


5

I have Ubuntu on a USB, but when I enter recovery mode before I can reinstall Ubuntu, I obviously get asked for the password. Is there anyway around this? I think you're missing a key step - boot from the Ubuntu USB drive. As it is, it sounds like you're not booting from the Ubuntu USB at all, and only getting stuck booting from the encrypted hard drive. ...


2

To prevent switching users by sudo su -, you need to disable root's ability to su to any user. Edit /etc/pam.d/su and comment this line: auth sufficient pam_rootok.so As the comment above this in /etc/pam.d/su says, this allows root to su without passwords. Or you could restrict sudo usage to a limited set of commands which don't include su and ...


2

Sometimes running a process from root's crontab may cause issues with initial file ownership and rwx mode; those may not be correctly preserved. In any case: 1) to create a new user, keep it simple: $ sudo deluser my-user # if "my-user" is a regular user $ adduser my-user $ sudo gpasswd -a my-user sudo 2) to include a new entry with a NOPASSWD tag ...


1

These adapters do not support 802.11n protocol well (at least on linux), but iwlwifi driver tries to use it. You can disable this protocol by running in terminal sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi 11n_disable=1" This will be applied after a reboot.


1

To change the password of a given user, just use the passwd command. For example, if I wanted to change the password of admin, I would use this command: sudo passwd admin I hope I helped :)


1

Thanks to dadexix86 I managed to fix it. I needed to open my hotmail account in a web browser and set option > mail > accounts > pop and imap to the following: I also needed to change the settings in evolution Preference menu to use imap-mail.outlook.com server.


1

Try accessing the recovery options from the grub menu. First, choose the "with networking" option. Then, choose the option to fix broken packages. This should mount the drive in read write mode. Then, choose a root prompt and execute the following command: do-release-upgrade


1

It is possible to reset the login password without logging in. I do not know how a password reset affects access to an encrypted drive, however. See the procedure below: http://www.psychocats.net/ubuntu/resetpassword Good luck.


1

So I have already found the solution: sudo -u test2 bash


1

Click on the WiFi icon on the top right part of the screen -> Edit connections -> choose the connection -> Edit -> Wi-Fi Security -> click on show the password. There you have it.


1

Nice one-liner to remove sudo prompts for the current user sudo bash -c 'echo "$(logname) ALL=(ALL:ALL) NOPASSWD: ALL" | (EDITOR="tee -a" visudo)'



Only top voted, non community-wiki answers of a minimum length are eligible