免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123
最近访问板块 发新帖
楼主: yuio654
打印 上一主题 下一主题

[故障求助] 比较奇怪的权限问题 [复制链接]

论坛徽章:
0
21 [报告]
发表于 2010-01-06 01:22 |只看该作者
对比NIS用户和其他用户的区别

论坛徽章:
0
22 [报告]
发表于 2010-01-08 13:27 |只看该作者
原帖由 yuio654 于 2010-1-4 16:02 发表



是啊,邪乎啦,就这个pwd有问题,也不是绝对的不能用,晕



邪乎么? 个人感觉就是权限问题啊
/>type pwd
此处应该告诉你是个shell 内建命令。不存在权限问题。实际上,你执行成功的pwd就是shell built-in,而不是文件。
/>which pwd
/usr/bin/pwd
/>ls -ld /usr/bin/pwd
/>ls -ld /usr/bin
/>ls -ld /usr
/>ls -dl l
/>getacl /usr/bin/pwd
/>getacl /usr/bin
/>getacl /usr


上述命令的结果贴上来看看?

论坛徽章:
0
23 [报告]
发表于 2010-01-15 15:28 |只看该作者
原帖由 ivhb 于 2010-1-8 13:27 发表



邪乎么? 个人感觉就是权限问题啊
/>type pwd
此处应该告诉你是个shell 内建命令。不存在权限问题。实际上,你执行成功的pwd就是shell built-in,而不是文件。
/>which pwd
/usr/bin/pwd
/>ls -ld / ...




% type pwd
pwd is a shell builtin.
% pwd
pwd: The file access permissions do not allow the specified action.
% ls -ld /usr/bin/pwd
-r-xr-xr-x    1 bin      bin            5458 May 10 2008  /usr/bin/pwd
% ls -ld /usr/bin
drwxr-xr-x    3 bin      bin           45056 Dec 08 05:07 /usr/bin
% ls -ld /usr
drwxr-xr-x   46 bin      bin            4096 Dec 08 04:33 /usr
% ls -dl l
ls: 0653-341 The file l does not exist.
% ls -dl l
ls: 0653-341 The file l does not exist.
% getacl /usr/bin/pwd
getacl: Command not found.
% aclget /usr/bin/pwd
*
* ACL_type   AIXC
*
attributes:
base permissions
    owner(bin):  r-x
    group(bin):  r-x
    others:  r-x
extended permissions
    disabled
% aclget /usr/bin
*
* ACL_type   AIXC
*
attributes:
base permissions
    owner(bin):  rwx
    group(bin):  r-x
    others:  r-x
extended permissions
    disabled
% aclget /usr
*
* ACL_type   AIXC
*
attributes:
base permissions
    owner(bin):  rwx
    group(bin):  r-x
    others:  r-x
extended permissions
    disabled
%
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP