New answers tagged

0

There is no way to add an authentication step to "switch to workspace". So, you cannot do what you asked. However, you could lock your screen, and let your guest use a Guest session - no password, only civilian access, vanishes at logout.


0

I was trying a lot of different options and, finally, what works for me, is installation of xscreensaver sudo apt install xscreensaver I added a shortcut Shift+Super+L to a command: xscreensaver-command -lock and now it locks my PC and unlock can be possible only if I enter the password


0

Explanation Behind common-auth If you're just looking for a quick fix, go below to How to Configure common-auth to Lock Out. Hopefully this will help bring some sense into how /etc/pam.d/common-auth configures lockout. If you take out all the comments in /etc/pam.d/common-auth, you are left with the following: auth [success=1 default=ignore] ...


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.


0

I followed these steps this worked for me . First remove all the packages(all means ldap packages you have installed) by using sudo apt-get remove package then follow these steps. Steps are as follows: Step 1: Install OpenLDAP sudo apt-get install slapd ldap-utils Give the Administrator Password/Root Password Re-Enter the Password of Administrator/Root ...


0

you would have to alter the sudoers file (or add a new file to /etc/sudoers.d/) to allow user "user" to execute this script without password: user ALL=(ALL:ALL) NOPASSWD: /home/user/Desktop/script.sh if you do not want to execute the whole script.sh as root, you need to mention all commands within the script.sh that you will be prepending with sudo. it's ...


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.


0

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 This would be used to reset your password. 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

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 :)


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 ...


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. ...


0

Since there was no help i have decided to create alternative script to launch by mv /usr/bin/google-chrome /usr/bin/google-chrome-orig nano google-chrome with content google-chrome --password-store=basic then i made it executable so now chrome starts with this command anytime anywhere, not just only by clicking on shortcut


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


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.


0

I had the same issue with an encrypted disk on a asus e200ha mint18. I was able to resolve it by updating to kernel 4.6.0-040600-generic and adding all the modules from lsmod to /etc/initramfs-tools/modules and updating initramfs followed by updating grub. I started out with 157 modules being loaded by initramfs, I'm sure not all of them are needed to make ...


1

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


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 ...


0

Sudo privileges should only be given to those who may need to administer the machine itself. Other privileges can be managed through groups and group privileges. For instance, add user named 'developer1' to the www-data group: sudo usermod -a -G www-data developer1 This will add 'developer1' to Apache's www-data group. sudo chgrp -R www-data /var/www ...


0

I figured it out! gnome-screensaver wasn't added to the startup applications, so I added it to that and all is well.


0

Go to System Settings >> User Accounts and switch the Automatic Login to OFF. Now set your preferences in the following sections: System Settings >> Brightness & Lock System Settings >> Security & Privacy >> Security If not already existing, set a user-password, replace 'your-user-name' with your real user-name: sudo ...


0

You have to click Wi-Fi icon, next "Network Connections". Select Your Wi-Fi's SSID, and click "Edit". In new window you should have tab "WiFi Security" and there will be check button called "Show password". I'm writing it from my memory. I hope that I helped.


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)'


0

The only workaround that I am aware of is to select the "Forget password immediately" option while logging into the server. It showld be a radio button right beneath the username/password fill form. That way when you unmount the device, you will be able to login again as the same ot different user.


-1

It's pretty obvious that your user is not in the sudo group. You didn't provide any additional information like, are you the only user of that computer? If you are not, then ask/use a sudo account to add your account to the sudo group. However, it's also possible that there are no sudo users on your system at all (pretty rare). If you have accidentally ...


-1

As indicated in the other answers, you need to be in the sudoers group. If you are, the sudo password is the same as your login password.


0

I am guessing your account doesn't possess superuser privileges. You cannot recover password from terminal by any command. If you need to do perform any administrative tasks, you should consider contacting your IT support for the root access. Also, you might want to edit the description of your question to make it look more professional.


0

Boot from ubuntu cd, mount your root partition, chroot into root partition an change your passwords. 1 boot live cd 2 open terminal 3 sudo -s 4 mount /dev/sda1 /mnt , if sda1 is your root partition. 5 chroot /mnt 6 passwd root New password New password 7 passwd youruser New password New password 8 exit 9 umount /mnt 10 reboot



Top 50 recent answers are included