On Dec 21, 2007 11:30 AM, Lior Kaplan <[EMAIL PROTECTED]> wrote:
> Can you use strace to see the exac reason for the permission error ?
I ran ls -la, but I have no idea what I´m looking for. Hereś the output.
[EMAIL PROTECTED] /]$ ls -la /-usr/bin/rpmquery
ls: /-usr/bin/rpmquery: Permission denied
[EMAIL PROTECTED] /]$ clear
[EMAIL PROTECTED] /]$ ls -la /-usr/bin/rpmquery
ls: /-usr/bin/rpmquery: Permission denied
[EMAIL PROTECTED] /]$ strace ls -la /-usr/bin/rpmquery
execve("/bin/ls", ["ls", "-la", "/-usr/bin/rpmquery"], [/* 62 vars */]) = 0
brk(0) = 0x805e000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fc6000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=50427, ...}) = 0
mmap2(NULL, 50427, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fb9000
close(4)= 0
open("/lib/i686/librt.so.1", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\34"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0644, st_size=30584, ...}) = 0
mmap2(NULL, 33356, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4,
0) = 0xb7fb
mmap2(0xb7fb7000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x6) = 0xb7fb7000
close(4)= 0
open("/lib/i686/libc.so.6", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240X\1"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0644, st_size=1220244, ...}) = 0
mmap2(NULL, 1230204, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
4, 0) = 0xb7e83000
mmap2(0xb7faa000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x126) = 0xb7faa000
mmap2(0xb7fad000, 9596, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fad000
close(4)= 0
open("/lib/i686/libpthread.so.0", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 K\0\000"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0644, st_size=90680, ...}) = 0
mmap2(NULL, 74208, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4,
0) = 0xb7e7
mmap2(0xb7e7f000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xe) = 0xb7e7f000
mmap2(0xb7e81000, 4576, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e81000
close(4)= 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7e6f000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e6fab0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7faa000, 4096, PROT_READ) = 0
mprotect(0xb7fdf000, 4096, PROT_READ) = 0
munmap(0xb7fb9000, 50427) = 0
set_tid_address(0xb7e6faf8) = 15123
sendto(-1209599232, umovestr: Input/output error
0xc, 3085434868,
MSG_PROXY|MSG_EOR|MSG_TRUNC|MSG_ERRQUEUE|MSG_CONFIRM|MSG_FIN|MSG_RST|MSG_NOSIGNAL|MSG_MORE|0xb7e6,
ptrace: umoven: Input/output error
{...}, 3216877960) = 0
rt_sigaction(SIGRTMIN, {0xb7e746e0, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xb7e745f0, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbfbda6e0, 35, (nil), 0}) = 0
brk(0) = 0x805e000
brk(0x807f000) = 0x807f000
open("/usr/share/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=2586, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7e4f000
read(4, "# Locale name alias data base.\n#"..., 131072) = 2586
read(4, "", 131072) = 0
close(4)= 0
munmap(0xb7e4f000, 131072) = 0
open("/usr/share/locale/en_US.UTF-8/LC_IDENTIFICATION", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=373, ...}) = 0
mmap2(NULL, 373, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fc5000
close(4)= 0
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=26026, ...}) = 0
mmap2(NULL, 26026, PROT_READ, MAP_SHARED, 4, 0) = 0xb7fbe000
close(4)= 0
futex(0xb7faca4c, FUTEX_WAKE, 2147483647) = 0
open("/usr/share/locale/en_US.UTF-8/LC_MEASUREMENT", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
mmap2(NULL, 23, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fbd000
close(4)= 0
open("/usr/share/locale/en_US.UTF-8/LC_TELEPHONE", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0
mmap2(NULL, 59, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7fbc000
close(4)