Enabling login password after restart/shutdown on 22.04

In 24.04 it's as simple as System>Administration>Mate User Manager and toggling automatic logon.

Can't figure out how to do this in 22.04.Added gnome-system-tools but even after enabling Asked on login it doesn't ask it just automatically logs in.

My UM 22.04 has autologin setting in System > Administration > Login Window dialogue.

@ugnvs mine does not display that option and at some point it must have as I was able to disable auto logon.

Hmmm... Here is what I do see

Disclaimer: my system was upgraded from 18.04 to 20.04 to 22.04 in place; that menu item can be a dysfunctional remnant.

2 Likes

That is because the login screen of @ugnvs uses the "slick-greeter" instead of the "arctica greeter" that replaced it (since 22.04 LTS I believe).
Arctica-greeter does not have a graphical interface for adjusting settings ... yet

If you want to switch to "slick greeter" (like I did on all my computers), open a terminal, copy/paste the code below (and press enter):

sudo apt purge arctica-greeter && sudo apt install slick-greeter

Or, alternatively, use a good GUI app (preferrably synaptic) to remove arctica-greeter and install slick-greeter.

There is no drawback using slick-greeter, it might even prevent some boot issues on some hardware.

2 Likes

@tkn Won't have access to my 22.04 computer until Tuesday but I will give that a try and post back here.

2 Likes

From my experience gnome-system-tools works great for setting new users, but I have never changed anything sucessfully with it after that other than asking FOR THE PASSWORD. It seems slick greeter and control center> login window is the best way to change the login. Here is mine from 24.04 LTS:

You will probably have to remove the Arctica greeter and replace it with slick greeter. I know there was a post here on how to do that, as I used it to change to slick greeter.

2 Likes

I found the commnands to switch to slick greeter:
sudo apt purge arctica-greeter
sudo apt install slick-greeter

You now have a graphical app to customize your login window

Open "Control-Center"
Click on "Login Window"
select 2nd tab 'User' 
select  'allow manual login'
you can also disable guest login
close window and reboot

Under the first tab 'appearance' you can also set a new wallpaper for the login page

2 Likes

So removing arctica-greeter and installing slick-greeter did indeed give me the Login Window option.After changing my login option a restart was required and I was still logged in automatically and greeted with a brand new blue desktop.

At the top left was Activities and I clicked on that and was presented with two blue squares and a dock at the bottom with 4 options,three installed programs and a square with when hovered over showed Show Applications.At this point I could navigate to a terminal and purge slick-greeter and re-install arctica-greeter.I then did a restart and am still greeted with this new desktop.

Next move is how to get back my beautiful old Mate desktop.

Ubuntu-MATE can not do that because it doesn't have such a wallpaperbackground

Ubuntu-MATE does not have activities, that is a GNOME thing.

It seems that you are running either the standard Ubuntu or a cloudservice that implemented their own stuff. You are at least not running a regular Ubuntu-MATE install.

Would you be so kind to share some info about that ?

2 Likes

@tkn

This was a fresh install of Mate 22.04.I've never used standard Ubuntu and I definitely don't use any type of cloud services ever.

The only changes I've made to this particular installation was installing gnome-system-tools and slick-greeter and this new desktop only showed after installing slick-greeter.

In terminal it shows mate-desktop as the latest version.Also when checking ubuntu-desktop is shown as not being installed.

And ofcourse the change to autologin, which is done in the LightDM config files.

Best to place a screenshot of that desktop with the menu open and where the word activities is visible. It could explain a lot.

What happened, based solely on what you wrote, is impossible.
There must be a third factor in play here, I just don't know what yet.

1 Like

It's possible because it happened.

The only programs installed are those that came with Mate other than what I deleted or added and that shows with this "desktop".On the the dock on the bottom are two of those programs,a "show applications" square and a help icon (life buoy) that is the Ubuntu Desktop help guide.If I click on activities in the top left it toggles between a complete blue screen with panel at top or two blues squares(work spaces) with the dock on bottom,if I click on the 9 dot show activities square in the dock I can access all my Mate programs.

One thing I can't do is access a way to take a screenshot,the option to do so just isn't available.

There was a kernal upgrade recently and I've not done a restart until I switched greeters.Can't see how a kernal upgrade could do this but it's all I can think of.

Guest Session login at the splash screen brought me back to MY Mate desktop and shows me logged in as Norm (which is me) and now everything is back to the way it started.
Also if I now logout the only option for login on the splash screen is as Guest but I'm logged in as Norm.Also if I try to login as Guest by switching users under Session Management it requires a password that doesn't exist.

Could you try this command in the terminal and post the result ?

apt search gnome-shell |grep nstal

Because there is something installed that shouldn't be there.

2 Likes

Output:

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
chrome-gnome-shell/jammy,jammy,now 10.1-5 all [installed,automatic]
gnome-shell/jammy-updates,jammy-security,now 42.9-0ubuntu2.2 amd64 [installed,automatic]
gnome-shell-common/jammy-updates,jammy-updates,jammy-security,jammy-security,now 42.9-0ubuntu2.2 all [installed,automatic]
gnome-shell-extension-prefs/jammy-updates,jammy-security,now 42.9-0ubuntu2.2 amd64 [installed]
libgdm1/jammy-updates,now 42.0-1ubuntu7.22.04.4 amd64 [installed,automatic]
libmutter-10-0/jammy-updates,now 42.9-0ubuntu9 amd64 [installed,automatic]
yaru-theme-gnome-shell/jammy-updates,jammy-updates,now 22.04.5 all [installed,automatic]

It would appear that somehow gnome-shell-extensions was installed and removing it and it's dependencies fixed the issue(s).Thanks @tkn for your patience and pointing me where I needed to go to get me back to where I started!

My original issue still remains though,I can't set a preference to manually logon after a restart/shutdown.

So I started over and switched from arctica-greeter to slick-greeter and I once again have the Login Window option and allowing manual login makes no difference.My conclusion is that Mate User Manager and Login Window perform two different functions when it comes to setting preferences as to whether you want to logon with a password automatically or not and I can see why Mate-User-Manager was included in 24.04 as it makes changing Auto-Logon very easy wherein changing it in 22.04 difficult to the point that I haven't been able to change it back to Manual Logon since selecting Auto Logon at installation.

Hi, @Norm24!

It looks like you had the gnome-shell-extension-prefs package manually installed with dependencies.

$ apt-cache depends gnome-shell-extension-prefs
gnome-shell-extension-prefs
  Depends: gir1.2-adw-1
  Depends: gir1.2-gtk-4.0
  Depends: gjs
  Depends: gnome-shell
  Depends: gnome-shell-common
  Breaks: gnome-shell
  Recommends: chrome-gnome-shell
  Replaces: gnome-shell

You can check your apt logs in the /var/log/apt directory to understand what happened.

This is a configuration tool for the lightdm display manager.

This is an option to manually enter a username in the login window.

You may want to share your lightdm config to clarify the issue.

lightdm --show-config
3 Likes

Yes, that is correct: MATE user manager is the graphical version of adduser
That means that it is intended to create or change user credentials

LightDM is the graphical verstion of the loginprompt.

That was the task of gnome-system-tools, which was replaced by a non-working MATE Use manager. Quite a lot of people went back to install gnome-system-tools because of that reason. In 24.04 they fixed the MATE User manager.

Oh, by the way, what is the output of these commands ?:

grep -r autologin-user /etc/lightdm

grep -r autologin-user /usr/share/lightdm/lightdm.conf.d
3 Likes
/etc/lightdm/lightdm.conf:autologin-user=norm
/etc/lightdm/lightdm.conf:autologin-user-timeout=10

no output