|
From: 赵才文 <zh...@li...> - 2010-03-25 01:50:13
|
thanks, Christian:
thanks for your help,
we have found the "permission denied problem"'s reason, it is because the user we added have a wrongly set file system priviledge.
we delete the user and add a new user, then everyting works!
2010-03-25
cowrie
发件人: Christian
发送时间: 2010-03-24 13:39:57
收件人: 赵才文
抄送: wra...@li...
主题: Re: Re: [Wrapper-user] why wrapper Unable to get the path for ...
cowrie,
thank you for the output.
take a look at this line:
statx("./../../../", 0x0FFFFFFFFFFFD6D0, 176, 0) Err#13 EACCES
this means that inside the realpath() function the internal call statx
for the directory "/4A/wrapper-aix-ppc-64-3.4.0/bin/./../../../", which
is in fact your root directory "/", fails due to missing access
permissions.
statx lists certain information about a file. The file does neither need
to be read, write nor executable. However it must be searchable.
Accessing the stats for your read directory requires, that it is read-
and executable for the "other" user (which is I think also the default
on most platforms).
Hope this information helps you out.
Best Regards,
Christian
On Wed, 2010-03-24 at 11:59 +0800, 赵才文 wrote:
>
> hi,this is the output (current user is "foura"),the red part is
> important.
> -------------------------
> dnserv1:/>cd /
> dnserv1:/>ll
> total 1248
> drwxr-xr-x 13 foura 4A 4096 3月22 17时15 4A
>
> dnserv1:/>cd 4A
> dnserv1:/4A>ll
> total 6757392
> drwxr-xr-x 9 foura 4A 256 3月15 15时
> 44 wrapper-aix-ppc-64-3.4.0
>
>
> dnserv1:/4A/wrapper-aix-ppc-64-3.4.0>cd bin
> dnserv1:/4A/wrapper-aix-ppc-64-3.4.0/bin>truss ./wrapper
> execve("./wrapper", 0x2FF22C3C, 0x2000FB38) argc: 1
> thread_init(0x09000000004AD358, 0x09001000A0148138) =
> sbrk(0x0000000000000000) = 0x0000000010006EB0
> vmgetinfo(0x0FFFFFFFFFFFF938, 7, 16) = 0
> sbrk(0x0000000000000000) = 0x0000000010006EB0
> vmgetinfo(0x0FFFFFFFFFFFF310, 7, 16) = 0
> sbrk(0x0000000000000000) = 0x0000000010006EB0
> sbrk(0x0000000000000010) = 0x0000000010006EB0
> __libc_sbrk(0x0000000000010020) = 0x0000000010006EC0
> getrpid(-1, -1, 10) = 892998
> _getpid() = 892998
> getprocs64(0x0000000110008250, 4912, 0x0000000000000000, 0, 0x09001000A0143460, 1) = 1
> appulimit(1005, 0) = 0x0000000000000000
> _thread_self() = 1560817
> thread_setmystate(0x0000000000000000, 0x0FFFFFFFFFFFF470) = 0
> thread_setmystate(0x0FFFFFFFFFFFF0C0, 0x0FFFFFFFFFFFF448) = 0
> _sigaction(3, 0x0FFFFFFFFFFFF830, 0x0FFFFFFFFFFFF860) = 0
> _sigaction(4, 0x0FFFFFFFFFFFF830, 0x0FFFFFFFFFFFF860) = 0
> _sigaction(5, 0x0FFFFFFFFFFFF830, 0x0FFFFFFFFFFFF860) = 0
> _sigaction(6, 0x0FFFFFFFFFFFF830, 0x0FFFFFFFFFFFF860) = 0
> _sigaction(7, 0x0FFFFFFFFFFFF830, 0x0FFFFFFFFFFFF860) = 0
> _sigaction(8, 0x0FFFFFFFFFFFF830, 0x0FFFFFFFFFFFF860) = 0
> _sigaction(10, 0x0FFFFFFFFFFFF830, 0x0FFFFFFFFFFFF860) = 0
> _sigaction(11, 0x0FFFFFFFFFFFF830, 0x0FFFFFFFFFFFF860) = 0
> _sigaction(12, 0x0FFFFFFFFFFFF830, 0x0FFFFFFFFFFFF860) = 0
> _sigaction(36, 0x0FFFFFFFFFFFF830, 0x0FFFFFFFFFFFF860) = 0
> _sigaction(39, 0x0FFFFFFFFFFFF830, 0x0FFFFFFFFFFFF860) = 0
> open("/unix", O_RDONLY|O_LARGEFILE) = 3
> kioctl(3, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
> kioctl(3, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
> kread(3, "01 鱘005 I ?aE6\0\0\0\0".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 13942134, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 1\0\0\0\004".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15041308, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " _ _ m u l h\0 _ _ m u l".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 13942170, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 180\0\0\0\v".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 XF1B8\0\0028E".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 XF5 H\0\0\tE6".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 XF8D8\0\0028E".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 X ?h\0\00F12".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 XFFF8\0\0028E".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y0388\0\0149F".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y0718\0\0028E".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y\n ╘0\0028E".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y0E 8\0\019AC".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y11C8\0\01E <".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y15 X\0\0 " W".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y18 鑌0\0 '99".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y1C x\0\0 -C0".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y \b\0\0 196".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y #98\0\0 818".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y ' (\0\0 ? V".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y *B8\0\003 s".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y . H\0\0028E".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y 1D8\0\0 E ?.., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y93 ╘0\0 L17".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y97 `\0\0 NC3".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y9AF0\0\003 s".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y9E80\0\0 S1D".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 YA210\0\0028E".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 YA5A0\0\0 Y w".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 YA9 0\0\003 s".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 YACC0\0\0 c\b".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 Y ?P\0\0 g v".., 4096) = 4096
> klseek(3, 8, 1, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\001 YB3 郳0\0 j89".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15066825, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " p i n n e d _ p r _ s t".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14062374, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0 UC0\0\0\0 cCF".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15061663, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " n o n p r i v _ p a g e".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14062644, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 0\0\0\0 l\0".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15068952, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " g _ c o p y r\0 . m u l".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14062680, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 1\0\0\0 l\b".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15044407, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " c m p _ s w a p _ i n d".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14063184, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 4C0\0\004 ?.., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15042495, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " g _ k s r v a l\0 d s i".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14063220, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 4C8\0\0 L I".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15060833, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " T r c o n f l a g\0 h _".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14063256, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 4 郳0\0\r07".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15044639, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " _ s y s t e m _ c o n f".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14063292, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 5DC\0\0\f >".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15044438, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " u t r c h o o k _ s c _".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14063328, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 5 郳0\018E4".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15061712, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " _ s y s t e m _ T B _ c".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14063400, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 6\b\0\018 ?.., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15047672, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " t o d\0 _ _ e x t e n s".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14063436, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 618\0\0 U07".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15063071, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " t b _ t i c s _ p e r _".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14063472, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 6 \0\0 U17".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15069014, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " _ c l e a r _ l o c k _".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14063544, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 6 H\0\00E ?.., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15045124, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " A R M _ T r c o n f l a".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14063580, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 6 P\0\0\r ,".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15044676, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " s v c _ i n s t r u c t".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14063616, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 6 P\0\0\fF5".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15044621, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " s v c 6 4 _ i n s t r u".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14063652, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 7\0\0\0 l _".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15069047, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " . s v c _ i n s t r\0 s".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14063688, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 71C\0\0 l j".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15061484, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " . s y s _ c a l l _ r e".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14063940, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 8 0\0\0 lDD".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15069173, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " s c _ t r a c e _ e n d".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14063976, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 8 P\0\0 lF0".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15042859, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " v r s a v e _ p a t c h".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14064336, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 =A0\0\0 m95".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5D0) = 0
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 15069357, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, " c s c _ r e t _ h _ p u".., 4096) = 4096
> klseek(3, 0, 1, 0x0FFFFFFFFFFFE5B0) = 0
> klseek(3, 14064372, 0, 0x0FFFFFFFFFFFE5B0) = 0
> kread(3, "\0\0\0\0\0\0 > (\0\0 mAA".., 4096) = 4096
> close(3) = 0
> _getpid() = 892998
> accessx("./wrapper", 0, 0) = 0
> statx(".", 0x0FFFFFFFFFFFD6D0, 176, 0) = 0
> open(".", O_RDONLY) = 3
> getdirent64(3, 0x0000000110012130, 4096) = 144
> klseek(3, 0, 0, 0x0FFFFFFFFFFFD5D0) = 0
> kfcntl(3, F_GETFD, 0x000000011000A810) = 0
> kfcntl(3, F_SETFD, 0x0000000000000001) = 0
> close(3) = 0
> statx("/", 0x0FFFFFFFFFFFD8F0, 176, 020) = 0
> statx("./", 0x0FFFFFFFFFFFD8F0, 176, 020) = 0
> statx("./../", 0x0FFFFFFFFFFFD6D0, 176, 0) = 0
> open("./../", O_RDONLY) = 3
> getdirent64(3, 0x0000000110012130, 4096) = 272
> klseek(3, 0, 0, 0x0FFFFFFFFFFFD5D0) = 0
> kfcntl(3, F_GETFD, 0x000000011000A810) = 0
> kfcntl(3, F_SETFD, 0x0000000000000001) = 0
> fstatx(3, 0x0FFFFFFFFFFFD8F0, 176, 020) = 0
> getdirent64(3, 0x0000000110012130, 4096) = 272
> close(3) = 0
> statx("./../../", 0x0FFFFFFFFFFFD6D0, 176, 0) = 0
> open("./../../", O_RDONLY) = 3
> getdirent64(3, 0x0000000110012130, 4096) = 1024
> klseek(3, 0, 0, 0x0FFFFFFFFFFFD5D0) = 0
> kfcntl(3, F_GETFD, 0x000000011000A810) = 0
> kfcntl(3, F_SETFD, 0x0000000000000001) = 0
> fstatx(3, 0x0FFFFFFFFFFFD8F0, 176, 020) = 0
> getdirent64(3, 0x0000000110012130, 4096) = 1024
> close(3) = 0
> statx("./../../../", 0x0FFFFFFFFFFFD6D0, 176, 0) Err#13 EACCES
> kioctl(1, 22528, 0x0000000000000000, 0x0000000000000000) = 0
> FATAL | wrapper | Unable to get the path for './wrapper'-Permission denied
> kwrite(1, " F A T A L | w r a".., 77) = 77
> umask(18) = 18
> open("wrapper.log", O_WRONLY|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR|
> S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) = 3
> klseek(3, 0, 2, 0x0FFFFFFFFFFFF270) = 0
> kioctl(3, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
> umask(18) = 18
> kioctl(3, 22528, 0x0000000000000000, 0x0000000000000000) Err#25 ENOTTY
> kfcntl(1, F_GETFL, 0x000000001017D0F1) = 67110914
> kfcntl(2, F_GETFL, 0x000000001017D0F1) = 67110914
> kwrite(3, " F A T A L | w r a".., 99) = 99
> _exit(1)
> dnserv1:/4A/wrapper-aix-ppc-64-3.4.0/bin>
>
>
> 2010-03-24
>
> ______________________________________________________________________
> cowrie
>
> ______________________________________________________________________
> 发件人: Christian
> 发送时间: 2010-03-24 11:33:37
> 收件人: wra...@li...
> 抄送:
> 主题: Re: [Wrapper-user] why wrapper Unable to get the path for ...
>
>
> the error message "Unable to get the path for './wrapper ...." actually
> comes from a failed realpath(.. , ..) call.
>
> realpath is a function to translate a relative path to an absolute one.
>
> This means that one of the subfolder the wrapper is located can not be
> accessed.
> Please verify /4A (is this a link?) and /4A/wrapper-aix-ppc-64-3.4.4 can
> be accessed by the currently logged on user, i.e. he should have at
> least "r-x" rights.
>
> if this is not helping, can you please try running "truss" and send us
> the output.
>
> > truss ./wrapper
>
> Best regards,
> Christian
>
>
> On Wed, 2010-03-24 at 08:43 +0800, 赵才文 wrote:
> > hi,thanks for your reply, I run the command ,and this is the output
> > --------------------------------------------------------------------
> > dnserv1:/4A/wrapper-aix-ppc-64-3.4.0/bin>ls -la
> > total 768
> > drwxr-xr-x 2 foura 4A 256 3月20 21时18 .
> > drwxr-xr-x 9 foura 4A 256 3月15 15时44 ..
> > -rwxr-xr-x 1 foura 4A 41613 3月15 15时
> 44 testwrapper
> > -rwxr-xr-x 1 foura 4A 343003 3月15 15时44 wrapper
> > -rw-r--r-- 1 foura 4A 407 3月20 22时
> 03 wrapper.log
> > dnserv1:/4A/wrapper-aix-ppc-64-3.4.0/bin>cat wrapper.log
> > FATAL | wrapper | 2010/03/20 21:18:29 | Unable to get the path for './wrapper'-Permission denied
> > FATAL | wrapper | 2010/03/20 21:19:13 | Unable to resolve the original working directory: Permission denied
> > FATAL | wrapper | 2010/03/20 21:22:27 | Unable to get the path for './wrapper'-Permission denied
> > FATAL | wrapper | 2010/03/20 22:03:20 | Unable to get the path for './wrapper'-Permission denied
> >
> >
> > 2010-03-24
> >
> > ______________________________________________________________________
> > cowrie
> >
> > ______________________________________________________________________
> > 发件人: Leif Mortenson
> > 发送时间: 2010-03-22 12:54:11
> > 收件人: wra...@li...
> > 抄送:
> > 主题: Re: [Wrapper-user] why wrapper Unable to get the path for ...
> >
> > Most likely this is a permissions problem on the wrapper file or one
> > of its parent directories.
> >
> > The Wrapper does not do anything special to resolve the path of the
> > wrapper file, it is making system call which is failing with the
> > system error: "Permission Denied".
> >
> > What do you get when you run "ls -al" on the bin directory as the user
> > you are attempting to run as?
> >
> > Cheers,
> > Leif
> >
> > 2010/3/22 cowrie
> >
> > I download a brand-new aix wrapper community version,and chmod +x ./wrapper ,and then execute the wrapper like this:
> >
> >
> > dnserv1:/4A/wrapper-aix-ppc-64-3.4.0/bin>./wrapper
> > FATAL | wrapper | Unable to get the path for './wrapper'-Permission denied
> >
> >
> > but if I changed to use "root" user, wrapper works ok, when I change back to a normal user, the fatal error occured. why ?
> >
> > any help is appreciated!
> >
> > 2010-03-22
> >
> > ______________________________________________________________
> > cowrie
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Download Intel® Parallel Studio Eval
> > Try the new software tools for yourself. Speed compiling, find bugs
> > proactively, and fine-tune applications for parallel performance.
> > See why Intel Parallel Studio got high marks during beta.
> > http://p.sf.net/sfu/intel-sw-dev
> > _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
|