Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I need to run the web browser with another user but I don't want the user to be shown at the login screen. How can I create a user that will not be listed on the login screen? GNOME/Scientific Linux 6.3.

share|improve this question
    
Read about gdm setup. Or simply uninstall gdm and use xdm. –  Eddy_Em Feb 12 '13 at 7:34
    
See superuser.com/q/77617/87552 –  N.N. Feb 12 '13 at 7:50
3  
@Eddy_Em it's probably the worst solution - unistalling anything. –  Mateusz Jagiełło Feb 12 '13 at 8:45
    
On Fedora 20 with Gnome 3 for me greeter solution didn't work. What worked is giving UID lower than 50 to the needed users. I actually tried UID 23 and 24. –  Ilia Rostovtsev Dec 25 '13 at 8:58
add comment

3 Answers

up vote 3 down vote accepted

Edit /etc/gdm/custom.conf and add or change the Exclude directive in the [greeter] section:

[greeter]
Exclude=nobody,alice,bob

Users alice and bob won't be shown on the list at the login screen but can still log in by typing their name and password (if they have a password).

See more details in How to hide users from the GDM login screen? (it's mostly distribution-independent — some details might change, for example files may located in different places, and the threshold for system users is 500 on most Red Hat derivatives but 1000 on most Debian derivatives).

share|improve this answer
add comment

Create system user account - with UID less than 1000. Accounts with UID less than 1000 are hidden in gdm and probably others display managers.

You can create system account by running useradd with -r flag.

share|improve this answer
1  
-r -> Create a system account with a UID less than 500 and without a home directory. –  gasko peter Feb 12 '13 at 10:57
    
I need to run the webbrowser with another user but I don't want the user to be shown at the login screen. –  gasko peter Feb 12 '13 at 10:57
add comment
 gconftool-2 -t bool -s /apps/gdm/simple-greeter/disable_user_list 1

maybe this will be the solution, but I need to test it. Thanks!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.