[GH-ISSUE #719] Restricted shell status #489

Closed
opened 2026-05-05 05:57:26 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @netblue30 on GitHub (Aug 16, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/719

Functionality:

  1. sftp and scp - are started outside the sandbox
  2. simple login: ssh test@0 - the session is started with "-l" flag
  3. simple command: ssh test@0 date - the session is started with "-c" flag
  4. multiple commands: ssh test@0 "date && date" - the session is started with "-c" flag
  5. 1, 2, 3, 4 with or without an entry in /etc/firejail/login.users
  6. 1, 2, 3, 4 with various --shell entries in /etc/firejail/login.users

1, 2, 3, 5 are working fine. I didn't test anything for 6 yet. Currently 4 is broken. It is broken even for regular firejail sessions, example:

$ firejail -c "date && date"
Reading profile /etc/firejail/default.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-passwdmgr.inc

** Note: you can use --noprofile to disable default.profile **

Parent pid 4641, child pid 4642
Child process initialized
/bin/bash: date && date: command not found

Parent is shutting down, bye...
Originally created by @netblue30 on GitHub (Aug 16, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/719 Functionality: 1. sftp and scp - are started outside the sandbox 2. simple login: ssh test@0 - the session is started with "-l" flag 3. simple command: ssh test@0 date - the session is started with "-c" flag 4. multiple commands: ssh test@0 "date && date" - the session is started with "-c" flag 5. 1, 2, 3, 4 with or without an entry in /etc/firejail/login.users 6. 1, 2, 3, 4 with various --shell entries in /etc/firejail/login.users 1, 2, 3, 5 are working fine. I didn't test anything for 6 yet. Currently 4 is broken. It is broken even for regular firejail sessions, example: ``` $ firejail -c "date && date" Reading profile /etc/firejail/default.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-passwdmgr.inc ** Note: you can use --noprofile to disable default.profile ** Parent pid 4641, child pid 4642 Child process initialized /bin/bash: date && date: command not found Parent is shutting down, bye... ```
gitea-mirror 2026-05-05 05:57:26 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@FOSSONLY commented on GitHub (Jul 1, 2019):

Hello, what's the current status of that functionality? Is firejail nowdays save to use as restricted shell?

<!-- gh-comment-id:507338852 --> @FOSSONLY commented on GitHub (Jul 1, 2019): Hello, what's the current status of that functionality? Is firejail nowdays save to use as restricted shell?
Author
Owner

@netblue30 commented on GitHub (Jul 2, 2019):

yes, it should be fine.

<!-- gh-comment-id:507471158 --> @netblue30 commented on GitHub (Jul 2, 2019): yes, it should be fine.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#489
No description provided.