Results 1 to 7 of 7

Thread: Create a hidden user

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Location
    U.S.A.
    Beans
    505
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Create a hidden user

    Is there a way to create a user that will not show up in the GDM login screen? This user also needs to have sudo access.

    Thanks.

  2. #2
    Join Date
    Mar 2008
    Location
    England
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Create a hidden user

    Try giving the user a UID below 1000. This makes Ubuntu treat the user as a system user, which then won't show up on the login screen.

    Add the user in whatever way you prefer, and then run:

    Code:
    sudo usermod -u 599 newuser
    
    suder usermod -a -G admin newuser
    Where 599 is an unused UID below 1000, and newuser is your new user. The first command changes the UID and the second adds the user to the admin group, granting them sudo rights.
    My Website. Computing resources, photos, articles etc.

  3. #3
    Join Date
    Mar 2008
    Location
    U.S.A.
    Beans
    505
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: Create a hidden user

    So inputting

    Code:
    sudo usermod -u 999 ben
    Would work? Also, lets say I already have a user named ben, would that matter?

    and the second code puts the user in the sudoers file correct?

    I tried the first command with user name "tech" and got:

    Code:
    usermod: user 'tech' doesn't exist
    Last edited by pepsifx357; June 11th, 2010 at 01:04 AM.

  4. #4
    Join Date
    Mar 2008
    Location
    England
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Create a hidden user

    Neither of the commands create a user. You need to do that first. You can give the user a < 1000 UID at the time of creation too. Try consulting the manual for adduser.
    My Website. Computing resources, photos, articles etc.

  5. #5
    Join Date
    Jan 2009
    Beans
    118
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Create a hidden user

    im pretty sure u have to log in as root to do this
    ubuntuforums user #754471 ubuntu brainstorm #34919
    In A WorLd wItHOUt WalLs ANd FeNCes
    WHo NeEDs Windows AnD Gates

    <OrRupT d∀Ta

  6. #6
    Join Date
    Mar 2008
    Location
    England
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Create a hidden user

    Quote Originally Posted by xenosaga456 View Post
    im pretty sure u have to log in as root to do this
    sudo does the job on my servers.
    My Website. Computing resources, photos, articles etc.

  7. #7
    Join Date
    Jan 2011
    Location
    British Columbia
    Beans
    Hidden!
    Distro
    Ubuntu Gnome 16.04 Xenial Xerus

    Re: Create a hidden user

    Quote Originally Posted by KeyserSoze93 View Post
    Try giving the user a UID below 1000. This makes Ubuntu treat the user as a system user, which then won't show up on the login screen.

    Add the user in whatever way you prefer, and then run:

    Code:
    sudo usermod -u 599 newuser
    
    suder usermod -a -G admin newuser
    Where 599 is an unused UID below 1000, and newuser is your new user. The first command changes the UID and the second adds the user to the admin group, granting them sudo rights.
    Hey Keyser,

    Your tip worked well. Almost too well. When I go into users/groups my hidden account doesn't show up. So i can't mod or delete it (sorry not an uberTERMINAL user). Though i can see in the /home folder. I gave it a user# under 1000 and group# under 1000.

    How do i get it back in the user/group and maintain it as hidden on the loggin? Do i just give the account a user# greater than 1000? If so, how can I do that?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •