Prev: Growing a FS
Next: cpu_acpi: _PSS package not found.
From: Michael Schmarck on 25 Sep 2008 13:10 Hi! On http://www.sun.com/training/certification/assessment/100.jsp, they've got the following: 8. Given: $ ls -ld dir2 drwxr-xr-x 2 user2 other 512 Sep 8 15:30 dir2 $ cp file1 ../dir2 is executed. Which is a TRUE statement about the result of this command? a) file1 will be copied into dir2, and overwrite file1 if it exists. b) The command will fail as you have not supplied a filename in the second argument. c) file1 will not be copied into dir2 if a file called file1 exists. d) The command will fail, you cannot use relative pathnames with the copy command. What's the correct answer, please? IMO none of the given answers is correct. But maybe they want to hear (a)? But (a) isn't correct either, because the cp copies file1 into "dir2" of the parent directory. 21. The user user3 needs to have read and write access to the project file in your home directory. Which command would give user3 the required access to the file? a) setfacl -u=user3 -p=rw- -m=rw- project b) setfacl p=rw-:user3:m=rw- project c) setfacl u:user3,p=rw-,m=rw- project d) setfacl -m u:user3:rw-,m:rw- project What's the correct answer here? I would've said (d), but: --($ /tmp/u/dir2)-- setfacl -m u:user3:rw-,m:rw- project There is more than one mask entry -- error found at entry index 5 aclcnt 6, file project Is that an error on my system? --($ /tmp/u/dir2)-- ls -la total 16 drwxrwxr-- 2 mike staff 181 Sep 25 18:57 . drwxr-xr-x 4 mike staff 478 Sep 25 18:57 .. -rw-rw-r-- 1 mike staff 0 Sep 25 18:57 project Cheers, Michael
|
Pages: 1 Prev: Growing a FS Next: cpu_acpi: _PSS package not found. |