免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1553 | 回复: 1
打印 上一主题 下一主题

permission 的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-02-10 20:42 |只看该作者 |倒序浏览
本帖最后由 stock99 于 2010-02-10 21:28 编辑

175. You are logged into systemA and you issue these three commands:
$ id
uid=100(bill) gid=200(training)
$ ls -l /export/home
total 22
drwxr-xr-x 2 bill other 512 Jul 4 13:20 bill
drwx------ 2 root root 8192 Jun 20 12:27 lost+found
drwxr-xr-T 2 test1 training 512 Jul 5 10:39 test1
drwsr-xr-- 3 test2 training 512 Jul 5 17:19 test2
$ ls -l /export/home/test1
total 10
-rw-r--r-- 1 test1 training 136 Jul 4 17:19 local.cshrc
-rw-r--r-- 1 test1 training 157 Jul 4 17:19 local.login
TestInside 310-200
-rw-r--r-- 1 test1 training 174 Jul 4 17:19 local.profile
-rw-r--r-- 1 test1 training 15 Jul 4 17:19 loginfile
-rwxrwxr-- 1 test1 training 5 Jul 5 17:29 script1
Which two describe your access to the /export/home/test1 directory? (Choose two.)
A. You can delete files in this directory.
B. You can create files in this directory.
C. You can execute the file named script.
D. You can edit and save files in this directory.
E. You can create sub-directories in this directory.
F. You change permissions on files in this directory.
Answer: CD


不明白为啥D也是答案.  test1 不是 754吗? 怎可能改除了script1之外的档?




186. You have two users that are abusing the system by creating scripts that run periodically as cron jobs that
continuously harass other users. You have been instructed to disable cron for these two users.
Which three (what?) describe how to configure the server to block specific users from using cron? (Choose
three.)
A. Protect the crontab command so that only privileged users are allowed to run it.
B. Remove the /etc/cron.d/cron.allow file and add their names to /etc/cron.d/cron.deny
C. Remove the crontabs associated with each offending user in the /var/spool/cron/crontabs director.
D. Remove their names from the /etc/cron.d/cron.allow file and add their names to /etc/cron.d/cron.deny
E. Add their names to the /etc/cron.d/cron.deny file. It is not necessary to remove their names from the
/etc/cron.d/cron.allow file.
F. Remove their names from the /etc/cron.d/cron.allow file only. If the default /etc/cron.d/cron.deny exists, it
does not need to be changed.
Answer: BDF

为何E不行? 不是同时存在cron.allow & cron.deny时会被deny access吗?

论坛徽章:
0
2 [报告]
发表于 2010-02-11 17:31 |只看该作者
是不是drwxr-xr-T的原因?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP