8
submitted 19 hours ago by [email protected] to c/[email protected]

Small question: I am on Debian and use Gnome. I'm the only user on this laptop.

Is it possible to hide my username from the log in screen? So that only the password field shows?

The point is, my login name is my first name, and I don't like it ...

  1. ... when people in public transport can see my first name when I log in
  2. ...that if I lose my laptop, the people who find it can easily know my first name

I realize I could also simply pick a username that is not my first name, but it would save me a lot of reconfiguration if I could simply hide the name from the login screen.

top 4 comments
sorted by: hot top controversial new old
[-] [email protected] 5 points 14 hours ago

Configure automatic login and encrypt your drive. Shows only "enter passphrase" and is actually secure instead of just a cosmetic password prompt.

[-] [email protected] 1 points 14 hours ago* (last edited 14 hours ago)

how will it know which user to pass over to PAM log in? i think the best way would be to edit the gdm source code, hardcode your username into it, remove the output of names, and compile your own. it will be a lot of work though.

[-] [email protected] 1 points 18 hours ago* (last edited 18 hours ago)

I'm not on Debian, but a quick search led me to this wiki link from Arch. Give it a whirl:

https://wiki.archlinux.org/title/GDM#Hide_user_from_login_list

Edit: context of the Arch wiki link, in case better answers can be gleaned from it, I found it on AskUbuntu: https://askubuntu.com/questions/2471/how-to-hide-users-from-the-gdm-login-screen

[-] [email protected] 0 points 18 hours ago* (last edited 18 hours ago)

I dont know of an easy, clean and elegant way of doing what you ask. I wonder what happens if you edit /etc/passwd with the new name, I wouldn't dare to try. The way I'd proceed though is to start a bare repo with my dotfiles, so if anything happens, I'm back in business with minimal configuration changes.

This is a video about bare git repo: https://www.youtube.com/watch?v=tBoLDpTWVOM&t=0

Stolen from this other video: https://www.youtube.com/watch?v=ApkoY-PN0Nk&t=0

this post was submitted on 21 Sep 2024
8 points (100.0% liked)

Debian operating system

2654 readers
14 users here now

Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian provides more than a pure OS: it comes with over 59000 packages, precompiled software bundled up in a nice format for easy installation on your machine.

founded 4 years ago
MODERATORS