[GH-ISSUE #4136] --shell=none does not work #2546

Closed
opened 2026-05-05 09:13:19 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @vporton on GitHub (Mar 24, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4136

Bug and expected behavior

firejail --noprofile --shell=none --private=. true

produces the files .Xauthority, .asoundrc, .bashrc, however it should not.

Environment

  • Ubuntu 20.10
  • firejail version 0.9.62.4

Checklist

  • I have performed a short search for similar issues (to avoid opening a duplicate).
  • If it is a AppImage, --profile=PROFILENAME is used to set the right profile.
  • Used LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAM to get english error-messages.
  • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
Originally created by @vporton on GitHub (Mar 24, 2021). Original GitHub issue: https://github.com/netblue30/firejail/issues/4136 **Bug and expected behavior** ```sh firejail --noprofile --shell=none --private=. true ``` produces the files `.Xauthority`, `.asoundrc`, `.bashrc`, however it should not. **Environment** - Ubuntu 20.10 - firejail version 0.9.62.4 **Checklist** - [x] I have performed a short search for similar issues (to avoid opening a duplicate). - [x] If it is a AppImage, `--profile=PROFILENAME` is used to set the right profile. - [x] Used `LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAM` to get english error-messages. - [x] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers.
Author
Owner

@CodeArtisan00 commented on GitHub (Mar 24, 2021):

--shell=none tells the program to run directly without user shell.

& you got these three- .Xauthority, .asoundrc, .bashrc beacuse you used private . you may check the source code. btw, .asoundrc is alsa related file & .Xauthority is xserver related file.

<!-- gh-comment-id:805665056 --> @CodeArtisan00 commented on GitHub (Mar 24, 2021): `--shell=none` tells the program to run directly without user shell. & you got these three- `.Xauthority, .asoundrc, .bashrc` beacuse you used `private` . you may check the [source code](https://github.com/netblue30/firejail/blob/master/src/firejail/fs_home.c). btw, `.asoundrc` is alsa related file & `.Xauthority` is xserver related file.
Author
Owner

@CodeArtisan00 commented on GitHub (Apr 9, 2021):

Closing this for now, feel free to reopen this if needed.

<!-- gh-comment-id:816585229 --> @CodeArtisan00 commented on GitHub (Apr 9, 2021): Closing this for now, feel free to reopen this if needed.
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#2546
No description provided.