But when I try to execute it with sudo - it fails with error "command not found":
sudo $APPDIR/usr/bin/head -n1 /etc/os-release
[sudo] пароль для pavel:
sudo: /tmp/.mount_bash-4mDX6hg/usr/bin/head: команда не найдена
LC_ALL=C sudo $APPDIR/usr/bin/head -n1 /etc/os-release
[sudo] password for pavel:
sudo: /tmp/.mount_bash-4mDX6hg/usr/bin/head: command not found
$ LC_ALL=C $APPDIR/usr/bin/head -n1 /etc/sudoers
/tmp/.mount_bash-582FuSk/usr/bin/head: cannot open '/etc/sudoers' for reading: Permission denied
$ LC_ALL=C sudo $APPDIR/usr/bin/head -n1 /etc/sudoers
[sudo] password for pavel:
sudo: /tmp/.mount_bash-582FuSk/usr/bin/head: command not found
$ stat -c '%A %a %n' /etc/sudoers
-r--r----- 440 /etc/sudoers
Sample
AppImageBuilder.yml
:The AppImage is successfully built:
Execute any binary inside AppImage:
But when I try to execute it with
sudo
- it fails with error "command not found":