Questions tagged [executable]

The permission bit in a file mode that allows a file to be run as a program. Also, questions related the format of program files, and to locating and executing program files.

55 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
258 views

Linux kernel cannot execute any binary (error -12)

Problem: Memory Allocation Problem my platform: SOC = STM32H743 (ARMv7E-M | Cortex-M7) Board = Waveshare CoreH7XXI Linux Kernel = 5.8.10 (stable 2020-09-17) initial defconfig file = stm32_defconfig ...
3
votes
1answer
170 views

How to fail on executing zero byte file?

If I have zero byte file and it is executable, it will just do nothing. Can I fail on such files, i.e. return some error message and/or return non-zero exit code?
3
votes
1answer
2k views

Combining Bash Script and Script Resources into One Executable

When trying to execute a bash script, it is often execute inside some directory, and requires access to local resources. I was wondering if there was a way to combine both the bash script and the ...
2
votes
0answers
88 views

“No such file or directory” but the binary exist

I recently installed an dynamic binary translation program to run x86_64 binary on my ARMv8 server. After I uninstall the DBT tool, I found some weird error messages and it is very comfusing. A little ...
2
votes
2answers
68 views

monitor IO of a running user's executable file read/write

How to monitor IO of file read/write by a running user executable's, just like Windows Process monitor when being set to file-related monitoring only ?
2
votes
0answers
204 views

Script won't execute

I'm having this issue on Bash for Windows, but so far as I know it works by essentially making a Ubuntu VM. I have a program which I'm trying to run, as one does with programs. It's called minion. ...
2
votes
2answers
159 views

Is there a way to route all commands through a shell script instead of running directly?

I want to be able to have everything being executed, rather than running the program, runs a shell script with the executable as the argument. It'd be nice to be able to do this without having to ...
2
votes
3answers
158 views

How run Linux application from a mounted Windows disk?

I have dual-boot operating system, Ubuntu and Windows 7. The problem is I can't install some Linux application on my Linux because considering the disk space. I always regret to myself why I allocated ...
2
votes
0answers
53 views

Set list of applications allowed for execution by unprivileged user

I am working on a project of security enforced Linux-based system (kernel 2.6.32 + Gnome 2 + Centos package base mostly). We need to implement the restriction of execution of unallowed executables. ...
2
votes
1answer
1k views

Is it possible to read a file you only have executable permissions to on Linux through Bash?

I was wondering if it was possible to somehow get the contents of a file which you do not have read access to. I first attempted trying to get around the permissions using the inode number of the file,...
1
vote
0answers
51 views

can't uncheck “allow executing file as a program” from txt files

I can't remember how i have made all .txt files on my external hard-drive with NTFS executable in Ubuntu, so that whenever i double-click any .txt file on that disk or open the right-click menu, it ...
1
vote
0answers
20 views

How to produce ANOM_EXEC event in auditd journal?

I am using Ubuntu 16, and want to produce ANOM_EXEC event in auditd journal, like such i found in internet: type=ANOM_EXEC msg=audit(1222174623.498:608): user pid=12965 uid=1 auid=2 ses=1 msg='op=PAM:...
1
vote
1answer
507 views

Is it possible to have systemd open a program running in a clean terminal automatically after startup?

First off apologies for the simple question- there is more to it that I will explain below. I am new to Linux style systems and evidently I have A LOT to learn. With that said... My System I am ...
1
vote
0answers
45 views

.exe file with hardware key not running in Linux

I am running a simulation software in Windows with an .exe file and inputs and I also use a usb stick (hardware key) to run the simulation. I want to do the same in Linux. I downloaded wine and gave ...
1
vote
1answer
488 views

Make every file in a directory executable by default?

I have a directory in which I am storing all my shell scripts and I would like new files to be made executable by default so that I don't have to go chmod u+x [file] everytime. Is there a way to make ...
1
vote
0answers
1k views

No such file or directory error when trying to run an executable

I'm currently running Alpine Linux with XFCE. When I try to run an executable, in this case the "Tox" app .appimage file, like this ./qTox-v1.16.3.x86_64.AppImage It returns this error bash: ./qTox-...
1
vote
0answers
98 views

Is the a.out executable format still in use?

