How do I make Ubuntu 16.04 not ask me for my password? I have turned on and off the autologin on my user on System Settings > User Accounts (the only user) but it stills ask me for password on the startup.  Ubuntu was not asking for password at startup until I upgraded from 14.04 to 16.04.  Any ideas?  Thank you.
53245
I want user foo to auto-login using LightDM (which has been used by Ubuntu since version 11.10). How would I do that?
776
When I'm about to install a program in the terminal it wants the password:  [sudo] password for xxx:   But when I start to type my password nothing happens. What should I do?
80152
I just installed Ubuntu 12.10 and afterwards, I accidentally set the administrator account password to empty/null. This gave me problems when trying to do administrative tasks in the GUI, so after reading up on askubuntu I used the passwd command to set the password for the account anew.  However, at the login screen when clicking on the account, I'm not asked to enter the password; but, instead, I log in directly as if there is no password set for the account.  When doing administrative tasks in the GUI, I will be asked for a password.  What do I do to be asked for the password at login time?  I did already try, several times, in the User Account settings window to set a new password for the account. That is, in the settings window it does not say "login without a password" for my account and it shows that there is a password set for the account.
112962
How I can allow only my own ip to login for my ubuntu server ? Yesterday got 1500 unwanted failed login attempts.  Allowing only my own IP, could be the most secure from hackers ? I use Postfix only for sending, so that wont need to allow any incoming connections.
105305
why should root access be disabled for ssh? I always hear that's for security reasons. But I don't get it. What's different to login as non-root and then sudo su -? What's the preferred way to handle tasks that need privileged permissions?  Thanks  Thomas
36110
I'm trying to install the  IDE in my Ubuntu and in the process it's asking for my root password which I don't remember. I know my  user password. How can I recover my root password?
104160
I just installed Ubuntu 16.04 LTS along with the packages php, mariadb and nginx. I ran mysql_secure_installation and changed the root password.  Now when I try to login to mysql using the root account while logged in Ubuntu as normal user account I get access denied.   When I login using sudo mysql, mysql doesn't even ask me password. If I run mysql_secure_installtion I see that old settings never got set permanently.   What am I doing wrong?
85233
How to allow an account to login at the greeter without typing the password in Lubuntu 16.10?  I think I remember that worked in Ubuntu but I have not found a way to make that work in Lubuntu  GUI Try 1  I tried the gui way: "user &amp; groups" -> change password -> [check] "don't ask password on login". And then reboot computer.  That doesn't work. The lightdm gtk greeter surely doesn't ask for a password for the user (let's say it is called user2), but then after I click ok, then the hard disk run for a while and then I go back to the login in screen again.  Original Config  /etc/lightdm/lightdm.conf:  [SeatDefaults] # Check https://bugs.launchpad.net/lightdm/+bug/854261 before setting a timeout user-session=Lubuntu greeter-session=lightdm-gtk-greeter allow-guest=false   Config File Try 1  I undo the gui try. Added the following lines to /etc/lightdm/lightdm.conf.d/20-lubuntu.conf, which was empty before I added these lines.  [SeatDefaults] user-session=Lubuntu autologin-user=user2 autologin-user-timeout=delay   I reboot the computer, and find that I still need to password to login at lightgreeter.  Config File Try 2  I undo other changes to the configuration files. Undo the gui try. I followed   Add the following lines to /etc/lightdm/lightdm.conf  [Seat:*] pam-service=lightdm pam-autologin-service=lightdm-autologin autologin-user=user2 autologin-user-timeout=0   After that I reboot the computer. Still need password to login.  Config File Try 3  I undo other changes to the configuration files. Undo the gui try. I followed   add the following lines under the existing section [SeatDefaults] to  /etc/lightdm/lightdm.conf,  autologin-user=user2 autologin-user-timeout=0 user-session=Lubuntu greeter-session=lightdm-gtk-greeter   After that , I reboot the computer. Still need password for login.  Config File Try 4  I undo config file try 3, and didn't use the gui try. I back up /etc/lightdm/lightdm.conf to /etc/lightdm/lightdm.conf.orig and then replace /etc/lightdm/lightdm.conf with 's config file:  [Seat:*] autologin-guest = false autologin-user = user2 autologin-user-timeout = 0  [SeatDefaults] allow-guest = false   After that, I reboot the computer. Still need password to log in as user2 at the greeter.  New Account (Workaround 1)  I create a new account called user3. When I create it I choose not to encrypt homefolder, I also choose to login automatically before I actually log into the account. After that, automatic login on the account seems to work, so far.  I can try to replicate everything I did for user2 at the user3 account. But ideally, I should just click the checkbox for user2, and make autologin work for the existing account...  Summary  I don't know why only the gui way changes the behavior of the greeter (it makes the greeter doesn't ask for a password, but it also doesn't let me login. I certain hear some hard-disk noise for a few seconds though.).
85323
On initial installation of Ubuntu 16.04, I checked off "Install third-party software" and, underneath it, I was prompted to check off another option which would allow the OS package to automatically disable secure boot on its own, a prerequisite of which was creating a password that would somehow allow this whole process to occur.  After continuing with the installation, I was never given any indication that this disabling of secure boot had occurred, nor was I ever prompted to enter the password that I had created.  Upon successful installation of the OS, I restarted my computer and checked out the BIOS. In BIOS, secure boot was still enabled. However, back in Ubuntu, I am able to seamlessly play MP3 and Flash files, which I assume indicates that the installation of third-party software was successful.  I haven't run into any problems as of yet (other than the fact that the UI has been a bit finicky and buggy at times), but I would like to know what on Earth I actually accomplished by creating that password.  What happened to the password I created? Will I need to remember it for any reason? It's not the same as my login/sudo password.  Has Ubuntu permanently edited my BIOS in order to make an exception for itself? If so, how can I view these changes and potentially undo them? Is that where the password would come in?  Why does Ubuntu need to disable/bypass secure boot to install the ubuntu-restricted-extras package anyway? Is my installation okay? Have I set myself up for future problems? Should I try reinstalling with secure boot manually disabled as not to receive that prompt in the first place?  Additional information: I am running a UEFI system, and I am dual-booting Ubuntu 16.04 alongside Windows 10.   Unlike this user, I do not receive a warning about "booting in insecure mode," but I would also like to know whether Ubuntu has created an exception for itself and how I could manage such exceptions. Unlike myself, this user has not mentioned anything about having to create a password.
52120
I have a realy strange problem in Ubuntu 11.10. I have by accident my password set to empty. If I wan't to install software now the system asks for a password, but I haven't one anymore. If I enter my old password it sais it's wrong and if I leave it empty it also does. Now I wan't to set my password back, but the system asks for the old password before I can change it. That password doesn't exist, so I can't do anything anymore! Can someone help me please?
78799
I find that if I execute something using sudo that then if I execute something else soon after also using sudo, that it does not prompt me for my password, and although this can be inconvenient in some situations, it is a security risk in others, and a hassle to keep on coming back and executing the command to make it prompt your for the password on the next go. So I was wondering if and how I could get it to prompt me every time, or for it to at least only remember my password for a very short amount of time?
32241
Is there a way to enter the default keyring password using the command line?   For instance:  You have a remote setup of Ubuntu 10.10 thats set to auto login. You don't want to remove  the keyring password.  All right the system boots up and logs in automatically, then asks for the keyring password now at this point you can create ssh connections but you can't remote desktop.   What can you do to enter the keyring password at this point?  Also, to better clarify, this is from a remote connection using the command line.
27279
I used to have a password prompt but then I, from somewhere in User Accounts, unchecked "Require a password for login." Now, I want Ubuntu to prompt for a password again at login screen, mainly because I have to manually unlock the login keyring whenever I access Dash or other services, which is a pain at best.  I also searched another question, namely . It was of no help because the OP's question is "I have a password but Ubuntu doesn't ask for it."  Also, the two answers provided there don't solve my problem at all. They discuss completely other things.  Is there no simple mechanism? Because intuitively, if there's a checkbox option to bypass password requirement, there should be an equally hassle-free facility to again require the password.
118380
I am trying to understand how user permissions work in Linux. The kernel boots and starts init as root, right? Init then runs startup scripts and runs getty (agetty), again as root. Agetty just reads user name and runs login, still as root, I think. Nothing interesting yet. But what does login do? I wasn't able to find anything better than "it attempts to log in". Suppose login finds that password matches (and we trying to log in as usual user), how does it change user id? I thought that there should be system call for that but I wasn't able to find it (maybe I'm just blind?)    Also, about su. su has the 'setuid' bit set so when we run it, it always runs as root. But when we tell it to log in as usual user, it again needs to change user id. Do I understand correctly that the same "magic" happens in su and login when they need to change user? If so, why have two different programs? Is there any additional sorts of serious business happening when running login?
119517
Whenever I issue command sudo apt-get install ** it does not ask for password, not in my admin user too.  How to make it prompt for password?  My sudoer :  ubuntu:~$ sudo cat /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults    env_reset Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"  # Host alias specification  # User alias specification  # Cmnd alias specification  # User privilege specification root    ALL=(ALL:ALL) ALL  # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL  # Allow members of group sudo to execute any command %sudo   ALL=(ALL:ALL) ALL  # See sudoers(5) for more information on "#include" directives:  #includedir /etc/sudoers.d ALL ALL=(ALL) NOPASSWD:ALL
61968
I set up the GRUB password protection on my Ubuntu LTS 14 64bits. To do that I generated a hash of the password with grub-mkpasswd-pbkdf2. Then I edited /etc/grub.d/40_custom to add those 2 lines:  set superusers="admin" password_pbkdf2 admin grub.pbkdf2.sha512.10000.EC81D.............   After updating the Grub and rebooting, the password is present BUT everywhere. If I want to boot on Ubuntu, I have to enter my password. I'd like to set up the password only for 'e' editing GRUB menu. (to avoid single user mode)  Any Ideas ?  Thanks
110622
I've tried to setup an autologin, but that isn't possible, because my home is encrypted. What are the reasons for this?  PS. Here I have described my problem: .