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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
22 views

Cannot run .exe app from virtual machine

I am trying to run the .exe of an app I have downloaded from the Apple store onto my virtual machine. However, every time I run the file, I get the following error: cannot execute binary file: Exec ...
user avatar
0 votes
2 answers
37 views

how to block the double execution of the same script in the same directory

I have created a .sh executable file that generates several files in the working directory/folder that are used by the same script. If it is run twice in the same folder it would be a mess because the ...
user avatar
  • 1
0 votes
1 answer
28 views

Why would I give the execute permission for txt file (non-script) file

In this article we see x permission is added to myfile.txt: mode of `myfile.txt' changed to 0751 (rwxr-x--x) What is execute permission in the context of non-script file? When would I need ...
user avatar
1 vote
0 answers
25 views

Get Linux Executable Signing Certificate Information

I wanted to know if there was a way (some sort of library that I'm unaware of) that gets the signing certificate details of an executable. I know it's possible to sign a binary using openssl but how ...
user avatar
0 votes
0 answers
21 views

Unable to exec programs, parent directory symbolic link, btrfs mdadm drive

I'm not sure what to try next to resolve this issue. ~ 🌝 cat /etc/fstab # /dev/sdg1 /mnt/d/ ntfs noatime,nodiratime,users,noauto,x-systemd.automount,autodefrag 0 0 /dev/md127 /mnt/d btrfs ...
user avatar
  • 139
0 votes
1 answer
46 views

Reasonable way to customize ( change ) an executable program's command ( name ) , in terminal

Background Using xfce4-terminal as an example, I want to run the program by just typing term. When I type which xfce4-terminal it returns /usr/bin/xfce4-terminal. So, I created a symbolic link: sudo ...
user avatar
  • 357
0 votes
1 answer
76 views

How to Extract Icons from Executable File in Linux

I'm not talking about a Windows EXE. I mean an actual Linux executable file. At first, I've been wondering whether Linux executables even have embedded icons, and it seems as though they do, because ...
user avatar
  • 9
1 vote
0 answers
27 views

Empty executables after creating bind mount

I've created a bind mount in /tmp/test which I then use to establish a chroot jail. For example: mount --bind -o ro /usr/bin/ /tmp/test chroot /tmp/test /some_executable This seems to work fine - most ...
user avatar
0 votes
1 answer
47 views

Does the regex engine have an associated executable?

I'm working with a tool that uses a whitelist to allow certain commands to be executed. The whitelist works using file paths like so: command1=/bin/echo command2=/bin/sed ... The problem is commands ...
user avatar
0 votes
1 answer
17 views

gdrive not working on Fedora 35

I would like to access my cloud data on Google Drive from terminal, so I have downloaded gdrive from this source; I have selected gdrive_2.1.1_linux_amd64.tar.gz since I am on Fedora 35 with a 64 bit ...
user avatar
  • 173
0 votes
0 answers
187 views

While trying to convert my python project to exe on Kali, the following dependencies error is popping up

I'm trying to convert my python project to exe on Kali, but the following dependencies error is popping up. Command pyinstaller --onefile -w "Emp_system.py" ...
user avatar
0 votes
2 answers
83 views

Is it possible to show when an executable was run for the last time?

Note that the FS is mounted with the relatime option (thus the recent last access time is not shown). Is there a way to see when an executable (ELF 64-bit LSB executable) was run for the last time? ...
user avatar
  • 602
0 votes
1 answer
116 views

Dumping virtual memory addresses of an executable from /proc/pid/maps

I want to dump the virtual memory addresses of a running executable. This is the command I'm running: ./executable & cat /proc/$(pidof executable)/maps > maps.dump, and this is the error I get: ...
user avatar
-1 votes
2 answers
200 views

Compile a shell script to an executable binary with make

I know shc can convert the shell script to binary, but there is obvious and famous tool to decrypt it. So, I want to find another way to do this. I've heard that make can also convert a shell script ...
user avatar
  • 21
0 votes
0 answers
77 views

Configure a desktop shortcut during live media ubuntu 20.04 customization

Context Currently I'm creating a customized Ubuntu 20.04 LTS to be booted from live media (USB). I'm trying to create a desktop shortcuts i.e. for the shutdown command. I prepared a .desktop file ...
user avatar
0 votes
1 answer
36 views

Allow user to run nonpermissive commands in shell script (KSH)

I have a ksh script I am developing for work. (I am on the newer side to shell-scripting) I have root access but the future-users of this script will not. Say the other user is named User1. Within the ...
user avatar
0 votes
3 answers
146 views

Make STDIN executable with shebang

I have a program to list database files. It is called direkly from the shell like db filename to list the whole file, or like db 'filename :: conditions' to list only selected elements ... Another ...
user avatar
  • 123
1 vote
1 answer
35 views

is there a reason to revoke write permission for executables in /usr/bin

I have encountered a package which installs its binaries with permission 555 instead of usual 755 in /usr/bin, i.e. prohibiting writing for everyone. I do not understand the reason for doing so... Can ...
user avatar
  • 2,381
1 vote
1 answer
60 views

VNC / Ubuntu 18.04 / xfce4: can't launch executables with a GUI

I'm using VNC remote desktop to visually access a remote Ubuntu 18.04 machine with a xfce4 GUI. VNC works fine. SSH shell works fine. The 2 programs with a graphic UI I'd like to launch are nedit (a ...
user avatar
  • 111
7 votes
2 answers
837 views

Equivalent of executing a file (with shebang line) by entering its path?

Say I have a file hello: #!/bin/sh echo "Hello World!" Provided the executable bit is set on that file, I can execute it by entering its path on the prompt: $ ./hello Hello World! Is ...
user avatar
0 votes
0 answers
9 views

How to pass "answers" to executables in one line? [duplicate]

I have an executable in unix that asks the user for several questions before starting the simulation. Most of the questions' answers are numeric. I know if the questions are all yes-or-no and if all ...
user avatar
  • 1
0 votes
0 answers
14 views

can XIP kernel execute both normal exe and XIP exe?

I'm using linux kernel + busybox rootfs on an mmu-less device (stm32f429 custom board). I want to compile my kernel to execute in place (XIP). after booting it how can I specify which executable ...
user avatar
1 vote
1 answer
135 views

OpenAL error: 40964 when running an executable

I recently installed the missing libraries for an executable, but I have problems when I run it. It doesn't sound and these are the errors I get when I run it from the terminal. OpenAL error: 40964 (...
user avatar
  • 33
0 votes
0 answers
102 views

Error when I try to run an executable file while loading libz.so.1 library

I can't run the executable file because of the libz.so.1 library. I have already installed the zlib1g_1.2.11.dfsg-1_amd64.deb package, but the error still appears. How can I do to solve this? This is ...
user avatar
  • 33
0 votes
2 answers
78 views

Log which system executables have been used

I have an Ubuntu-based Dockerfile and I'd like to change it to be based on a minimal Debian or maybe even Alpine. The problem is that I'm relying on a lot of system executables that came preinstalled ...
user avatar
  • 677
0 votes
1 answer
50 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 ...
user avatar
1 vote
0 answers
118 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 ...
user avatar
  • 11
0 votes
0 answers
61 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 ...
user avatar
  • 181
2 votes
3 answers
563 views

Is there any benefit to grouping similar programs into a single path directory?

I'm setting up prometheus in a web server, and I noticed that each exporter is its own program that must be added to a directory in $PATH. My question is, is there any advantage to making a ...
user avatar
15 votes
2 answers
2k views

bash: ./*.exe: No such file or directory with executables named *.exe

Looks like I cannot run any normal linux binaries if their name ends with .exe, any idea why? $ cp /bin/pwd pwd $ ./pwd /home/premek This is ok. But... $ cp /bin/pwd pwd.exe $ ./pwd.exe bash: ./pwd....
user avatar
  • 564
0 votes
1 answer
38 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 - ...
user avatar
  • 319
2 votes
1 answer
264 views

How to create a desktop entry for .jar files?

I created a desktop entry and moved it to ~/.local/share/applications, but it doesn't execute when I click on it from the start menu. This is my .desktop file: [Desktop Entry] Type=Application ...
user avatar
  • 33
2 votes
0 answers
188 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 ...
user avatar
  • 121
2 votes
2 answers
469 views

Find all executable files excluding certain directories

I'm looking to find all executable files that are NOT in my $PATH. Currently I'm doing this find / \( -path "/opt" -prune -o -path "/var" -prune -o -path "/bin" -prune -o ...
user avatar
  • 31
0 votes
3 answers
142 views

Do 'executable' file systems exist?

Are there any Unix/Linux filesystems that do the following? if the file is executable, return a virtual file containing the stdout generated by executing it (it would have to be non-writable, I ...
user avatar
11 votes
1 answer
2k views

Accidentally ran chmod +x /* - How bad did I just mess up?

I wanted to mark all of the files in the directory I was in as executable, and I ran chmod +x /* because I thought that was the command to mark all the files in the directory you were currently in as ...
user avatar
4 votes
4 answers
377 views

I want to terminate a python script if it doesn’t output anything to the terminal in 2 min

Here's my current bash which is just a loop while true ; do python3 /Users/Name/Desktop/pythoncode.py done I want to terminate pythoncode.py if it doesn’t output anything to the terminal in 2 ...
user avatar
0 votes
1 answer
624 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 ...
user avatar
  • 244
1 vote
1 answer
3k views

Fish: The file is not executable by this user

I made fish function in ~/.config/fish/functions/confgit.fish: function confgit /home/john/Projects/confgit $argv end But when I run this function it just says: fish: The file “/home/john/...
user avatar
0 votes
1 answer
559 views

Recursively setting all files in a directory as non-executable [duplicate]

I have an external hard-drive formatted as NTFS which I use to back-up and store files from both Linux and Windows (as I am dual-booting). I recently bought a new computer and installed Linux Mint 20 ...
user avatar
0 votes
0 answers
105 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 ...
user avatar
0 votes
1 answer
125 views

Unix Executable to the directory it is housed in Mac

I am trying to make an executable script on Mac where it makes the directory it is housed in the current directory (cd) and then runs some more commands. I started with a find command however in the ...
user avatar
0 votes
0 answers
185 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 ...
user avatar
0 votes
1 answer
2k views

Why am I receiving the "zsh: exec format error: ./metal" error?

I am attempting to run a Unix executable program (Metal; https://genome.sph.umich.edu/wiki/METAL_Quick_Start) from the terminal. I continue to get the following error: zsh: exec format error. I have ...
user avatar
1 vote
0 answers
46 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:...
user avatar
  • 111
1 vote
1 answer
1k 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 ...
user avatar
  • 11
0 votes
1 answer
560 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 ...
user avatar
1 vote
0 answers
47 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 ...
user avatar
  • 11
4 votes
0 answers
360 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 ...
user avatar
0 votes
1 answer
175 views

What is "shared executables"?

Stephen Kitt wrote in https://unix.stackexchange.com/a/448943/674 ld.so is a shared ELF object, but it doesn’t require an interpreter (it has no .interp entry); this is typical of libraries (shared ...
user avatar
  • 89.8k

1
2 3 4 5
11