How to disable the login password for a specific user?

16,962

Solution 1

Looking through logfiles, I found this (logged by lightdm): pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "walt" (I use a password). Try adding your Mom to the nopasswdlogin group (sudo adduser Mom nopasswdlogin). Untested, might work.

Solution 2

1.To keep a small password.

Change password on terminal sudo passwd username Enter whatever small password you like at prompt "Enter new UNIX password:"

And again type at prompt "Retype new UNIX password:"

Note: on terminal you will not see anything when you type the password.

  1. To make totally password free:

    Run very carefully:

    sudo -H gedit /etc/sudoers
    

    add

    <username>   ALL=(ALL:ALL) NOPASSWD: ALL
    

    below the line

    %sudo   ALL=(ALL:ALL) ALL
    

    save and close.

and also:

Delete password for user:

sudo passwd -d <username>

Repeat the steps for other user.

  1. To add to the group nopasswdlogin:

    sudo usermod -a -G nopasswdlogin <USERNAME>

  2. To remove from nopasswdlogin group:

    sudo gpasswd -d <USERNAME> nopasswdlogin

Share:
16,962

Related videos on Youtube

ORO8ORO
Author by

ORO8ORO

Art student :'D

Updated on September 18, 2022

Comments

  • ORO8ORO
    ORO8ORO over 1 year

    I have two users in my Ubuntu Budgie 18.04.

    The first is mine, and the second is for my mother.

    I want to disable the login password request from my mother user, so she can log in without the need to remember a password. I tried simple passwords but the system also don't let me use simple passwords.

    I also tried to activate the auto login, but it is annoying when I turn on my laptop to use My account, and it will log into my mother's user, and I need to log off to enter into mine.

    The guest user also doesn't work, when I try to log in, it will go back to the login screen.

    • goo
      goo over 5 years
      Looking through logfiles, I found this (logged by lightdm): pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "walt" (I use a password). Try adding your Mom to the nopasswdlogin group (sudo adduser Mom nopasswdlogin). Untested, might work.
    • goo
      goo over 5 years
      Please Accept my answer.
  • George Udosen
    George Udosen over 5 years
    Please note it is best to do sudo -H gedit /etc/sudoers!!!
  • PerlDuck
    PerlDuck over 5 years
    Won't this simply let the OP's mom issue sudo any_command without a password? If I got that right, this is not what the OP asked for.
  • steeldriver
    steeldriver over 5 years
    ... even better than sudo -H gedit /etc/sudoers IMHO would be sudo visudo (or sudo -H VISUAL=gedit visudo if you insist on using gedit) however I agree with @PerlDuck this doesn't seem to be what the OP is looking for
  • SaTa
    SaTa about 4 years
    I got adduser: The group nopasswdlogin' does not exist.`