I'm sure that in light of the recent deprecation of the a.out format on Linux quite a few people have heard about the ancient executable format. I'm creating a loader for the format just in case ...
1
vote
1answer
554 views

Restrict applications from accessing certain resources

Mobile operating systems like Android or iOS define sets of permissions (e.g. read contacts/send sms/access camera, ...) a user needs to specifically grant to an application in order for the latter to ...
1
vote
0answers
31 views

Custom executable cannot run shortly after boot up.

Having a strange issue when running some custom executables on a Yocto distribution with the Xilinx kernel shortly after booting. Here's a rundown of my actions: Boot system SSH into system once ...
1
vote
1answer
268 views

noexec flag for /tmp (OpenSUSE)

I would harden my OpenSUSE 42.2. If I put noexec flag for /tmp and /var/tmp locations mount, zypper could suffer for this? Possible issues could depend by single package working and needing but above ...
1
vote
1answer
436 views

Rc.local not running commands properly

I am running arch Linux and have used this rc-local service: [Unit] Description=/etc/rc.local compatibility [Service] Type=oneshot ExecStart=/etc/rc.local RemainAfterExit=yes [Install] WantedBy=...
1
vote
1answer
267 views

Make a command to remove NetworkManager connections

I’m working in a manufacturing company (small one) and one of our clients required a test using a Linux (Ubuntu) computer, we are testing some wi-fi modules. the test is simple. beforehand: Powering ...
1
vote
0answers
68 views

binary is able to run only when run after creating a symbolic link to it

I am facing a rather strange problem. I have a 32 bit qmake binary placed at a very deep path. So for ease of use I created a link using ln -s /complicated/path/to/qmake ~/qmake I am running a 64 ...
1
vote
0answers
494 views

Can not execute Heroes of Neweth binary file

I'm trying to install Heroes of Newerth on openSUSE 13.2, KDE 4.14. I downloaded the client from official website. I checked is executable option in properties. But when i double clicked on the file ...
1
vote
1answer
74 views

Updating the desktop icons after moving a manually-installed program

I'm new here. I've installed a program manually and now I've moved the program files to a new location. How do I update the path of the program for my old launcher icons to work properly? -- without ...
1
vote
2answers
100 views

KDE consider programs as libraries (.so), How to change file assotiation for program?

Question: How to make the correct file extension association in KDE so programs are executable from the UI? Linux 4.9 Debian 9 (stretch) stable version 64bit 2017-09-28. KDE Plasma as included ...
1
vote
1answer
2k views

Can't run executable file on Ubuntu, terminal expects sudo, or gives errors like “Invalid or incomplete multibyte or wide character”

I'm trying to run executable files on Ubuntu, but it's not working, although the exact same executable file works fine on others' machines, which are also running Ubuntu 12.04 like me. Based on this, ...
0
votes
1answer
46 views

Problem running several programs or commands at the same time

I had a problem because I have to execute near 1700 times the same program with different data. That program do several calculations using iterations, and the answer is obtained 5 hours later ...
0
votes
0answers
40 views

Why I can't open text files when execetue “x” permission is on?

for example I have test_file and I run sudo chmod 775 test_file so now while I'm the owner I can read,write and execute it but with graphical interface it doesn't work, I don't have any error messages ...
0
votes
1answer
28 views

How can I make a specific piece of code portable for running on different systems through a pipe?

Quite often, when I search a solution to a problem, I end up finding lines of code like the following: curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python - ...
0
votes
0answers
26 views

How to add library to executable file and view it with ldd command?

I want to know how to add library to executable file and view it with ldd command?
0
votes
1answer
246 views

How to run external executables within firejail

My machine is home desktop(personal) running Debian Buster with i3 window manager. I recently installed firejail with apt install firejail* firetools and also downloaded the new Firefox 83 browser ...
0
votes
0answers
63 views

Compiling C on Manjaro

First of all, I'm pretty new to the whole Linux world so sorry if this question may seem stupid. I'm currently studying informatics and telecommunications, I tried Linux for the first time about 2 ...
0
votes
0answers
69 views

Blacklist/whitelist applications in Linux

I would like to learn about solutions/alternatives for managing execution access to applications in Linux-based systems (specifically Fedora flavours). I already researched into possibilities like ...
0
votes
0answers
53 views

