Is there a file with login information

I trying to figure out why this is not working. I could not find any login info in syslog.

$ sudo nano /etc/lightdm/lightdm.conf.d/autologin.conf

Once opened, insert the following lines and ensure to replace "USERNAME" with the preferred user to activate auto-login.

[SeatDefaults]
autologin-user=andy
autologin-user-timeout=5

Also asked at Better O.S. & Auto login does not work

1 Like

Try

[Seat:*] instead of [Seatdefaults]

1 Like

If I do a reboot, it autologs me in but not when I do a

gnome-session-quit --logout --no-prompt

please read LightDM - Debian Wiki

your current config can be seen with lightdm --show-config

1 Like

Thanks pavlos_kairis. I read the LightDM material.

I followed this instructions. Guess what happened when I did this:

gnome-session-quit --logout --no-prompt

### Enable autologin

Look up these lines in lightdm configuration file, uncomment them and customize to your preference.

[Seat:*] #autologin-user= #autologin-user-timeout=0

Hi, @fixit7!

So, it works. You haven't mentioned it before. This is exactly how autologin is supposed to work: it takes you straight to the desktop after your computer boots up. This only happens ONCE during the boot cycle.
You may be looking for a passwordless login, which is a different thing. Please, describe your desired scenario one more time.

This command is for a GNOME session. You are using a MATE session. There is a similar command for MATE:

mate-session-save --logout
1 Like

I tried the Mate logout. I believe that logging out will ALWAYS result in having to enter your password.

So, you want to avoid having to enter your password at the login window, right?

Yes sir I want to avoid having to enter my password.

We talked about this in the other thread and @Ironfoot reinforced it. Autologin will totally skip the login page shown in Ironfoot's last post and take you to your desktop. But remember, there are TWO different passwords, your username login and then there is an authentication/sudo password. When I use Autologin, it takes me directly to my desktop but still asks me for my sudo password. The autologin only logs in your username password, the sudo password should continue to be required in order to make changes et al.

Are you saying you don't want to have to use any passwords?

What are you talking about? By default, the sudo mechanism asks for your user password. The same password is used to login your user.

I will admit I did not use the correct terminology and I did not understand completely the login process.

Currently, when I log on, I have my username skipped and it takes me to my desktop where it asks again for again for authentication. This is looking for my keyring as it no longer matches my login password so I have to enter a different password.

Regardless, this was all covered in a different thread where it was explained that the autologin just skips to the desktop. If he has changed his password, it is possible he is getting the same thing I do which is asking for an authentication for the keyring so it looks like you are entering two different passwords.

For the record, some of us are pretty new to linux and I was just trying to help out and I have zero problems admitting when I am wrong as I am still learning. You could have simply corrected me instead of being obnoxious about it.

1 Like

You have to configure passwordless login then. This is done by adding your user to the nopasswdlogin group. I assume your username is andy.

sudo gpasswd --add andy nopasswdlogin

Relogin, and the password field will be replaced with the "Log In" button as shown in my previous screenshot. Be careful, as passwordless login allows anyone with physical access to your computer to log into your account.

4 Likes

You are doing fine. I still want to be prompted for admin things like gparted etc.

On a previous UM, it was configured to go straight to the desktop.

That feature may have been removed from UM 24.04.

Have you used Mate System Monitor ?

I had a Thunar(file manager) that lets you make custom actions on whatever file is highlighted.

I had a custom action meant to only open text files using Geany.

I accidentally click on a 3.9 Gb .iso file. :slight_smile:

Using Mate System Monitor, I saw that my action caused the resources to get to around 80% when I did a reboot.

I wonder if Geany could be written so it checks first if it is a text file?

Take care.

1 Like

Not sure what's going on ...

I logged on to my um24, commented out the line

#autologin-user=user rebooted, I get a login prompt

un-commented the line, rebooted, logs me on auto.

3 Likes

Great job ironfoot. The screen shows up but I just have to click on the Login box.

Thanks to everyone who contributed.

4 Likes

You are supposed to have both autologin and passwordless login enabled now.

This shall work the same way, because your LightDM is configured for autologin [Auto-login to the Desktop - #28 by fixit7].

This was fixed by configuring your passwordless login.

4 Likes

When you are using autologin for LightDM, your default login keyring is not automatically unlocked, because you provide no password. If you need to unlock it, you have to provide your keyring password. But this keyring is empty by default and therefore may remain locked. It will be useful for you to understand, what is inside your keyring.

1 Like

Well I will do a search for keyring and read up on it.