DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 8th March 2016
jjstorm jjstorm is offline
Package Pilot
 
Join Date: Nov 2014
Location: Buenos Aires, AR
Posts: 144
Default hide ALL users from gnome login screen

I prefer gnome not display user names. How do I configure gnome so I have to manually enter user name and pw?
Reply With Quote
  #2   (View Single Post)  
Old 8th March 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,865
Default

http://askubuntu.com/questions/2471/...m-login-screen
Reply With Quote
  #3   (View Single Post)  
Old 10th March 2016
jjstorm jjstorm is offline
Package Pilot
 
Join Date: Nov 2014
Location: Buenos Aires, AR
Posts: 144
Default

Quote:
Originally Posted by jggimi View Post

From the above link, I tried the greeter string ((Exclude=user1,user2)(under the empty [greeter] section )) in /etc/gdm/custom.conf and it did not work for me.

note: I tried adding "nobody" after the users, as mentioned in the above instructions, and it still did not work.

further down the post, it's mentioned by several users, that it no longer works in gnome 3.x, although some say that it should work.

however in the gnome configuration page the instructions are the same as above (modifying the /etc/gdm/custom.conf file) with the following added.
Quote:
Note that the setting in the custom.conf overrides the default value, so if you wish to add additional users to the list, then you need to set the value to the default value with additional users appended to the list.
What is the default value? Is this the list of all users with UIDs below 1000, and are they suggesting that I must manually enter it into /etc/gdm/custom.conf as well as the additional users?

The above may be workable if I knew how to enter that list, plus the additional user names I want to keep out of the login screen.

Another solution was to create a file called the 'actual user name' and stick in /var/lib/AccountsService/users and add the following to it.

Code:
[User]  
Language=   
XSession=gnome  
SystemAccount=true
I did not know how to make this work since that directory does not exist in OpenBSD.

I posted this question in ubuntuforums since they have a lot of gnome users, and I was basically referred to similar posts. I joined several gnome irc relay chats to no avail.

Here is what worked:

I logged in as root. I then changed the uid of the user I wanted to hide from the login in screen to 999 using
Code:
 usermod -u 999 user
I rebooted the system, and as expected, that user was no longer on the login screen. I logged in as that user by manually entering user name and pw, (you must login once with each user you set uid to below 1000) and of course gnome acknowledged the user name and password, however, since the user has a uid below 1000, gnome did not log user in. Instead, gnome will return you back to the login screen.

Then I logged in as root again, returned the uid of that user to the original (1000 or above) and rebooted. That user no longer shows up on the login screen, and it has an uid of 1000 or higher. I have done this with 2 users and confirmed their uid are 1000 or above with userinfo.

There must be a default static file gnome uses to keep track of uids below 1000. It seems, once uids go below 1000, they can't be set above 1000, probably, for security reasons, and why the above solution works. How can I find this file, so I can edit it directly?

Last edited by jjstorm; 10th March 2016 at 11:49 PM.
Reply With Quote
  #4   (View Single Post)  
Old 10th March 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,865
Default

I'm not a Gnome user, having only tested features of it. If I were a Gnome user, I'd have provided a better link, or direct instructions.
Quote:
Originally Posted by jjstorm View Post
...So there must be a default static file somewhere gnome uses to keep track of uids below 1000. How can I find this file?
That I can help you with. The find(1) program is a useful utility that comes with OpenBSD (and most Unix-like systems).

The find command has many options and arguments, and can be used to execute arbitrary utilities on all found files. To find a string in a file somewhere in a directory structure, one might use something similar to:

$ find /path/to/stuff -type f -exec grep -Il string {} +

This executes the grep(1) command on every found file, with the upper case I ("eye") and the lower case l ("ell") as options. The first ignores binary files, the second just lists the file name of any file containing string. The "-type" option limits what is searched to regular files, the braces delimit where found filenames are placed in the grep command string, and the plus sign terminates the executed string.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome Installation Login Error Peter_APIIT OpenBSD Packages and Ports 7 2nd September 2015 08:41 AM
Gnome 3.8 + OpenBSD 5.4 - error on login (GDM) harishankar OpenBSD Packages and Ports 10 7th December 2013 05:42 PM
Why does the screen shift right ? sw2wolf OpenBSD General 1 30th March 2012 03:56 AM
screen casting via v4l ddekok Other BSD and UNIX/UNIX-like 2 17th July 2008 03:27 PM
How to take a screen in xfce? aleunix OpenBSD Packages and Ports 23 4th June 2008 02:54 PM


All times are GMT. The time now is 01:19 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick