A. 237 B. 110 C. 440 D. 220 E. 446 D

A. 237 B. 110 C. 440 D. 220 E. 446 D

134 M/C Questions -1- 1 Minute Per Question 134 M/C Questions -2- 1 Minute Per Question 5. User bob is in groups bg1 and bg2.User pat is in group pgg. PRINT Name: dr-x-wx--- 2 pat bg1 60 Jan 1 1:00 foo -rwxrwxr-x 1 pat ted 0Jan 1 1:00 foo/bar Test Version: 774 One-Answer Multiple Choice 134 Questions − 40 of 40% a. bob can create a newfile in the directory ☞ Read all the words of these instructions and both sides (back and front) of all pages. b. pat can create a newfile in the directory ☞ Put your Name on this Question Sheet. Youmay write or drawonthis Question Sheet. c. bob can list names in the directory ☞ Use your full, unabbreviated name on the mark-sense form. Do not abbreviate your name. d. bob can access and write on the file ☞ Put the three-digit Test Version above into both NO. OF QUESTIONS and NO. OF STUDENTS e. pat can rename the file ☞ Fill in the bubbles with pencil only,nopen. Enter your NAME, Test Version, and answers. ☞ Manage your time. Answer questions you know, first. One Answer per question. 6. Giventhe following, can user bird in group sesame copy ./foo to bar? drwxrw-r-x 2 root sesame 4096 Oct 7 14:00 . -rwx-wx-wx 1 bird sesame 123 Oct 4 14:05 foo 1. User bob is in groups bg1 and bg2.User pat is in group pgg. a. No, because the directory is not accessible to bird d-wx---rw- 2 bob ted 60 Jan 1 1:00 foo b. No, because the directory has no write permissions for others ----rwxrwx 1 bob bg2 0Jan 1 1:00 foo/bar c. No, because foo has no read permissions for bird a. pat can rename the file d. Yes, because bird has write permissions on foo b. pat can access and write on the file e. Yes; permissions don’tapply because bird owns foo c. bob can access and write on the file 7. In an empty directory,what is output on your screen by: d. bob can list names in the directory mkdir -p a/b/c 1/2/3 ; mv a/b 1/2/3 ; find . -name c e. bob can create a newfile in the directory a. ./1/2/3/c b. ./1/2/3/b/c c. ./1/2/a/b 2. What permissions are givento newdir after this command line: d. ./a/b/c e. ./1/2/3/a/b umask 156 ; mkdir newdir 8. What value umask givesanew file permissions r--r-----? a. r-x--x--- b. rw--w---- c. rw--w---x a. 237 b. 110 c. 440 d. 220 e. 446 d. r-x-w-rw- e. --xr-xrw- 9. Giventhe following, can user bird in group sesame copy ./foo to bar? 3. Giventhis successful command line (note the dot argument): drwx-wx--x 2 root sesame 4096 Oct 7 14:00 . cd /tmp ; mkdir dir ; cd dir ; chmod u-x . --wxrwxrwx 1 bird sesame 123 Oct 4 14:05 foo Which next command will execute without any"permission denied" errors? a. No, because the directory is not readable by bird a. ls . b. ls /tmp/dir/.. b. No, because foo has no read permissions for bird c. ls /tmp/dir d. ls /tmp/dir/. c. Yes, because bird has write permissions on foo e. ls .. d. Yes; permissions don’tapply because bird owns foo 4. Giventhe following, can user bird in group sesame rename ./foo to bar? e. No, because the directory has no write permissions for bird d----wx--- 2 root sesame 4096 Oct 7 14:00 . 10. Giventhe following, can user bird in group sesame append to ./foo? ---------- 1 bird sesame 123 Oct 4 14:05 foo dr-xr-xr-x 2 root sesame 4096 Oct 7 14:00 . a. Yes, because bird’s group matches the group writable directory -r-xrwxrwx 1 bird sesame 123 Oct 4 14:05 foo b. Yes; permissions don’tapply because bird owns foo a. No, because bird has no write permissions on foo c. No, because the directory has no permissions for other users b. No, because bird has no write permission on the directory d. No, because bird has no permissions on foo c. No, because execute permissions are not set for bird on foo e. No, because bird cannot read the directory d. Yes; permissions don’tapply because bird owns foo e. No, because the directory is not accessible to bird CST 8207 −Fall 2015 − Practice Test #3A − 40% Ian! D. Allen 1Minute Per Question CST 8207 −Fall 2015 − Practice Test #3A − 40% Ian! D. Allen 1Minute Per Question 134 M/C Questions -3- 1 Minute Per Question 134 M/C Questions -4- 1 Minute Per Question 11. User bob is in groups bg1 and bg2.User pat is in group pgg. 17. Giventhe following, can user bird in group sesame append to ./foo? d-w-rw---x 2 bob ted 60 Jan 1 1:00 foo dr-xr-xr-x 2 root sesame 4096 Oct 7 14:00 . --w-rwxrwx 1 pat bg1 0Jan 1 1:00 foo/bar -rw-r-xr-x 1 bird sesame 123 Oct 4 14:05 foo a. bob can list names in the directory a. No, because the directory is not accessible to bird b. pat can rename the file b. Yes, because bird has write permissions on foo c. bob can access and write on the file c. No, because execute permissions are not set for bird on foo d. bob can create a newfile in the directory d. No, because bird has no write permission on the directory e. pat can access and write on the file e. Yes; permissions don’tapply because bird owns foo 12. Dereference the following symlink bar into its equivalent absolute path: 18. Process signals in increasing order of strength: ln -s ../b/../../a/../foo /tmp/a/b/bar a. TERM HUP KILL b. KILL HUP TERM a. /tmp/a/b/bar b. /tmp/foo c. /tmp/a/foo c. HUP KILL TERM d. HUP TERM KILL d. /tmp/b/foo e. /tmp/b/bar e. TERM KILL HUP 13. Can three different files have the same inode number on three different file systems? 19. User bob is in groups bg1 and bg2.User pat is in group pgg. a. no: inode numbers are unique across all file systems dr-xrwx-wx 2 pat pgg 60 Jan 1 1:00 foo b. yes: if the files are all names for the same inode -r-xrwxr-x 1 bob bg2 0Jan 1 1:00 foo/bar c. no: inode numbers only apply to directories, not files a. bob can access and write on the file d. yes: inode numbers are only unique inside a file system b. bob can list names in the directory e. no: you can’thav e inode numbers on three file systems c. pat can access and write on the file 14. Givenmydirectory dir and my file dir/bar owned by me, which permissions d. pat can rename the file allowmetoaccess and change or create newcontent (data) in the file dir/bar e. bob can create a newfile in the directory butnot delete the file? 20. Other than root,who can change the permissions of the following directory? a. Permissions 600 on directory dir and 700 on file dir/bar. dr-xrwxrwx 17 foo bar 4096 Apr 15 16:40 . b. Permissions 400 on directory dir and 400 on file dir/bar. a. only root can change the permissions c. Permissions 500 on directory dir and 600 on file dir/bar. b. user foo and anyuser in group bar d. Permissions 300 on directory dir and 200 on file dir/bar. c. anyone except user foo e. Permissions 100 on directory dir and 100 on file dir/bar. d. only user foo 15. Which command counts the number of Unix permission groups you are in? e. only users in group bar a. umask | wc b. echo groups | wc 21. Which command line belowdoes not showany lines from inside the file out? c. id | wc d. wc groups a. sort out b. wc out c. more out e. groups | wc d. head out e. tail out 16. A Unix/Linux "tarball" is: 22. User bob is in groups bg1 and bg2.User pat is in group pgg. a. amulti-file directory containing individual compressed files dr---wx--x 2 bob ted 60 Jan 1 1:00 foo b. asingle-file that contains individual compressed files -r-xrwxrwx 1 pat bg1 0Jan 1 1:00 foo/bar c. asingle compressed file containing one uncompressed file a. bob can create a newfile in the directory d. amulti-file directory containing individual uncompressed files b. pat can access and write on the file e. asingle-file that contains individual uncompressed files c. pat can rename the file d. bob can access and write on the file e. bob can list names in the directory 23. What minimal permissions must you have onadirectory to be able to execute successfully the command ls . from inside the directory? a. r-x b. --x c. rw- d. r-- e. -wx CST 8207 −Fall 2015 − Practice Test #3A − 40% Ian! D. Allen 1Minute Per Question CST 8207 −Fall 2015 − Practice Test #3A − 40% Ian! D. Allen 1Minute Per Question 134 M/C Questions -5- 1 Minute Per Question 134 M/C Questions -6- 1 Minute Per Question 24. User bob is in groups bg1 and bg2.User pat is in group pgg.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    11 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us