No such file or directory but the file is clearly there

I run my make file and get an output E1code3 which I then try to execute by typing ./E1code3 I get the error message no such file or directroy but it is clearly there! I have tried to change name to ...
0
votes
1answer
294 views

Convert folder to .bin-File

I just downloaded a bin file for my new application. The problem is that I had to change some config files, and for that I used 7-zip to unpack the files. I changed the files the way I want to have ...
0
votes
0answers
11 views

Is it possible to get pipenv shell to source environment vars (secrets) with an executable?

I'm wondering if it's possible when executing pipenv shell to produce a shell with env vars that are sourced from some executable like source secrets.py or source secrets.sh I'm trying to avoid the ...
0
votes
0answers
47 views

Executable does not work if run outside its folder

I have an already structured SDK folder where I have my project. Program works as expected if I do: cd /home/user/Documents/Camera/ProjectCamera/linux64/proj make cd /home/user/Documents/Camera/...
0
votes
1answer
157 views

Automatically offer to set execute permission on shell scripts

I use shell scripts a lot. Practically every time, I create the script and try to run it, and get the permission error because I forgot to set +x. This seems like a huge hassle, is there a way to make ...
0
votes
2answers
86 views

liballeg.so.4.0: cannot open shared object file: No such file or directory

Its giving me this error when I try to run an executable file. I have tried ./filename in the directory containing it and ln filename secondpath cd secondpath nothing seems to work, I checked that ...
0
votes
0answers
87 views

unable to execute VBoxManage command in python executable (created with pyinstaller)

OS: Ubuntu 16.04 LTS make an install.py file executable: pyinstaller -w install.py --onefile install.py script: import os VM = os.system('VBoxManage startvm win10 --type headless') if VM == 0: ...
0
votes
0answers
77 views

Make Python3 script callable from everywhere without making it an executable

I've got a folder: /root/Desktop/commands/ This folder contains many Python scripts that should be callable from anywhere from the terminal. How can I make it, that I say once, that all scripts in ...
0
votes
0answers
3k views

/usr/bin/fg: line 4: fg: no job control

I have faced the problem mentioned above when I call sleep 100 & Background job starts, and then I pause the process by: kill -STOP <PID> Then if I just say fg sleep It brings the job ...
0
votes
0answers
304 views

sh -c and exec works in prompt but not in Shebang script

I try to execute Xsession logout via shell script: xfce4-session-logout --logout The above option (or -l) allows logout without confirmation. It works fine in bash prompt, but instead of sh, I have ...
0
votes
0answers
61 views

How is it possible to call CwRsync.exe via a Bash Script with variables and arguments?

This is the commandline currently used to call Rsync that's part of Cygwin 64 install. rsync -aqHPR $CygSrcRoot/./$FolA1 $CygSrcRoot/./iMazing.Versions/Versions/$FolA1 $CygDstRoot/$DstCountFol --...
0
votes
0answers
324 views

Linux - Upgrading the BIOS using an EXE

When a bios update is only available via .exe, what's the easiest way to update the bios on a computer running Linux exclusively? Many times I've had to install Windows 10 onto a computer just long ...
0
votes
0answers
63 views

Make programs in /opt searchable from launcher

I've installed Telegram and I've the folder "tsetup.1.3.10", where executable files reside, into Download folder. I don't want my programs in Download folder, so I moved they in /opt folder. But, ...
0
votes
1answer
354 views

Stopped process reasons?

I'm running a program using a batch file and it keep giving me this ERROR: STOPPED PROCESS I've noticed that the program stops each time in a place a little after the place he stopped the last ...
0
votes
1answer
364 views

Requirements to run LAXUNIX.SH - LaunchAnywhere (tm) version 14.0

I am trying to install a program. After installation was done, I tried to click on the installed file and I got this: LAXUNIX.SH - LaunchAnywhere (tm) version 14.0 To run this script you will need ...
0
votes
0answers
973 views

What is the usage of set-user-ID of a program file?

From APUE When we execute a program file, the effective user ID of the process is usually the real user ID. However, we can also set the set-user-ID bit in the file’s mode word (st_mode) that ...