Linux Test 4
Linux Test 4
users:
a. server,group,others
b. owner,server,others
c. owner,group,others
d. owner,group,secondary group
e. host,server,others
f. owner,others,world
g. no answer
What is the UID of the Linux account that has the full set of privileges in the Linux
operating system?
a. 1000
b. 1
c. 100
d. 0
e. no answer
a. 4653
b. 2644
c. 5733
d. 1433
e. 0755
f. no answer
A user issues the following commands:
Assuming that file f1 didn't previously exist and was created without any errors, what
will be its permissions?
a. rw-r---w-
b. rw-r---wx
c. rw-r-x-wx
d. rw--w----
e. rw-r-x-w-
f. rw--wxr--
g. no answer
a. -a
b. -c
c. -i
d. -p
e. -l
f. no answer
You try to copy a file, using the cp command, from a subdirectory into a directory for
which you have rwx permissions. Both source file and source subdirectory have the
permissions rw-r-xr--. You get a permission denied message. What would cause this
message to be displayed?
You would like to make sure that nobody outside yourself and your group can read
the file evil_plan.doc. You check the permissions and find that they are rwxr-xr--.
Which of the following commands should be used to allow only owner and group
access?
a) root account
b) system account
c) user account
1) an account that is used for interactive log in and has a limited set of privileges
2) an account that has the full set of privileges in the operating system
3) an account that is used for running services and is not allowed to log in interactivel
y
When using the chmod command to change permissions on a Linux file, the set of
permissions may be specified using the following modes: (choose two)
a. octal mode
b. decimal mode
c. symbolic mode
d. enhanced mode
e. hexadecimal mode
A directory listing displays rw-r----x user1 admin 580 Dec 11 12:45 resume.doc for
the file resume.doc. You are a member of the admin group and you are logged in
as user2. What permissions do you have for the file resume.doc?
a. read only
b. read and execute
c. none
d. write only
e. read and write
f. execute only
g. no answer
Which of the following commands will display the list of users that are currently
logged in on a Linux system?
a. who
b. last
c. lastlog
d. wc
e. no answer
Which of the folowing commands will create a new Linux user account with a
username of john having the home directory set to /users/john and the user id 504?
Which of the following files does NOT store user account or group data?
a. /etc/shadow
b. /etc/password
c. /etc/gshadow
d. /etc/group
e. /etc/passwd
f. no answer
You have issued the command chmod 775 file1 where file1 is a file in the current
directory. What will be the resulting permissions applied to file file1, as shown by
the ls -l command?
a. rwxr--r--
b. rwxrw-rw-
c. rw-rw-rw-
d. rwxrwxrwx
e. rwxrwxr-x
f. no answer
You get a permission denied message when trying to remove a file from the current
directory. What could be the reason?
a. you do not have the write permission on the parent directory of the current
directory
b. you do not have the write permission on the file
c. you do not have the read permission on the file
d. you do not have the execute permission on the file
e. you do not have the write permission on the current directory
f. no answer
Which of the following uniquely identifies a user in the Linux operating system?
a. PID
b. SID
c. GID
d. UID
e. no answer
Which of the following is NOT true about the su Linux command?
Which command gives the owner of the file script1.sh read, write and execute
permissions and also grants group permissions of read and execute?
Which of the following are special permissions that can be set on a Linux file?
(choose three)
a. sticky
b. read
c. setUID
d. write
e. setGID
f. execute