Ubuntu

How can I limit usernames on gdm greeter

Asked by David A. Cobb on 2012-01-13

Running Natty, mostly up-to-date but holding off on full-upgrade.

Until the most-recent batch of upgrades, 2012-01-03, I have always listed only those usernames on the greeter that represent real humans. Since the upgrades, every username with a UID greater than 1000 is listed -- and many are "users" that no-one but the administrator (me) needs to see.

Obviously, at one time I knew where to find the configuration for this; now I cannot locate anything (in /etc/...) that even looks plausible. I know I'm losing it, but I didn't realize it had gotten this bad!

Someone, please point me at the gdm-greeter configuration file where specific UID's can be either included or excluded.

TIA

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gdm Edit question
Assignee:
No assignee Edit question
Solved by:
Nathan Heafner
Solved:
2012-01-13
Last query:
2012-01-13
Last reply:
2012-01-13
Nathan Heafner (nathan1465-5) said : #1

http://ask.fedoraproject.org/question/591/how-to-list-users-with-uid-lower-than-1000-in-gdm

can you try in terminal
vim.tiny /etc/login.defs

and check the line "UID_MIN "

if you are not familure with editing text files with vim then you can use

gksudo gedit /etc/login.defs

David A. Cobb (superbiskit) said : #3

Well, I don't personally care for vim -- I use emacs. And I'm quite familiar with editing text -- or most any other type of file.

No, LOGIN.DEFS doesn't solve my problem. Formerly, I was able to itemize user-id's; the id's I need to use are not neatly all above a particular value. I have set up UID's for psuedo-users that are in the same range ( 10000 <= local < 11000, 20000 <= netusers < 21000 ). And it doesn't matter WHY? I set it up that way -- the question is "Do I configure my system, or do you?"

The /etc/gdm/gdm.schema answer looks like the right thing, except that file does not exist. /etc/gdm/ contains the various scripts used to launch a session. As I write this, I'm trying to locate schema files. Somewhere under $HOME, I expect. I'm so heavily loaded right now that my batch queue isn't running, and file searches seem to take so dam' long that I don't try running them on my desktop any more.

MORE ON THIS LATER.

David A. Cobb (superbiskit) said : #4

I read further down in the askubuntu.com document.
The answer that works is:
IN /etc/custom.conf ADD
[greeter]
Exclude=user1,user2,user3,nobody

Sadly, Include= doesn't seem to work, with or without IncludeALL=false.

Anyway, I'm good now. Thanks to all.

David A. Cobb (superbiskit) said : #5

Thanks Nathan Heafner, that solved my question.