Home

  • Contact
  • Forum
  • Free Ubuntu E-Books
  • Popular Posts
  • Search
  • Ubuntu Hosting
  • About
  • RSS Feed
  • Sitemap
  • Privacy Policy

Ubuntu Geek

Ubuntu Linux Tutorials,Howtos,Tips & News | Zesty Zapus,Artful Aardvark

How to Remove (Hide) Users list at login Screen in Ubuntu 9.10 (Karmic)

Posted on December 3, 2009 by ruchi 17 Comments

One of the new features in Ubuntu 9.10 is it show the currently available users list at login screen if you want to hide this just follow one of the following method

Method 1

Open the terminal and enter the following comamnd

sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type Boolean --set /apps/gdm/simple-greeter/disable_user_list True

Method 2

1. Logout of your current session and return to the GDM

2. Switch to the tty command line prompt using Ctrl-Alt-F1

3. Login using your normal login/password

4. at the command line prompt type: export DISPLAY=:0.0

5. then type: sudo -u gdm gconf-editor

6. Switch back to the gdm screen using ALT-F7

7. Then navigate to /apps/gdm/simple-greeter and tick disable user list

8. Restart gdm

sudo /etc/init.d/gdm restart

Sponsored Link

Related posts

  • Zik – Audio player based on gstreamer (3)
  • Zero Install Injector – Install software easily and without root privileges (17)
  • Zenmap – Cross platform Nmap Security Scanner GUI (0)
  • Zattoo – Watch Online TV for free (18)
  • Youker assistant – Integrated tool to aid in routine system maintenance tasks (1)
  • YouAmp – Yet another music player for Linux (10)
  • ÜberStudent – Ubuntu version for Students and Researchers (18)

