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.

learn more… | top users | synonyms

14
votes
1answer
2k views

Loading of shared libraries and RAM usage

I'm wondering about the way Linux manages shared libraries. (actually I'm talking about Maemo Fremantle, a Debian-based distro released in 2009 running on 256MB RAM). Let's assume we have two ...
2
votes
0answers
42 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
0answers
169 views

/proc/self/maps - 3rd mapped piece of file?

I'm running Arch linux on my laptop, which is kernel 3.12.9 right now. Something has changed about the way the kernel maps in a dynamically-linked executable and I can't figure it out. Here's the ...
5
votes
2answers
148 views

run perl script with unknown perl location

I'm developing a perl script which expected to be downloaded by Mac users with a very small knowledge of shell, linux etc, let's say office managers and accountants. After the downloading the script ...
0
votes
0answers
15 views

Restore system with no execute permissions for bash and chmod [duplicate]

Good day everyone! One of my friends asked me a question: how to restore an unbootable Linux system (let it be CentOS or whatever) in the following situation: no execute permissions for bash no ...
3
votes
1answer
1k views

Why is permission denied for npm start using node-dev?

I am trying to start a node.js application with on a low permissions user. All the files I know of are owned by the correct user and have permissions set reasonably well. I'm trying to use a script ...
2
votes
2answers
2k views

Why does sshd requires an absolute path?

Why does sshd require an absolute path when restarting, e.g /usr/sbin/sshd rather than sshd Are there any security implications? P.S the error message: # sshd sshd re-exec requires execution with ...
4
votes
2answers
76 views

File executable by all, yet still cannot be executed?

As shown by the following code: ll total 136 -rwxr-xr-x 1 kaiyin kaiyin 19067 May 9 2013 dbmeister.py -rwxr-xr-x 1 kaiyin kaiyin 1617 Jul 29 2011 locuszoom -rwxr-xr-x 1 kaiyin kaiyin 112546 May ...
5
votes
1answer
68 views

What does this command actually cause?

Once while talking with my friend I was trying to joke that we might stand a better chance of completing our project if we just run loads of random programs and expect one of them to solve our ...
1
vote
1answer
711 views

permission denied when executing binary despite “rwx” priviledge and root user

I'm trying to execute some binary with bash. I am getting a "Permission denied" message despite having given the full privileges (chmod 777) and being the 'root' user: This is the file description: ...
1
vote
0answers
79 views

What are the ramifications of running binaries over NFS?

Our small business has about 10 employee workstations and an LDAP/NFS server infrastructure. We need to deploy our proprietary application (a compiled binary) on all of the workstations. But since we ...
0
votes
5answers
418 views

On executable files in Linux [closed]

It is said that in linux, unlike Windows, there's not a clear border between executables and other files. Well, in Windows, I write a C++ program, then it is precompiled, compiled and then linked to ...
2
votes
1answer
1k views

permission denied on scripts in ~/bin

I set some additional locations to the PATH environment variable in my ~/.bashrc so that these are included/sourced in logins and non-interactive scripts that are scheduled with cron. I've noticed ...
2
votes
1answer
514 views

Mark as executable

I'm using Elementary OS. How do I mark a .jar file as executable. I do have JDK installed, but I get an error saying it isn't marked as executable.
0
votes
3answers
355 views

noexec on /tmp and /var/tmp directory

Our client servers are running old version of jboss (Jboss 4.0) which has lots of known vulnerabilities. Result is that the server is hacked and we are seeing some unknown executables running from ...
1
vote
1answer
268 views

chroot segfault

I've been trying to create a LXC container (lxc create) but at the end I get these messages: W: Failure trying to run: chroot /var/cache/lxc/debian/wheezy_armhf.partial mount -t proc proc /proc W: ...
0
votes
1answer
151 views

ELF interpreter error - Can't install on my CentOS

I don't know if I'm permitted to ask about zPanel here, but I'll go ahead and try and hope for the best. Stackexchange has helped me a lot in different areas... I was following the instructions to ...
0
votes
1answer
2k views

