diff options
author | 2018-08-27 10:32:25 -0400 | |
---|---|---|
committer | 2018-08-27 10:32:25 -0400 | |
commit | f133160e35f9edea8e8d075a74774aa470be01de (patch) | |
tree | 7af28d9ac24bcc4d1f776a3a1cfd8e4757f7572a /src/man/firejail-users.txt | |
parent | remove --cgroup (diff) | |
download | firejail-f133160e35f9edea8e8d075a74774aa470be01de.tar.gz firejail-f133160e35f9edea8e8d075a74774aa470be01de.tar.zst firejail-f133160e35f9edea8e8d075a74774aa470be01de.zip |
mainline merge
Diffstat (limited to 'src/man/firejail-users.txt')
-rw-r--r-- | src/man/firejail-users.txt | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/man/firejail-users.txt b/src/man/firejail-users.txt index c29de0705..88b4041b0 100644 --- a/src/man/firejail-users.txt +++ b/src/man/firejail-users.txt | |||
@@ -4,13 +4,13 @@ firejail.users \- Firejail user access database | |||
4 | 4 | ||
5 | .SH DESCRIPTION | 5 | .SH DESCRIPTION |
6 | /etc/firejail/firejail.users lists the users allowed to run firejail SUID executable. | 6 | /etc/firejail/firejail.users lists the users allowed to run firejail SUID executable. |
7 | If the file is not present in the system, all users are allowed to use the sandbox. | 7 | root user is allowed by default, user nobody is never allowed. |
8 | root user is allowed by default. Other system users (users with an ID below UID_MIN value | ||
9 | defined in /etc/login.defs, typically 1000) are not allowed to start the sandbox. | ||
10 | 8 | ||
11 | If the user is not allowed to start the sandbox, Firejail will attempt to run the | 9 | If the user is not allowed to start the sandbox, Firejail will attempt to run the |
12 | program without sandboxing it. | 10 | program without sandboxing it. |
13 | 11 | ||
12 | If the file is not present in the system, all users are allowed to use the sandbox. | ||
13 | |||
14 | Example: | 14 | Example: |
15 | 15 | ||
16 | $ cat /etc/firejail/firejail.users | 16 | $ cat /etc/firejail/firejail.users |
@@ -34,11 +34,23 @@ By default, running firecfg creates the file and adds the current user to the li | |||
34 | 34 | ||
35 | See \fBman 1 firecfg\fR for details. | 35 | See \fBman 1 firecfg\fR for details. |
36 | 36 | ||
37 | .SH ALTERNATIVE SOLUTION | ||
38 | An alternative way of restricting user access to firejail executable is to create a special firejail user group and | ||
39 | allow only users in this group to run the sandbox: | ||
40 | |||
41 | # addgroup firejail | ||
42 | .br | ||
43 | # chown root:firejail /usr/bin/firejail | ||
44 | .br | ||
45 | # chmod 4750 /usr/bin/firejail | ||
46 | |||
47 | |||
37 | .SH FILES | 48 | .SH FILES |
38 | /etc/firejail/firejail.users | 49 | /etc/firejail/firejail.users |
39 | 50 | ||
40 | .SH LICENSE | 51 | .SH LICENSE |
41 | 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. | 52 | Firejail is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License |
53 | as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. | ||
42 | .PP | 54 | .PP |
43 | Homepage: https://firejail.wordpress.com | 55 | Homepage: https://firejail.wordpress.com |
44 | .SH SEE ALSO | 56 | .SH SEE ALSO |