User disappeared from the users list

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
Post Reply
Girafenaine
Level 1
Level 1
Posts: 43
Joined: Thu Aug 13, 2015 10:37 am

User disappeared from the users list

Post by Girafenaine » Tue Jul 03, 2018 3:28 pm

Hello,

I have just installed LM 19 xfce (on a Macbook 5.1, unibody late 2008, dualboot with MacOS 10.6.8 ).

I created my user on installation. In order to make easier communication between both OS and shared documents, I then changed uid for 501 (MacOS default), instead of 1000 (Linux default). As suggested on many forums, I changed /etc/passwd from another session to set uid and gid at 501. I changed /etc/group and /etc/login.defs to set uid_min and gid_min to 500 instead of 1000.

However, when I log out, on the "greet screen", there is not my user (there is only another user I created for a test, and the "guest session"). Do you know how my user could appear again on the "greet screen" ? (I have an auto login at the booting, so I can run my own session by switching off then switching on)

Bonus question : when I click on the "log out" button of the whisker menu, it logs out immediatly, without asking choice between reboot, change session, or turning off. The command is "xfce4-session-logout". The same command on another session with another user gives the normal choice. I cannot understand what I have to modify to make this command to work with my user.

Could you help me ?

Girafenaine
MacBook 2.1 (Dual core Intel Core2 CPU T7400)
Dual boot MacOS 10.6.8 (440 Go HFSplus partition) / Linux Mint 17.2 Cinnamon 32 bits (36 Go ext4 partition)

User avatar
karlchen
Level 19
Level 19
Posts: 9077
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: User disappeared from the users list

Post by karlchen » Tue Jul 03, 2018 6:52 pm

Hello, Girafenaine.

Have you also checked and corrected the file /etc/lightdm/users.conf, parameter minimum-uid=500?
Comment/explanation in the file itself: minimum-uid = Minimum UID required to be shown in greeter

HTH,
Karl
Image
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Girafenaine
Level 1
Level 1
Posts: 43
Joined: Thu Aug 13, 2015 10:37 am

Re: User disappeared from the users list

Post by Girafenaine » Wed Jul 04, 2018 6:12 am

Hello Karlchen,

Thanks for your reply. I will try this at night. It looks good... And I'll tell you whether it works.

Girafenaine
MacBook 2.1 (Dual core Intel Core2 CPU T7400)
Dual boot MacOS 10.6.8 (440 Go HFSplus partition) / Linux Mint 17.2 Cinnamon 32 bits (36 Go ext4 partition)

Girafenaine
Level 1
Level 1
Posts: 43
Joined: Thu Aug 13, 2015 10:37 am

Re: User disappeared from the users list

Post by Girafenaine » Wed Jul 04, 2018 3:30 pm

Hello,

Unfortunately it is already correctly set, with minimum-uid = 500. Yet my user does not appear.

Any other idea ?

Girafenaine
MacBook 2.1 (Dual core Intel Core2 CPU T7400)
Dual boot MacOS 10.6.8 (440 Go HFSplus partition) / Linux Mint 17.2 Cinnamon 32 bits (36 Go ext4 partition)

User avatar
karlchen
Level 19
Level 19
Posts: 9077
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: User disappeared from the users list

Post by karlchen » Thu Jul 05, 2018 1:48 am

Hello, Girafenaine.
The only hint which I found to yet another location where the minimal UID might be configured has been mentioned in the file /etc/lightdm/users.conf: something related to accountservice.
Yet, I have not figured out where it might define a minimal UID, yet.
Sorry. No new helpful idea at the moment. :(
Karl
Image
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Girafenaine
Level 1
Level 1
Posts: 43
Joined: Thu Aug 13, 2015 10:37 am

Re: User disappeared from the users list

Post by Girafenaine » Thu Jul 05, 2018 7:34 am

OK Karlchen, vielen Dank for your help.

There could be another reason than a "minimum uid" in a config file that would make an existing user not to appear on the greet screen ?

It could be something that would be linked to the strange behaviour of my "log out" button in the Whisker menu, deconnecting my user instead of giving me a choice.

Any helpful hand ?

Girafenaine
MacBook 2.1 (Dual core Intel Core2 CPU T7400)
Dual boot MacOS 10.6.8 (440 Go HFSplus partition) / Linux Mint 17.2 Cinnamon 32 bits (36 Go ext4 partition)

rene
Level 7
Level 7
Posts: 1899
Joined: Sun Mar 27, 2016 6:58 pm

Re: User disappeared from the users list

Post by rene » Fri Jul 06, 2018 2:56 pm

You want to change UID_MIN and GID_MIN in /etc/login.defs from 1000 to 500.

Just now verified on 18.3 Cinnamon. Do believe to have noticed you need to actually restart lightdm for the changes to take effect, not just logout. I.e., sudo systemctl restart lightdm (this logs you out!) or just reboot.

rene
Level 7
Level 7
Posts: 1899
Joined: Sun Mar 27, 2016 6:58 pm

Re: User disappeared from the users list

Post by rene » Sat Jul 07, 2018 6:18 am

Seeing as how there's no reply...

Re-read you had already tried this; note that I actually suspect that it's SYS_UID_MAX and SYS_GID_MAX that are the issue, it's just that those default to UID_MIN-1 and GID_MIN-1 respectively. Commented on that on an earlier edit of my above reply until I decided that it didn't matter, since adjusting the latter values yet not the former didn't make sense anyway. However, if you while experimenting perhaps uncommented SYS_{U,G}ID_MAX and set them explicily, best to re-comment them. Also note the "restart lightdm/reboot" bit of course, but this has been verified to in fact work.

Girafenaine
Level 1
Level 1
Posts: 43
Joined: Thu Aug 13, 2015 10:37 am

Re: User disappeared from the users list

Post by Girafenaine » Tue Jul 10, 2018 5:38 pm

Hello,

Thank very much for your answer and help.

In my /etc/login.defs, SYS_UID_MIN = 100 and SYS_UID_MAX = 999, but these lines are commented.
(same values fort GID)

I am stuck with my invisible user in greet screen, and I do not know where I have to look for.

Girafenaine
MacBook 2.1 (Dual core Intel Core2 CPU T7400)
Dual boot MacOS 10.6.8 (440 Go HFSplus partition) / Linux Mint 17.2 Cinnamon 32 bits (36 Go ext4 partition)

rene
Level 7
Level 7
Posts: 1899
Joined: Sun Mar 27, 2016 6:58 pm

Re: User disappeared from the users list

Post by rene » Tue Jul 10, 2018 6:09 pm

Just tried this on Mint 19 Cinnamon 64-bit as well. After changing only UID_MIN and GID_MIN in /etc/login.defs from 1000 to 500, a user "test" added as sudo adduser --uid 500 test appears on the login screen after rebooting.

Since there would appear to be no reason this would be different for you I'd try that same adduser command and see if "test" does show up. If so it would appear that your problem is elsewhere. I.e., reading your original post, did you change owner on your home directory? As in, as your "invisible" user, sudo chown -R $(whoami): ~? This being a problem would not match with autologin apparently working but frankly I can't think of anything else -- unless you did something wrong manually changing /etc/passwd and /etc/group: compare the results of the adduser command with your own edits.

Normally changing UID_MIN and GID_MIN is all you need, and Just Works here, on 18 and 19.

[EDIT] Note, slight edit: added ":" after the $(whoami) in the above chown command to also set group.

Post Reply

Return to “Other topics”