How to Create a Unix Executable File [closed]

Is it possible to create what the Mac Finder specifies as a "Unix Executable File" and run it in Terminal like any other command instead of creating a .sh or .command file? If so how and where can I ...
1
vote
1answer
118 views

setxkbmap configuration

I'm using Lubuntu 13.04 without executing lxpanel (I killed it on purpose because I don't want to use it for the project I'm working on now). The problem is that, without lxpanel executing, the run ...
0
votes
1answer
616 views

Can't execute a file with execute permission bit set [duplicate]

Well I'm just too green to Linux, but I'm stuck with a thing that I should know, and I don't. My file has the following permission bits sets: -r-xr-xr-x is owned by root ( but it should not matter ...
5
votes
1answer
166 views

What does `init [2]` mean in the COMMAND column of ps?

Reading What do the brackets around processes mean? I understand that the executable name is printed. Linux ps man page: Sometimes the process args will be unavailable; when this happens, ps will ...
1
vote
1answer
59 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 ...
5
votes
1answer
344 views

NFS - What does the “sticky bit” mean?

I'm trying to figure how is the sticky bit used in NFS v3. RFC 1813 says on page 22: 0x00200 Save swapped text (not defined in POSIX). What do they mean by "swapped text"? In "NFS Illustrated", ...
2
votes
1answer
1k views

“No such file or directory” when executing a cross-compiled program on a Raspberry Pi

I recently bought a Raspberry Pi. I already have configured it, and I install a cross compiler for arm on my desktop (amd64). I compiled a simple "hello world" program and then I copy it from my ...
1
vote
3answers
4k views

I get “bash: …: No such file or directory” even though the executable is there [duplicate]

Operating system: Lubuntu 13.10, 64-bit. I installed the Seamonkey browser from http://www.seamonkey-project.org/ following the instructions quoted below from ...
1
vote
1answer
68 views

Executable not visible when run with sudo [duplicate]

Platform: Ubuntu 10.04 VM running out of VirtualBox File details: -rwxr-x--- 1 myuser myuser 123 2013-10-31 16:10 myscript.sh The executable is visible in the directory: >type myscript.sh ...
2
votes
2answers
308 views

lsof - debug the output information

I was going through the questions of this site. In this particular question, I see the command lsof being used to list the files that are open for a particular user. I ran the below command in my ...
0
votes
1answer
12k views

How to install the real Thunderbird on Debian wheezy?

I have Crunchbang 64 bit, a debian wheezy distro. Debian have a rebranded Firefox called Iceweasel and a rebranded Thunderbird called Icedove. But I don't want any of them. I was able to install the ...
4
votes
4answers
3k views

Running python script from Linux Terminal

I have downloaded this script named, pyAES.py and put it in a folder name codes, inside a Desktop directory of my Linux, According to this example, ...
5
votes
1answer
128 views

What is the difference in these two bash environments?

I notice that with bash scripts, some people use a different shebang to the one that I'm used to putting at the top of my own. Can someone simplify the difference between these two? I use the ...
1
vote
1answer
3k views

“No such file or directory” on files that exist? [duplicate]

In the past day, I've found at least 4 binaries that say "bin-name: No such file or directory" when I try to run them. Even if I type part of the name and tab complete it, I get the same error. I'm on ...
1
vote
1answer
49 views

Compiled, can't access with sudo

So I compiled FFmpeg from this guide as a standard user and it works fine as the user I compiled with but if i do sudo ffmpeg the program can't be found. Is it possible to make it accessible by root ...
9
votes
2answers
1k views

Test whether Linux binary is compiled as position independent code

I recently learned that (at least on Fedora and Red Hat Enterprise Linux), executable programs that are compiled as Position Independent Executables (PIE) receive stronger address space randomization ...
3
votes
2answers
199 views

Create a executable for a scheme program with arguments

