AIX topas命令修复

今天突然发现topas命令无法使用

# topas
ksh: topas: 0403-006 Execute permission denied.

返回结果简单粗暴,果断加权限

#cd /usr/bin
# ls -al topas
---------- 1 root system 738532 May 19 2007 topas
# chmod +x topas
# topas
Topas Monitor for host: p590-3 EVENTS/QUEUES FILE/TTY
Wed Aug 21 22:25:49 2019 Interval: 2 Cswitch Readch
Syscall Writech
Kernel | | Reads Rawin
User | | Writes Ttyout
Wait | | Forks Igets
Idle | | Execs Namei
Runqueue Dirblk
Network KBPS I-Pack O-Pack KB-In KB-Out Waitqueue
PAGING MEMORY
Faults Real,MB
Disk Busy% KBPS TPS KB-Read KB-Writ Steals % Comp
......

顺利执行
切换账户执行:

# su ora10g
$ topas
exec(): 0509-036 Cannot load program topas because of the following errors:
0509-150 Dependent module /usr/lib/libSpmi.a(spmishr.o) could not be loaded.
0509-022 Cannot load module /usr/lib/libSpmi.a(spmishr.o).
0509-026 System error: The file access permissions do not allow the specified action.
$ ls -al /usr/lib/libSpmi.a
---------- 1 bin system 357763 May 10 2007 /usr/lib/libSpmi.a
$ su root
root's Password:
# chmod 755 /usr/lib/libSpmi.a
# ls -al /usr/lib/libSpmi.a
-rwxr-xr-x 1 bin system 357763 May 10 2007 /usr/lib/libSpmi.a
# su ora10g
$ topas
Topas Monitor for host: p590-3 EVENTS/QUEUES FILE/TTY
Wed Aug 21 22:38:39 2019 Interval: 2 Cswitch Readch
Syscall Writech
Kernel | | Reads Rawin
User | | Writes Ttyout
Wait | | Forks Igets
Idle | | Execs Namei
Runqueue Dirblk
......

不明白为什么权限会乱…

© 版权声明
THE END
喜欢就支持一下吧
点赞0赞赏 分享
相关推荐
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容