Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
Possible Duplicates? askubuntu.com/questions/92349/…, and askubuntu.com/questions/2471/… –  Mitch Jul 16 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 at 10:23

1 Answer 1

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

 
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.