4
votes
2answers
217 views

Why there are multiple folders for executable files in Linux? [duplicate]

I'm trying to understand Linux file system, and one of the question is: 1- Why there are multiple folders for executable files: /usr/bin, /usr/sbin/ and /usr/local/bin? Is there any differences ...
2
votes
3answers
295 views

How to recover from recursive 'chmod -x' on my home folder

I pressed ENTER after typing the following stupid command on my home directory: find . -type f -exec chmod -x '{}' ';' What do you advise as a fix for this. My guess is that I can't do anything but ...
2
votes
0answers
104 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 ...
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 ...
0
votes
3answers
237 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 ...
0
votes
1answer
102 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 ...
8
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 ...
1
vote
2answers
75 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 ...
3
votes
1answer
3k views

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

ldd xls linux-gate.so.1 => (0xb77bc000) libQtGui.so.4 => /usr/lib/i386-linux-gnu/libQtGui.so.4 (0xb6cc2000) libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xb6c98000) ...
0
votes
2answers
65 views

How many types of architectures and OSes

I am trying to write a script python script that is supposed to run across all linux based OSes. The python script invokes executables of few existing tools(for example pathload and iperf) that I have ...
0
votes
3answers
322 views

Is shebang always the same as the interpreter's installation directory?

Must the shebang header always match the interpreter's installation directory? If so, then why do both #!/usr/bin/python and #!/usr/local/bin/python work for me?
10
votes
1answer
6k views

how to convert a shell script into binary executable?

I want to convert my shell scripts into binary executable so that nobody else could edit or read it.Is there any way to convert it into binary executable?
13
votes
1answer
959 views

Shebang line with `#!/usr/bin/env command --argument` fails on Linux

I've got a simple script: #!/usr/bin/env ruby --verbose # script.rb puts "hi" On my OSX box, it runs fine: osx% ./script.rb hi However, on my linux box, it throws an error linux% ./script.rb ...
0
votes
2answers
410 views

Why won't my binary run?

I have a binary that runs on my Debian Squeeze system, but then it doesn't do anything on my Debian Wheezy (kernel Linux 3.2.0-4-amd64) system. Both systems are 64 bit, while the executable is a 32 ...
0
votes
1answer
85 views

Are .so files in Fedora considered ELF files?

ELF 'Executable and Linkable Format' So if I generate Shared Object files .so are those considered ELF files?
14
votes
1answer
1k views

What is Linux doing differently that allows me to remove/replace files where Windows would complain the file is currently in use?

The example I have is Minecraft. When running Bukkit on Linux I can remove or update the .jar files in the /plugins folder and simply run the 'reload' command. In Windows, I have to take the whole ...
1
vote
2answers
622 views

Ubuntu Linux and SCO UNIX OpenServer

Can Ubuntu Linux run SCO UNIX OpenServer 5.0.7 applications like filePro? Can I use CTAR to copy application directories from a CTAR backup tape to Linux Ubuntu?
4
votes
0answers
407 views

Can capabilities be used in scripts without setcap'ing the interpreter binary?

Right now I'm using cap_net_bind_service MY_USERNAME in /etc/security/capability.conf. Now I just need to set cap_net_bind_service+i on the interpreter of my favouite scripting language to be able to ...
1
vote
1answer
470 views

ld-uClibc.so missing

I am trying to run an executable on Angstrom Linux, but ash tells me -sh: ./myEx: not found I've checked with readelf the program interpreter and it is root@beagleboard:~# readelf -l myEx | grep ...
3
votes
1answer
110 views

What does CONFIG_IA32_AOUT do actually?

I'm running a 64bit kernel, already have CONFIG_IA32_EMULATION set, so do I still need CONFIG_IA32_AOUT enabled? From the help in menuconfig, I don't quite get it.
3
votes
3answers
332 views

Join the executable and all its libraries

Lets say I have a /bin/cat executable that uses the following shared libraries: linux-vdso.so.1 libc.so.6 /lib64/ld-linux-x86-64.so.2 Is it possible to somehow "join" that stuff together ...
2
votes
1answer
1k views

Problem with executing Firefox version 9.0.1

I cannot run firefox version 9.0.1. When i try to execute the binary firefox I get an error -bash: ./firefox: cannot execute binary file. The info returned by file is as follows: firefox: ELF 32-bit ...
3
votes
1answer
575 views

Set executable heap

The execstack program can be used to mark ELF-binaries as needing an executable stack. Is there a similar way to mark the heap as executable? Preferably for a single binary but if that's not ...
27
votes
5answers
1k views

Execution of possibly harmful program on Linux

I'm writing a program that will test programs written by students. I'm afraid that I can't trust them and I need to make sure that it won't end up badly for the computer running it. I was thinking ...
2
votes
1answer
202 views

Can I use the same binary on Linux, *BSD and Illumos?

I want to know, if I can use the binary of a program without modification on the three systems? After all they are all Unices. I talk about the same architecture.
3
votes
4answers
3k views

File permission execute only

How can I set file to be executable only to other users but not readable/writable, the reason for this I'm executing something with my username but I don't want to give out the password. I tried : ...
12
votes
1answer
696 views

Why does the file command say that ELF binaries are for Linux 2.6.9?

Whenever I run file on an ELF binary I get this output: [jonescb@localhost ~]$ file a.out a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked ...
10
votes
2answers
4k views

Binary compatibility between Mac OS X and Linux

Brace yourselves, this question will likely appear naive and/or foolish, seeing as I am relatively new to the inner workings of unix like systems, and programming in general. Ready? Ok! I will go ...
3
votes
1answer
604 views

More doubts in bzImage

The description of the bzImage in Wikipedia is really confusing me. The above picture is from Wikipedia, but the line next to it is: The bzImage file is in a specific format: It contains ...
20
votes
4answers
6k views

What makes OSX programs not runnable on Linux?

I know there are many differences between OSX and Linux, but what makes them so totally different, that makes them fundamentally incompatible?
10
votes
5answers
7k views

Can we get compiler information from an elf binary?

Is there some chance to know how a binary was built, under Linux? (and or other Unix) Compiler, version, time, flags etc... I looked at readelf and couldn't find much, but there might be other ways ...