Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to hide a particular administrator account from user accounts in system settings? I need it for security reasons. Is it possible?

share|improve this question
Possible Duplicates?…, and… – Mitch Jul 16 '14 at 7:57
@Mitch No, the OP states that he wants to hide the account in the user accounts list in the system settings. The questions you link to are about hiding it in the GDM / LightDM login window. – zwets Jul 16 '14 at 10:23

The accounts shown in the user accounts dialog are those with a UID in the range UID_MIN to UID_MAX. System accounts are those with uids in the range SYS_UID_MIN to SYS_UID_MAX. These constants are defined in /etc/login.defs.

If you don't want an account to show up in the dialog, create it as a system account:

adduser --system [...] username

If the user account already exists, you could reassign its uid to one in the system range:

usermod --uid 999 username

Note however, that hiding an account from the user accounts dialogue buys you no security whatsoever. The exact same information can be obtained using a simple cat /etc/passwd. Obscurity is not security.

share|improve this answer

Your Answer


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.