17 thoughts on “How to Remove (Hide) Users list at login Screen in Ubuntu 9.10 (Karmic)”

  1. slumbergod on December 3, 2009 at 4:45 pm said:

    There’s info online to suggest some people have managed to downgrade gdm 2.28 to the much better Jaunty gdm 2.20. Unfortunately, it looks risky to try with Xubuntu even though the log-on is provided by gdm. For now, it looks like the first method you outline is the only solution for Xubuntu Karmic users.

  2. Ross on December 3, 2009 at 7:59 pm said:

    Thanks for this!

    Having one half of your login/password appear automatically seemed like a poor idea to me.

  3. Chad on December 3, 2009 at 11:04 pm said:

    I totally agree with you, Ross. I don’t understand why they choose to do this other than to look more like Windows. It might make people new to Linux feel more comfortable but it still seems like a bad idea.

  4. anonymous on December 4, 2009 at 3:05 am said:

    use ‘sudo service gdm start’ (or stop, or start, or status)

    the use of /etc/init.d/XXX is gettng phased out due to the use of Upstart.

  5. Tommy Butler on December 7, 2009 at 2:15 pm said:

    AWESOME!

  6. Rodemire on December 11, 2009 at 8:17 am said:

    Thanks guys, i really needed this. The login with your name already there is one of the reasons i hated Windows. I was very shocked after migrating to Karmic from Jaunty to see this screen. Thanks a lot.

  7. Spera on January 5, 2010 at 3:37 pm said:

    There’s another way to do this, to have a “hidden” user available on that box:

    1. sudo useradd -d /home/HIDDEN_USER -m HIDDEN_USER
    2. sudo passwd HIDDEN_USER
    3. sudo usermod -u 999 HIDDEN_USER

    Now for the details:

    0. HIDDEN_USER will be the login you’ll use – in other words, replace with what you want to use.
    1. Create your hidden_user and his/her home folder
    2. Set the password for that new user
    3. change the account’s settings below the “1000” level, therefore making it unlisted in the login box

    And why do I have that ? Well, my grandkid has a ‘Buntu box, and I sometimes need to work on it. She likes selecting her name on the login script, so I didn’t want to take that away from her – I also didn’t feel like showing her/anyone that I have an account on the machine. Makes sense ?

  8. Andrew on January 21, 2010 at 8:29 pm said:

    I’m trying to hide a single user from the login list. I allow a few friends to have shells remotely from this box and I would prefer if their logins didn’t show up. I’ve looked for such an instance but I can’t seem to find it. This method will work for me although if you know of how to do what I want it would work just a little better. Thanks.

  9. Spera on January 22, 2010 at 8:04 am said:

    Andrew,

    HAT is a piece of cake. I assume you know the names of those account/users you want to hide, for the sake of the exercise we’ll call them Bob, Joe and Bill.

    1. sudo usermod -u 999 Bob
    2. sudo usermod -u 999 Joe
    3. sudo usermod -u 999 Bill

    And there you have it, the logins have only been modified in a way that they will not APPEAR in the login list.

    For more details, feel free to run the MAN USERMOD command in a terminal. You’ll see the nitty gritty of the command, and the parameter -u

    To summarize, MAN will confirm that the accounts with UID between 0 and 999 are usually saved for system (and therefore hidden) accounts.

    It will also tell you that the UID should never have a NEGATIVE value.

    And MOST IMPORTANT, as a ‘Nix user you should remember to differentiate between upper case and lower case parameters. The -u param relates to the UID, whereas the -U param is used for unlocking an acccount. I thought I’d remind everyone of that essentil point, just in case ?

    Have a Fantastic Day !

    Spera

  10. Greg on March 4, 2010 at 3:55 pm said:

    Andrew’s solution works. But it also removes the user from the GUI System>Admin>Users and Groups, so you can no longer see that user there. (BTW, you can set the user number to 999 from that GUI interface as long as you’re not logged into that account.)

    Nevertheless it’s what I need to hide the only account with admin privileges, allowing the rest of my family to click in. I figure their ease is no big risk considering they don’t have any significant privileges.

    In Karmic, I can still click “other” and then enter my admin username and password.

  11. BenB on November 3, 2010 at 8:32 am said:

    Look. The answer to have the UID’s all as 999 is wrong.

    Unix does not care about ben, bob, jim, carol, joe, ..etc. You are just a number. In this case you are UID 999.

    For all intents and purposes as far as unix is concerned ben, bob, jim, carol, and Joe are the same person and that means that they will be able to access each others files, modify, delete, and read …etc. There is no end to what could go wrong and the security problems associated with this solution.

    I know what the person who is asking about the hidden user wants. He probably has a user that he uses for some administrative purpose that he doesn’t want people to see. There should be an easy way to do this without modifying the source code. GDM is missing a useful option. End of story. The developers have to address this issue.

  12. Spera on November 3, 2010 at 3:14 pm said:

    BenB, I see your point – and you’re right that I let something erroneous slip through my keyboard… Allow me to correct now:

    For the sake of the exercise we’ll keep calling them Bob, Joe and Bill.

    1. sudo usermod -u 999 Bob
    2. sudo usermod -u 998 Joe
    3. sudo usermod -u 997 Bill

    Now those three “Admin” accounts will be properly identified by their own, unique UID. And they won’t appear in the list of users at the login screen.

    Hope this corrects your opinion of me 🙂

    Oh – and I can see why this might need to be done in Terminal. After all, some of us do use it to unleash the full powah of ‘Nix – and the original request was to hide special accounts… So not such a big deal if it requires those simple four lines to create such an account ?

  13. vimrc on January 10, 2011 at 6:13 pm said:

    there’s another true way to hide users from the gdm list. Added that strings to /etc/gdm/custom.conf:

    [greeter]
    Exclude=user1, user2

  14. enko on January 10, 2011 at 10:43 pm said:

    How do I undo method 1?:
    Open the terminal and enter the following comamnd

    sudo gconftool-2 –direct –config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory –type Boolean –set /apps/gdm/simple-greeter/disable_user_list True

  15. enko on January 10, 2011 at 10:53 pm said:

    Nevermind, I figured it out.

  16. Samuel on May 18, 2011 at 5:09 pm said:

    HELP!!! How do I reverse the process??? i cant remember my user name!

  17. enko on May 19, 2011 at 5:07 am said:

    u could go to safe mode and type this in root termnal:
    gconftool-2 –direct –config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory –type Boolean –set /apps/gdm/simple-greeter/disable_user_list False

Leave a comment Cancel reply

Your email address will not be published. Required fields are marked *

« Ubun-student – Learn Ubuntu enhancement tricks
Lernid – A desktop application to participate in an online learning event »

Sponsored Link

    Cheap Web Hosting

Categories

  • Backup
  • Free Books
  • General
  • Monitoring
  • Networking
  • News
  • Package Mgmt
  • Security
  • Server

Sponsored Link

Archives

RSS Feed

subscribe to the ubuntu Geek RSS feed

UbuntuGeek on Twitter

    Follow Us on Twitter

Support UbuntuGeek

Favourite Sites

Debian Admin
DebianHelp
Tuxmachines
  • Contact
  • Forum
  • Free Ubuntu E-Books
  • Popular Posts
  • Search
  • Ubuntu Hosting
  • About
  • RSS Feed
  • Sitemap
  • Privacy Policy
Copyright © 2016 Ubuntugeek - Ubuntu Linux Howtos and Tutorials All Rights Reserved.