My new VPS is running Debian 5.0 (bash 3.2.29), and some commands seems to be missing. For example the ps
command is not here, neither is ls
(but dir works). Is there a package missing or what's the deal?
:~# type ps
ps is hashed (/bin/ps)
:~# ps
-bash: /bin/ps: No such file or directory
:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
:~# /bin/ps
-bash: /bin/ps: No such file or directory
Edit: More info req from comments:
- It's 64bit
- Don't know any details on the actual installation.
- It's a virtual machine running virtuozzo & plesk
- readelf shows that
/bin/ps
and/bin/ls
are 32bit. And theres no 32bit/lib/ld-linux-so.2
. How did that happen? Error in installation or what?
For completion's sake:
# file /bin/ps
/bin/ps: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.0.0, stripped
# file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.0.0, stripped
# uname -mrvs
Linux 2.6.18-028stab069.6 #1 SMP Wed May 26 18:10:06 MSD 2010 x86_64
# readelf -l /bin/ps
Elf file type is EXEC (Executable file)
Entry point 0x8049040
There are 6 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000034 0x08048034 0x08048034 0x000c0 0x000c0 R E 0x4
INTERP 0x0000f4 0x080480f4 0x080480f4 0x00013 0x00013 R 0x1
[Requesting program interpreter: /lib/ld-linux.so.2]
LOAD 0x000000 0x08048000 0x08048000 0x071fa 0x071fa R E 0x1000
LOAD 0x007200 0x08050200 0x08050200 0x005a0 0x01e5c RW 0x1000
DYNAMIC 0x0076f8 0x080506f8 0x080506f8 0x000a8 0x000a8 RW 0x4
NOTE 0x000108 0x08048108 0x08048108 0x00020 0x00020 R 0x4
Section to Segment mapping:
Segment Sections...
00
01 .interp
02 .interp .note.ABI-tag .hash .dynsym .dynstr
.gnu.version .gnu.version_r .rel.got .rel.bss .rel.plt
.init .plt .text .fini .rodata
03 .data .got .dynamic .bss
04 .dynamic
05 .note.ABI-tag
echo $PATH
return? does calling/bin/ps
directly work?type ps
it returnsps is /bin/ps
echo /bin/?s
. If they are, fetch the files/bin/ls
and/bin/dir
(or whereverdir
is) to your machine, and inspect them (to start with, runfile
on them and report the output). Check the permissions on the files (withdir -l /bin/?s
).echo $HOSTTYPE
show, anduname -mrvs
ifuname
works? What virtualization solution does the VPS use? Does it provide a security framework such as SELinux? Do you see anything else along these lines that might be relevant about the VPS?