You are not logged in.

#1 2016-07-04 19:41:09

stewbond
Member
Registered: 2015-05-12
Posts: 32

[Solved] Adding a second user to GDM

I've added a new user with:

[stew@Romulus ~]$ sudo useradd -m -g users -G sys lp gdb -s /bin/bash ferg
[stew@Romulus ~]$ sudo passwd ferg
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully

However, when I log-out of my primary account and return to the GDM screen the only option is my primary account.   Are there any tricks to ensuring that my user appears in GDM?

Here is some debugging stuff if that helps:

[stew@Romulus ~]$ cut -d: -f1 /etc/passwd
root
bin
daemon
mail
ftp
http
uuidd
dbus
nobody
systemd-journal-gateway
systemd-timesync
systemd-network
systemd-bus-proxy
systemd-resolve
systemd-journal-remote
systemd-journal-upload
systemd-coredump
stew
nvidia-persistenced
avahi
polkitd
colord
rtkit
gdm
usbmux
deluge
plex
git
ferg
[stew@Romulus ~]$ id ferg
uid=1001(ferg) gid=100(users) groups=100(users),3(sys),7(lp),120(gdm)
[stew@Romulus ~]$ id stew  # This is my primary account that works well.
uid=1000(stew) gid=1000(stew) groups=1000(stew),3(sys),7(lp),100(users)

Edit:  Disabled auto-login and it didn't make a difference.
Edit:  Deleted and recreated the user with gnome's "Settings" application.  Still don't see the new user in GDM.

Last edited by stewbond (2016-07-11 16:47:24)

Offline

#2 2016-07-11 12:08:03

stewbond
Member
Registered: 2015-05-12
Posts: 32

Re: [Solved] Adding a second user to GDM

Not sure if it's impolite to bump posts, but my question is still outstanding.  I've been having trouble finding anyone with the same issue.

Offline

#3 2016-07-11 12:10:52

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 750

Re: [Solved] Adding a second user to GDM

Have you restarted GDM after adding a new user?

Offline

#4 2016-07-11 15:19:05

stewbond
Member
Registered: 2015-05-12
Posts: 32

Re: [Solved] Adding a second user to GDM

Yes, I've rebooted the full machine several times.

Offline

#5 2016-07-11 15:25:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [Solved] Adding a second user to GDM

It has been years since I have used any Display Manager, let alone gdm.  Working from memory, I think it hides users with UIDs less than 1000.  What is the UID for the new user?  You might check the configuration of gdm as to what ranges it hides.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2016-07-11 15:31:43

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: [Solved] Adding a second user to GDM

Since when do DM's display users in the sys group by default?

Offline

#7 2016-07-11 15:45:44

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [Solved] Adding a second user to GDM

Awebb wrote:

Since when do DM's display users in the sys group by default?

Are you and I saying the same thing?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2016-07-11 16:46:57

stewbond
Member
Registered: 2015-05-12
Posts: 32

Re: [Solved] Adding a second user to GDM

Oh wow,  I feel silly. 

I just disabled my auto-login for my primary user and rebooted.  Then gdm worked perfectly.

The UID of that user is 1001 so it seems okay now.

Thanks!

Offline

#9 2016-07-11 16:47:01

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: [Solved] Adding a second user to GDM

ewaller wrote:
Awebb wrote:

Since when do DM's display users in the sys group by default?

Are you and I saying the same thing?

Yes and no. Yes. Sort of.

I was referring to OP's user group:

useradd -m -g users -G sys lp gdb -s /bin/bash ferg

Both should normally not be shown by the average DM.

Offline

Board footer

Powered by FluxBB