- 论坛徽章:
- 0
|
安装完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 编辑 ] |
|