Chinaunix

标题: permission 的问题 [打印本页]

作者: stock99    时间: 2010-02-10 20:42
标题: permission 的问题
本帖最后由 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吗?
作者: suigetsui    时间: 2010-02-11 17:31
是不是drwxr-xr-T的原因?




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