[GH-ISSUE #1122] $HOME not set properly with --user option #771

Closed
opened 2026-05-05 06:37:33 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @xrisk on GitHub (Mar 3, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1122

It appears that whenever I use --user option $HOME is always set to /root. Is this the correct behaviour? Even if I specify the home directory to be used with --private= it is not respected.

Originally created by @xrisk on GitHub (Mar 3, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1122 It appears that whenever I use `--user` option `$HOME` is always set to /root. Is this the correct behaviour? Even if I specify the home directory to be used with `--private=` it is not respected.
gitea-mirror 2026-05-05 06:37:33 -06:00
Author
Owner

@netblue30 commented on GitHub (Mar 3, 2017):

You are running a very old version, --user option was removed. Do a software update, there have been all kind of fixes since.

<!-- gh-comment-id:284055264 --> @netblue30 commented on GitHub (Mar 3, 2017): You are running a very old version, --user option was removed. Do a software update, there have been all kind of fixes since.
Author
Owner

@xrisk commented on GitHub (Mar 3, 2017):

Oh… I just got it from Ubuntu 16.04 default sources.

<!-- gh-comment-id:284055415 --> @xrisk commented on GitHub (Mar 3, 2017): Oh… I just got it from Ubuntu 16.04 default sources.
Author
Owner

@netblue30 commented on GitHub (Mar 3, 2017):

It's very old. Most of the software in Ubuntu is kept at the version it was when 16.04 was released, and is not getting any updates. Grab a .deb package from here: https://sourceforge.net/projects/firejail/files/firejail/

In a terminal run:

$ sudo dpkg -i firejail_0.9.44.8_1_amd64.deb
<!-- gh-comment-id:284057129 --> @netblue30 commented on GitHub (Mar 3, 2017): It's very old. Most of the software in Ubuntu is kept at the version it was when 16.04 was released, and is not getting any updates. Grab a .deb package from here: https://sourceforge.net/projects/firejail/files/firejail/ In a terminal run: ````` $ sudo dpkg -i firejail_0.9.44.8_1_amd64.deb `````
Author
Owner

@xrisk commented on GitHub (Mar 3, 2017):

Hmm. what was the reason for removing --user option. Is there something to replace it (I can't find it in manual) or do you recommend me to manually change user before calling firejail?

<!-- gh-comment-id:284070688 --> @xrisk commented on GitHub (Mar 3, 2017): Hmm. what was the reason for removing `--user` option. Is there something to replace it (I can't find it in manual) or do you recommend me to manually change user before calling firejail?
Author
Owner

@netblue30 commented on GitHub (Mar 4, 2017):

You can use sudo -u to switch to the proper user:

$ sudo -u username firejail appname

It was like reimplementing sudo in firejail, so I had to take it out.

<!-- gh-comment-id:284158649 --> @netblue30 commented on GitHub (Mar 4, 2017): You can use sudo -u to switch to the proper user: ````` $ sudo -u username firejail appname ````` It was like reimplementing sudo in firejail, so I had to take it out.
Author
Owner

@xrisk commented on GitHub (Mar 4, 2017):

Thank you for your help.

<!-- gh-comment-id:284158704 --> @xrisk commented on GitHub (Mar 4, 2017): Thank you for your help.
Author
Owner

@netblue30 commented on GitHub (Mar 5, 2017):

You're welcome.

<!-- gh-comment-id:284228556 --> @netblue30 commented on GitHub (Mar 5, 2017): You're welcome.
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#771
No description provided.