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.
574 questions
0
votes
0
answers
43
views
User can't execute a shell script based on shebang but ok when interpreter directly invoked [duplicate]
Context
I have a system user caddy and a shell script placed under /run/caddy/caddy-cert-obtained-wrapper.sh.
/run and /run/caddy are owned by root:root with permissions 0755.
caddy-cert-obtained-...
0
votes
1
answer
117
views
Unavailable executable still remains
Please note: This is not a question related to pip or python.
I am trying to make sense of why I see a "permission error" instead of "path not found" error.
I have done many ...
1
vote
1
answer
77
views
Making Neovim from GitHub the default file handler for text/source files
There may be a simple answer to this, but if there is, I'm not aware of it.
I've downloaded the latest GitHub release of Neovim, because the one in the apt repositories is outdated by a few major ...
-1
votes
1
answer
103
views
Why does the position of `exec` flag in `/etc/fstab` matter? [duplicate]
I find it peculiar, that I could not execute binaries / scripts on my new RAMdisk (tmpfs).
1)
tmpfs /ramdisk tmpfs exec,size=3G,noauto,sync,user,rw,x-gvfs-show,x-gvfs-name=RAM 0 0
versus
2)
...
0
votes
2
answers
111
views
Can you safely downgrade/upgrade/remove a package an executable of which is running by APT? [duplicate]
Suppose apt modifies or removes an executable, say a script file, of the package, while the executable is running. Can you rely the running executable will be intact so that the executable runs like ...
4
votes
1
answer
408
views
Can't find executable file that is obviously present
I am trying to run the COMSOL license manager in Pop OS; however, when I try to run:
$ ./lmgrd -c ../license.dat -l /var/tmp/comsol55.log
I get the following error:
bash: ./lmgrd: No such file or ...
0
votes
0
answers
193
views
How can I achieve the "Run in Konsole" action using the Enter key on the keyboard?
When hitting enter (or double-clicking) an executable shell script (a ".sh" file, for instance), it would be nice if this would launch the script inside a console window.
I am using the ...
9
votes
3
answers
1k
views
Prevent application from being executed by any local user except systemd
I need to run the binary that I don't fully trust.
I've created a systemd unit for it where it's locked down as much as humanly possible, it works great.
Now it's still on my system (Fedora) and I may ...
0
votes
2
answers
3k
views
zsh: command not found: yt-dlp
The standalone executable yt-dlp recommended for macOS suddenly stopped working. I used it two weeks ago and it worked. I have not had any updates to my system, expect some brew updates/upgrades.
...
1
vote
1
answer
3k
views
How can I run an executable and tell it to use my discrete NVIDIA GPU instead of the onboard one?
I have a laptop with both a discrete and an onboard graphics card. I want to run a Game executable file using the discrete GPU but instead it runs on the obnboard one. How can I run it with the ...
0
votes
2
answers
486
views
access shell alias with dmenu
I have a collection of bash commands (one liners) that I use on a regular basis to open new shells or start programs with a given set of arguments. As I use dmenu, I'd like to be able to use those ...
1
vote
1
answer
2k
views
Can I configure parameters when launching flatpak apps from the GUI?
One of my Flatpak application stopped working properly, probably after a silent upgrade. I found a fix online that tells me to add a parameter. That fix works. Nonetheless, I like running that app ...
0
votes
2
answers
250
views
Change behavior of bash script if executed from another script
I have a script (say Task.sh) (with executable permission):
Pseducode:
if [[ Not called from inside a script ]]; then
echo 'Not called from inside a script'
else
echo 'Called from a script'
fi
I ...
-1
votes
5
answers
784
views
How to mark things I download automatically executable?
I spend a lot of time downloading things that I am going to execute, without a doubt, after having downloaded them. Out of the 900-ish files in my download folder right now, roughly a third is stuff ...
0
votes
1
answer
65
views
How to disambiguate a second version of an installation from command-line?
I installed a tool called herd (http://diy.inria.fr/herd/). The original version of this I think is in the global path so I can call it from anywhere by writing herd7. Now I also have a second ...
4
votes
1
answer
7k
views
Cannot exceute binary: required file not found
I see that there are other questions like this out there, but the answers there did not work for me.
I am using I downloaded the Julia 1.9.2 (Linux, x86-64, glibc) prebuilt binary and tried to execute ...
1
vote
1
answer
1k
views
Is it possible to verify a Windows EXE (PE file format) checksum under Linux?
Windows EXE files which are in the PE format have a header and it contains a checksum.
Is it possible to verify it under Linux?
Because I am looking for a Linux command I hope you understand that this ...
2
votes
0
answers
158
views
What happened to a.out
I just started to wonder what ever happened to the original a.out binary file format and why it was superseded by ELF?
0
votes
0
answers
19
views
"No such file or directory" when executable exists with relevant permissions [duplicate]
After installing n to manage node versions on my alpine vm, I am having the following issue where the node executable is not found, despite existing
vscode ➜ /workspaces/tom $ which node -a
/...
0
votes
1
answer
122
views
Is `command -v program` always executable?
I am using the command -v "program" >/dev/null 2>&1 construct if I need to POSIX-ly find out if such program is installed in an if-statement.
From its help page is not clear, ...
3
votes
2
answers
892
views
How to make my script stay executable on different devices?
I’ve made a script that would work on rhel distros and forks. It’s for personal use to automatically download repositories and software that I use. When I make the script executable on the host ...
1
vote
1
answer
243
views
Temporary failure in name resolution in Python script running during boot or on shutdown
I wrote a Python script which sends any message via Telegram:
#!/opt/anaconda3/bin/python
import asyncio
import telegram
import os
import sys
async def main():
bot = telegram.Bot(os.environ["...
0
votes
1
answer
887
views
Does a user need executable permissions to be able to run du (disk usage)? [duplicate]
I am observing the following behaviour, and want to know if it is expected.
I am trying to run disk usage ( du ) as user2 on a directory test_directory which is owned by user1.
If I change the ...
0
votes
1
answer
148
views
./<filename> No such file or directory
I'm trying to run a binary. But when I'm trying to run the file I'm facing the following error.
pegasus@pegasus:~/Documents/Courses/heaplab-main/house_of_force$ ./house_of_force
bash: ./...
5
votes
1
answer
486
views
Is there such a thing as an "executable directory"?
In MacOS you can name a folder with the suffix .app and it will be launchable from the GUI as an application based on an internal folder structure convention.
Does such a thing exist in Linux?
Can I, ...
0
votes
2
answers
558
views
Can process execute new program without the kernel knowing?
Can process execute new program without the kernel knowing? Usually, when the program is executing kernel gives to it its own process after receiving the syscall (such as exec() or fork()). In this ...
1
vote
0
answers
131
views
Unable to execute file.exe with wine 4.0.4 in HPC
I have a .exe file that I need to run in HPC and I am not sure how to do this.
I tried using wine-4.0.4 as follow but I get the following
chmod a+x Rtools35.exe
./Rtools35.exe
wine: Bad EXE format ...
-3
votes
2
answers
957
views
What is the effect of the "s" permission bit on a file?
I have two files with the following permissions:
-rwsr--r-- 1 root root 213 Oct 22 12:15 f1
-r--rwxr-- 1 Bob staff 113 Oct 22 12:18 f4
Can the user Bob execute f1 and why? What is the effect of the ...
1
vote
1
answer
774
views
Is it possible to load up a binary into ram, without executing it?
Like I will use google chrome whenever I use linux (most probably) But I don't want it to auto start when ever I open it. I could open it manually, but I have HDD so it is pain to load for the first ...
1
vote
0
answers
3k
views
Real meaning on "ELF 64-bit LSB shared object"
How can ELF 64-bit LSB shared object be executable that is readilt executed/launched right away, isn't it opposing the word terms "shared object" (Windows equivalent to dynamic link) ?
2
votes
3
answers
290
views
Why does my executable not run from a bash script called through udev?
I have an executable compiled from my code. I am trying to run this executable when I insert a serial device into my Raspberry Pi Zero W using udev. However, for some reason the executable will not ...
0
votes
0
answers
20
views
I was trying to run clang file [duplicate]
I am new to Kali Linux i was trying to run clang file which i did but a a.out file appears what to do next?
zsh: no such file in directory: /a.out
I have trying to do it so many time please help
1
vote
0
answers
40
views
What happens if a running executable can no longer load its code/data pages?
This is under the assumption that the binary is large enough that not all pages were loaded into memory at the start of execution. What would happen if the underlying file system suddenly disappears (...
9
votes
4
answers
3k
views
Executable vs Library in Bash Script
When reading over Google's shell style guide, I found the following line that confused me a little: "Executables should have no extension (strongly preferred) or a .sh extension. Libraries must ...
2
votes
2
answers
2k
views
Give executable permissions to binary files on a USB
I have a desktop application that provides the user with a tarball (.tar.gz) that they can unpack to find the binary that can be run with executable permissions which starts the overall program. This ...
1
vote
1
answer
6k
views
ssh to execute remote command under interactive shell
Very similar with Run a command in an interactive shell with ssh after sourcing .bashrc, yet the answer there doesn't work for me.
I want to to execute remote command via ssh under the full ...
1
vote
2
answers
4k
views
Creating a systemd service in ubuntu that can be started/stopped
I have build a server that ships in executable format, and I want to register it as a service that I can start/stop/restart.
I have read the following questions and many others like it > How can I ...
1
vote
1
answer
834
views
Files get executable when copied
So I just bought a new Samsung T7 Portable SSD. I initially intended to format it to exFAT, for use with both Windows, MacOS and Linux, but upon inspection, the disk comes with a default file system ...
1
vote
1
answer
131
views
Is "running a folder" possible in Linux?
Is there a philosophy behind running a folder as an executable in linux?
user@node main % ls -lash ./bin
total 0
0 drwxrwxrwx 2 user staff 64B May 23 21:04 .
0 drwxr-xr-x 6 user staff 192B ...
0
votes
1
answer
209
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 ...
0
votes
2
answers
230
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 ...
0
votes
1
answer
2k
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 ...
1
vote
0
answers
271
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 ...
0
votes
1
answer
124
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 ...
0
votes
1
answer
1k
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 ...
1
vote
1
answer
4k
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 ...
1
vote
0
answers
72
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 ...
0
votes
1
answer
76
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 ...
0
votes
1
answer
245
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 ...
0
votes
2
answers
1k
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?
...