FIREJAIL-LOGIN(5)

πŸ’– NAME πŸ’–

login.users β€” the login file syntax for Firejail, bestie. it's giving "who gets what flags when they log in" ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: the file /etc/firejail/login.users is where you write down extra arguments that get passed to the firejail executable whenever a user logs into a Firejail restricted shell. like, custom treatment per person. iconic behavior honestly πŸ‘‘

every entry in this file is a user name followed by the arguments you want handed to firejail. the format is literally this:

user_name: arguments

example time, because examples ate πŸ’…:

netblue: --net=none --protocol=unix

and here's the slay part β€” wildcard patterns are accepted in the user name field, no cap:

user*: --private

so one line can cover a whole lil squad of usernames. obsessed 🌸


πŸ”’ RESTRICTED SHELL πŸ”’

to configure a restricted shell, you replace /bin/bash with /usr/bin/firejail in the /etc/passwd file, for each user that needs to be restricted. yes, editing /etc/passwd by hand. main character energy but make it careful 😭

alternatively (and lowkey more chill), you can specify /usr/bin/firejail using the adduser or usermod commands:

adduser --shell /usr/bin/firejail username
usermod --shell /usr/bin/firejail username

pick your fighter, both work 🫢


πŸŽ€ FILES πŸŽ€

  • /etc/firejail/login.users

that's the one. the whole file. go edit it πŸ’–


πŸ“œ LICENSE πŸ“œ

Firejail is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Homepage: https://firejail.wordpress.com


πŸ‘€ SEE ALSO πŸ‘€


and that's the whole vibe, bestie ✨ this was 0.9.80, from Mar 2026, and it lives under the name FIREJAIL-LOGIN(5) πŸŽ€ stay safe out there, sandbox your faves, mwah πŸ’œ

πŸ“¦ where this page comes from