Sample Header Ad - 728x90

Firejail --private can't launch .sh file in home directory

2 votes
1 answer
938 views
I can create a bash script, then launch it using firejail with the private option : phil@GLaDOS:~$ echo "echo success" > /media/phil/Stockage/firejailtest.sh; chmod +x /media/phil/Stockage/firejailtest.sh phil@GLaDOS:~$ firejail --noprofile --private /media/phil/Stockage/firejailtest.sh Parent pid 117110, child pid 117111 Child process initialized in 8.67 ms success Parent is shutting down, bye... Which works fine. However, if my script is in my home directory, or any folder in the home directory, the above will fail : phil@GLaDOS:~$ echo "echo success" > /home/phil/firejailtest.sh; chmod +x /home/phil/firejailtest.sh phil@GLaDOS:~$ firejail --noprofile --private /home/phil/firejailtest.sh Parent pid 117357, child pid 117358 Child process initialized in 8.73 ms /bin/bash: ligne 1: /home/phil/firejailtest.sh: No such file or directory Parent is shutting down, bye... How do I launch a script or program within my home directory, with firejail, using "private" to ensure no modification is made to any of my files?
Asked by sayanel (370 rep)
Sep 22, 2022, 12:32 PM
Last activity: Sep 23, 2022, 07:11 PM