I have a scheme program which is executed using the command ; (primes<= n) to give me all the primes less than n For example, ; (primes<= 200) gives me all the primes less than 200 How do I ...
19
votes
3answers
3k views

Does the shebang determine the shell which runs the script?

This may be a silly question, but I ask it still. If I have declared a shebang #!/bin/bash in the beginning of my_shell_script.sh, so do I always have to invoke this script using bash ...
1
vote
1answer
37 views

Can executables from a mounted distro's disk be run without booting into it?

This question, "Figuring out what OS is on which partition?", got me into thinking if you could run the executables from a mounted distro without actually having booted into said distro. The answer ...
1
vote
2answers
78 views

Privileges on Linux?

In Linux, I had created a userid. After creating this, I encountered a problem that the .EXE Files are not opened on simple click. They seem to be not privileged for my user account. How can I ...
107
votes
7answers
7k views

How to chmod without /usr/bin/chmod?

Today I was told a tale by a Unix trainer, a tale where the root password got leaked to the students, and one of the fellas removed the execute permission from /usr/bin/chmod itself. How do you ...
3
votes
4answers
178 views

Why is that when I download a binary from the web it doesn't have executable permissions set, but when I use gcc to build a binary it does?

For example, if I have the file hello.c which just contains: int main() { printf("Hello world"); return 0; } and I built it in gcc with gcc hello.c -o hello I can then run ./hello and it ...
0
votes
2answers
138 views

How can I run a linux build on an NTFS drive?

I'm running under Ubuntu but using a shared drive which is NTFS formatted. I've got blender sitting in a folder (it's the 2.66RC build with some trivial python customisations.) I'm calling blender ...
2
votes
2answers
118 views

Is there some way to find out if/when an executable was called?

I'm trying to figure out whether AUCTeX is actually calling dvipng when it renders LaTeX previews. While this may not the best way to find this out, one possibility is to check whether the executable ...
2
votes
2answers
131 views

Why can't I run programs extracted from an archive?

Having downloaded archives of Sage, Firefox, and Thunderbird from their respective websites on Trisquel 6.0, neither clicking the appropriate shell script nor executing a command to run the programs ...
0
votes
1answer
103 views

Execute in Place an encrypted ram drive

I have found a few old posts claiming that tmpfs can execute in place. Is this true? If so, how? If not, is there a ram drive alternative? Can this be done with a ram drive that is encrypted? If ...
0
votes
2answers
99 views

are daemon tmpfs executables copied unencrypted to memory upon execution? (prevent if so?)

When a daemon is executed, is the executable copied to memory? If so, can it be copied encrypted? If not, is there a way to prevent the executable from being copied to memory? The executable is ...
1
vote
1answer
581 views

How to add a program to be indexed by Synapse?

I downloaded the IntelliJ community edition and I'm currently running it by clicking the shell script that is in the folder of IntelliJ I was wondering how I can make Synapse recognize the idea.sh ...
4
votes
1answer
4k views

“No such file or directory” on an executable, yet file exists and ldd reports all libraries present

So by any other command the executable file exists, yet when I try to execute it, it claims it is not there. It is not a special character in the name because I renamed it though a "cat". And it ...
1
vote
4answers
46 views

Ambiguously named executables

It appears that in tcsh if I have ambiguously named executables in two separate folders in the $PATH it directs to the one in the most recently created folder. Am I correct? And is this always true? ...
4
votes
1answer
112 views

Portions of the file Header

I was working through my C programs, I am new to Linux/UNIX development and was having a look around. I created a simple C program of Hello world and was inspecting the compilation process. I tried ...
1
vote
2answers
110 views

Shell script execution

I have two shell script files with exactly the same permissions etc. I can run one of them by just giving its name in the command line but for the other one I should use sh or ./ to run it. What is ...
2
votes
1answer
52 views

How to change which program is executed by default

Surely this is an easy question, that I just don't know how to search for, but if I have two identically named executable files, one in /usr and one in /usr/local (for example), how can I change which ...