Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gdm3 Exclude some users
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
costel78
Guru
Guru


Joined: 20 Apr 2007
Posts: 402

PostPosted: Mon May 23, 2011 5:49 pm    Post subject: gdm3 Exclude some users Reply with quote

Hello,

I'm using gnome 3.0 from gnome overlay and I want to exclude some users from gdm login list.
Let's name user1 and user2 unwanted users, from now on.
What I already did:
1. I tried via recomanded way. In /etc/gdm/custom.conf:
Code:
[greeter]
Exclude=user1, user2

2. I tried to eliminate them directly from /usr/share/gdm/gdm.schemas
Code:
    <schema>
      <key>greeter/Exclude</key>
      <signature>s</signature>
      <default>bin,root,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,nobody4,noaccess,postgres,pvm,rpm,nfsnobody,pcap,user1,user2</default>
    </schema>

3.
Code:
usermod -s /sbin/nologin user1
usermod -s /sbin/nologin user2


But... the users are still in the list.
I have no idea what else to try to acomplish my goal. Any hints, please ?
_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
monsm
Guru
Guru


Joined: 26 Sep 2007
Posts: 467
Location: London, UK

PostPosted: Sun Jun 12, 2011 5:57 pm    Post subject: Reply with quote

Hi,

Sorry, I can't help with this. I was interested if you got anywhere solving it. I have a similar issue and actually being able to make changes to the gdm3 config at all. E.g. I wanted to change the background (in addition to excluding some users)

Mons
Back to top
View user's profile Send private message
costel78
Guru
Guru


Joined: 20 Apr 2007
Posts: 402

PostPosted: Sun Jun 12, 2011 6:39 pm    Post subject: Reply with quote

I can't remove any users from gdm list. I patiently decided to wait for gnome 3.2.
_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
monsm
Guru
Guru


Joined: 26 Sep 2007
Posts: 467
Location: London, UK

PostPosted: Tue Jun 14, 2011 6:39 pm    Post subject: Reply with quote

I will stick with gdm3. A bit strange it takes so long getting an updated gsm. Most other gnome components get updated all the time. Haven't actually had any problems with this one, just want to be able to configure the damn thing...

Mons
Back to top
View user's profile Send private message
monsm
Guru
Guru


Joined: 26 Sep 2007
Posts: 467
Location: London, UK

PostPosted: Wed Jul 13, 2011 7:15 pm    Post subject: Reply with quote

Hi, still there Costel?

I have solved both problems finally. The answer is on the arch forum in this post.

Changing the background using gsettings, as in the first part of that post, didn't work for me (gdm-3.0.4). The second version worked (copying these things into the /etc/gdm/autostart/LoginWindow). I could then change the background and many other settings.

The part of hiding some users, I solved a different route. I remember seeing somewhere that users with a UID number below 500 will not be shown login list. So I changed the user I wanted to hide to 499, and finally it disappeared from the login. I found this on how to do that: http://it.toolbox.com/blogs/locutus/how-to-change-a-users-uid-and-gid-26368 Also remember to change the owner of that users files (e.g. using chown). I had to run groupmod before usermod (usermod throws an error if the group doesn't exist.

Mons
Back to top
View user's profile Send private message
Nitro_146
Apprentice
Apprentice


Joined: 02 Mar 2005
Posts: 221
Location: Digne les bains, France

PostPosted: Tue Jul 09, 2013 9:03 pm    Post subject: Reply with quote

Hi,

I was facing the same problem, and was not able to remove only some users. Nevertheless I found out here a solution to remove the user list.
I copy it in case someone would be interested :

Quote:
As root, create and edit a file e.g. "/etc/dconf/db/gdm.d/01-local-settings". Minimally, it should contain:

###
# local system-wide customizations

[org/gnome/login-screen]
disable-user-list=true
###

and then run "dconf update".


Hope this help
_________________
Linux, cause booting is for adding new hardware
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum