jack
Member
Posts: 9
Likes: 1
|
Post by jack on Feb 22, 2023 8:33:02 GMT
Is there a way to arrange for an added user (not the first user) to be able to log in without giving a password?
|
|
|
Post by Hippytaff on Feb 22, 2023 14:00:12 GMT
If you mean auto login (so no password to log in) Create the user as normal. Open terminolgy and do
sudo nano /etc/lightdm/lightdm.conf
remove your user name from this line
autologin-user=
If you mean for the user to have no password at all, this isn’t really advisable as the user will have to switch to root to do anything that requires elevated privileges. That is also doable but I’m assuming auto login is what you’re after?
|
|
R0bur
Crew Member
 
Posts: 113
Likes: 81
|
Post by R0bur on Feb 22, 2023 16:59:16 GMT
Is there a way to arrange for an added user (not the first user) to be able to log in without giving a password? Your problem has two solutions. 1) You can place the user in the system group "nopasswdlogin": $ sudo adduser joe nopasswdlogin The user "joe" will be able to login without any password. But he will be asked for the password to get "sudo" privileges. To remove the user from the group "nopasswdlogin" use the command: $ sudo deluser joe nopasswdlogin 2) You can set empty password for the user: $ sudo passwd -d joe The user "joe" will be able to login without any password and ( ATTENTION!) will get "sudo" privileges without password too, if he is a member of the system group "sudo".
|
|
enigma9o7
Crew Member
 
Posts: 1,057
Likes: 1,112
|
Post by enigma9o7 on Feb 22, 2023 18:23:55 GMT
TIL! I wish I knew this earlier, I've been typing passwords for years for no reason!
|
|