Chinaunix

标题: 为什么root用户执行sar,vmstat等命令的权限是denied? [打印本页]

作者: 梧桐影    时间: 2007-08-30 13:22
标题: 为什么root用户执行sar,vmstat等命令的权限是denied?
安装完AIX5.2后,发现root用户执行sar,vmstat等命令的权限是denied:
# sar 2 2
sar: The file access permissions do not allow the specified action.
Versions of sadc and sar are inconsistent.
# vmstat 2 2
ksh: vmstat: 0403-006 Execute permission denied.
# iostat 2 2
ksh: iostat: 0403-006 Execute permission denied.


root 用户不是默认的超级用户吗,它默认是system,adm等组的啊,应该有执行的权限啊!?
为什么出现这种情况呢?

我把/usr/lib/sa/sadc的权限改为可执行后,sar命令能正常执行.
其他命令一个个更改权限倒是可以执行,现在就想不通为什么会这样呢.是否可以通过简便途径更改权限呢?
#ls -l /usr/lib/sa/sadc
----------   1 root     adm           13556 Aug 20 2003  /usr/lib/sa/sadc
加执行权限后为---------x



root用户的状态:
* User NAME                                           root
  User ID                                            [0]                                                                          #
  ADMINISTRATIVE USER?                                true                                                                       +
  Primary GROUP                                      [system]                                                                    +
  Group SET                                          [system,bin,sys,adm,security,cron,audit,lp]                                 +
  ADMINISTRATIVE GROUPS                              []                                                                          +
  ROLES                                              []                                                                          +
  Another user can SU TO USER?                        true                                                                       +
  SU GROUPS                                          [ALL]                                                                       +
  HOME directory                                     [/]
  Initial PROGRAM                                    [/usr/bin/ksh]
  User INFORMATION                                   []
  EXPIRATION date (MMDDhhmmyy)                       [0]
  Is this user ACCOUNT LOCKED?                        false                                                                      +
  User can LOGIN?                                     true                                                                       +
  User can LOGIN REMOTELY(rsh,tn,rlogin)?             true                                                                       +
  Allowed LOGIN TIMES                                []
  Number of FAILED LOGINS before                     [0]                                                                          #
       user account is locked
  Login AUTHENTICATION GRAMMAR                       [compat]

请各位高手点拨一下!是否可以通过简便途径更改权限呢?

[ 本帖最后由 梧桐影 于 2007-8-30 15:10 编辑 ]
作者: 梧桐影    时间: 2007-08-30 14:07
UP
作者: yddll    时间: 2007-08-30 14:09
安装介质有毛病吧
作者: 梧桐影    时间: 2007-08-30 14:25
不大可能吧,其他都没什么问题
作者: gududeng    时间: 2007-08-30 15:06
你在别的机器上用这个 也会失灵吗
作者: football2006    时间: 2007-08-30 15:18
我有时候偶尔也碰到了,要自己改一下权限
作者: 梧桐影    时间: 2007-08-30 15:21
原帖由 gududeng 于 2007-8-30 15:06 发表
你在别的机器上用这个 也会失灵吗



实验用机只有这么一个H85,安装5.2
还有一个是140只能装5.1
作者: gududeng    时间: 2007-08-30 15:32
装个5.1 看看是不是也这样
作者: chinadns    时间: 2007-08-30 20:37
安装盘有问题




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2