LINUX 1. With the command ____ the owner is given permission to execute the file
ID: 647193 • Letter: L
Question
LINUX
1. With the command ____ the owner is given permission to execute the file.
a. chmod u=rwx
b. chmod +x
c. chmod g=rw
d. chmod u=rw
2. All files, except device and process files consists of 2 componets - inode and data blocks.
a. True
b. False
3.File permissions are stored in the file's inode.
a. True
b. False
4.File permissions are stored in octal format
a. True
b. False
5.If you want a user to be able to use a program, such as ping, that requires root permissions,but don't want to give the user full root permissions what permission should you add the the program file?
a. suid
b. sgid
c. sticky bit
d. execute
6. The command chmod 317 file1 will produce which of the following lines in the ls -l display?
a. ???--w-r--xrwx 1 tech tech 0 2011-02-25 12:53 file1
b. ?-rwxrw-rw- 1 tech tech 0 2011-02-25 12:53 file1
c. ?-rwx--x-wx 1 tech tech 0 2011-02-25 12:53 file1
d. ?--wx--xrwx 1 tech tech 0 2011-02-25 12:53 file1
7.Which of the following commands will change the user ownership and group ownership of file1 to tech and root respectively?
a. chown user1 : root file1
b. chgrp user1 : root file1
c. chown user1 & root file1
d. chown user1:root file1
e. None of the above, because the user and group ownership properites of a file must be modified separately.
8. A file has the following permissions r----x-w-
The command chmod 143 file1 will have the same effect as the command ________________
a. chmod u+x-r,g+r-x, o+w file1
b. chmod u=w.g=rw,o=rx file1
c. chmod u-r-w,g+r-w,o+r-x file1
d. chmod u=x,g=r,o=wx file1
e. chmod u+w,g+r-w,o+r-x file1
f. chmod u=rw,g=r,o=r file1
Explanation / Answer
1) b. chmod +x
2 . a. True
3 a. True
4. True
5 . b. sgid
6 . d. ?--wx--xrwx 1 tech tech 0 2011-02-25 12:53 file1
7 a. chown user1 : root file1
8. d. chmod u=x,g=r,o=wx file1
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.