UNIX 2-1
The execution of the umask command without argument: -Displays the current mask value -Fails and reports an error message, informing the user that he/she needs to pass a mask value as an argument to the command -Set mask to the default value 022 -All of the above -None of the above
Displays the current mask value
Why is issuing the command umask 000 a bad idea? -It prevents all users from using new files. -It removes permissions from new files. -It creates excess security for files that don't need it. -It permits all new directories and files to be read and changed by all users.
It permits all new directories and files to be read and changed by all users.
Which is not a manner of discovering a UNIX user's password? -Look it up in the password file. -Guess it. -Brute force through trial and error. -Obtain it from the user by asking.
Look it up in the password file.
After the chmod a-rw sample command has been executed: -Removes read and write permission for all Users except the owner -Adds read and write permission for all users -Nobody (except the superuser) can read or write sample -All of the above -None of the above
Nobody (except the superuser) can read or write sample
The command: chmod 75 sample : -Sets owners privileges for sample to read, write, and execute; group privileges to read and write; and takes away all privileges from others -Sets owners privileges for sample to read, write, and execute; group privileges to read and write; and privileges of others remain unchanged -Sets group privileges for sample to read, write, and execute; others privileges to read and write; and takes away privileges from the owner -All of the above -None of the above
None of the above
In the output of the ls - l sample command, the leftmost three letters indicate the: -Values of the SUID, SGID, and sticky bits for sample -Type of file and state of read and write privileges for the owner of sample -State of read, write, and execute permissions for the owner of sample -All of the above -None of the above
Type of file and state of read and write privileges for the owner of sample
If you want to set all three special access bits (SUID, SGID, and sticky) for the sample file and set the rest of its access bits to 754 with one command: -It is not possible -You need to execute the chmod 7754 sample command -You need to execute the chmod 7547 sample command -All of the above -None of the above
You need to execute the chmod 7754 sample command
A UNIX system administrator is: -commonly known as the superuser -has the login name of root. -has the user id of 0. -all of the above
all of the above
The root user has the authority to: -delete all user accounts (including management personnel) on the system without prior notification. -delete any file on the system including those, that if deleted, would make the system inoperable. -change or remove any password on the system without prior notification of the user. -all of the above -None of the above.
all of the above
A UNIX user's password: -is known to the user only (or those who get it from the user). -prevents others from accessing the user's files. -is stored in encrypted form in the system files. -all of the above.
all of the above.
The output of the command: ls -l produces information about each file in the working directory including: -file name, file size, and time. -file type, link count, and date. -owner and owner's group. -all of the above.
all of the above.
When a file is encrypted it: -becomes indecipherable even if access is granted to read it. -cannot be read by other users unless file permission is granted. -consumes a much larger amount of disk space. -is the best way to share a file with other users of the system.
becomes indecipherable even if access is granted to read it.
Which of the following commands will remove all access permissions to file sample for the group and others? -chmod go=rwx sample -chmod a-rw sample -chmod go= sample -chmod a= sample
chmod go= sample
For the file with the name: solid, which of the following is not a valid use of the chmod command? -chmod 777 solid -chmod ugo-rw solid -chmod a+x solid -chmod solid +read
chmod solid +read
UNIX provides three mechanisms to protect files. These mechanisms include: -access privileges, password protection, and restricted physical access. -encryption, restricted physical access, and virus protection software. -encryption, password protection, and access privileges. -encryption, spyware blocking software, and access privileges.
encryption, password protection, and access privileges.
When the _____________ is set for a program, the system tries to keep the executable code for the program in memory or the swap space after it finishes. -SUID bit -sticky bit -GUID bit -None of the above.
sticky bit
The set-user-ID bit (SUID) allows an executable file to: -contain the user's id. -be changed directly. -take on the privileges of the owner of the file when it executes. -All of the above.
take on the privileges of the owner of the file when it executes.
What command will allow a user to see the value of the bit mask used to set default file permissions for new files? -echo $MASK -set permissions -mask -umask
umask
What command allows a user to set the file access permissions for all new executable files and directories to read for all users with the owner given write and execute permissions as well? -umask 022 -umask 033 -chmod 744 * -chmod a+rw
umask 033
File access permissions are grouped into the categories: -user, group, and others. -owner, group, and root. -owner, others, and all. -none of the above.
user, group, and others.
If a UNIX system allows passwords to be made up of digits, lowercase and uppercase letters; and must contain at least 8 characters; how many possible passwords are possible? -62 to the power of 8 -100 million -1 billion -1 trillion
62 to the power of 8
A file whose owner has read, write, and execute permissions has file permissions equivalent to an octal value of: -7 -6 -5 -4
7
A permission value of 764 for the sample file means that: -Owner of sample can read, write, or execute sample -Users in owner s group can read or write sample -Everyone else can read sample -All of the above -None of the above
All of the above
After the chmod 600 sample command has been executed (where sample is a directory): -Access privileges for sample are set to read and write for the owner -Nobody other than the owner can perform any operations on sample -The cd sample command would report an error message, Permission denied (or something similar) -All of the above -None of the above
All of the above
UNIX users: -may be a member of a single group. -may belong to multiple groups -may be added or removed from groups only by the system administrator. -All of the above
All of the above
A file with the following permissions: -rwxr-xr-x -is readable by all users. -is writeable by the owner only. -is executable for other users. -All of the above.
All of the above.
The command: chmod 600 sample : -Sets others privileges to read and write -Takes away all privileges from the owner of sample -Takes away all privileges from the group users -All of the above -None of the above
Takes away all privileges from the group users
The main challenge of a time-sharing operating system is to: -protect the hardware and software resources in it. -fairly split time among users. -keep track of all users and processes. -all of the above.
protect the hardware and software resources in it.
For a directory, users granted read and execute permissions are allowed to: -write to the directory. -delete files in the directory. -execute files in the directory. -read the directory's contents.
read the directory's contents.
File access permissions include: -input/output, add/delete, and modify. -owner access, group access, and others. -read, write, and execute. -none of these.
read, write, and execute.
What types of files are candidates for having the execution access permissions set for users? -data files. -script files. -configuration files. -source files.
script files.
When a user is given execute permission for a directory, he/she may: -read the directory contents. -write files to the directory. -search it. -All of the above
search it.
What is the result of the following command? chmod 700 * -sets access privileges for all files to read, write, and execute for the owner. -removes access permissions for all users to files containing an asterisk. -adds read, write and execute permission for the owner. -All of the above.
sets access privileges for all files to read, write, and execute for the owner.