THE FOLLOWING EXAM OBJECTIVES ARE COVERED IN THIS CHAPTER:
You need to enable the web server (running as the www-data user and group) to write into a directory called /home/webfiles. Which commands will accomplish this task in the most secure manner? Which of the following will execute a job through cron at 12:15 a.m. and 12:15 p.m. every day? Which file is used to indicate the local time zone on a Linux server? When importing entries into the LDAP database using ldapadd -f <filename>, in which format should the file be? Which of the following commands removes an expiration from an account? Within which directory will you find files related to the time zone for various regions? Which of the following commands schedules a series of commands to execute 1 hour from now? You need to delete a user from the system, including their home directory. Which of the following commands accomplishes this task? Which file contains a list of usernames, UIDs, and encrypted passwords? Which job scheduler should you use if the computer on which you need to schedule the job is powered down at various times? Which of the following commands provides the current date and time in a format of seconds since the epoch? Which option to the iconv command shows the available character sets on a given system? Which environment variable controls the format of dates and times, such as a 12-hour or 24-hour formatted clock? Which command is recommended for configuration of slapd for OpenLDAP versions 2.3 and later? Which shortcut within cron enables running of a task every day at midnight? Which of the following encoding provides a multibyte representation of characters? Which of the following commands changes a group called DomainAdmins to DomainUsers? Which file stores group information on a Linux server? Which command can be used to create an LDIF file from the current LDAP database? You are looking for a scheduled job that is not found in /etc/crontab, through systemd timers, or within /var/spool/cron. What is another location in which the scheduled job might be stored? You need to determine if LDAP integration is working correctly. In order to do so, you would like to obtain a list of users, as read by /etc/nsswitch.conf. Which command can be used for this purpose? What is the name of the configuration file that contains information about group and user addition, such as the maximum and minimum user and group IDs, to be used when adding users and groups? Which environment variable is used for localization related to measurement units such as metric? Which of the following lines added to .profile in a user’s home directory will set their time zone to Central time? Within which directory will you find scripts that are scheduled to run through cron every 24 hours? Which of the following values for the LANG variable will configure the system to bypass locale translations where possible? When running useradd, which option needs to be specified in order for the user’s home directory to be created? Which of the following commands locks out password-based login for a user but does not prevent other forms of login? If you need to temporarily reconfigure all locale variables and settings for a given session, which environment variable can be used? Which of the following will run a command called /usr/local/bin/changehome.sh as the www-data user when placed in /etc/crontab? Which of the following commands produces a report listing the last password change date for all users on the system? Assume that passwords must be changed every 60 days. Which command will change the date of the user’s last password change without the user actually changing the account password? Which of the following files is used by anacron for reading configuration information related to jobs? Which of the following commands is used to add entries to the OpenLDAP database? Which file contains a list of users who are not allowed to create cron scheduled tasks? You are viewing the /etc/passwd file and see a * where the password should be. What does the presence of a * indicate within the password file? Which of the following best describes the relationship between UIDs and GIDs on a Linux system? Which of the following commands is used to re-create indexes based on existing slapd databases? Which command is used to change a user’s home directory to /srv/data/username and move the contents at the same time? Which option to useradd will add groups for a user? Which command will list the cron entries for a given user as denoted by <username>? Which option to useradd creates a system user rather than a normal user? Which file contains encrypted password information for groups? Which of the following commands can be used to help with recovery of a corrupted OpenLDAP database? Which of the following best describes the use of the groupdel command? Which of the following commands displays the UID, primary group, and supplemental groups for a given user? Which option to the usermod command is used to change a given user’s real name? Assume that you have deleted a user account with UID 1501, including the -r option. Which command should you also run to look for other files that might have been owned by the user? On which port does the slapd LDAP daemon listen for connections? Which of the following commands will set the systemwide time zone to America/Los_Angeles? Which locale-related variable is used for currency-related localization? Which option to systemd-run adds a timed event? Which file is used to provide a list of users who can add and delete cron jobs? Which debug level for slapd is used to provide debugging of configuration file processing? Which command deletes an at job with an ID of 3? Which command on a Debian-based system can be used to change the time zone using the package-based tools? What will be logged with the loglevel set to 0x10 in a slapd.conf configuration file? Within which directory should you place files in order for the files to be copied to a user’s home directory when the user is created? Which command displays a list of jobs currently scheduled with at? On which port does LDAP over SSL listen for connections? Which scheduler can be used to schedule a command to run once at a certain time? Which file provides a list of users who are allowed to create at jobs? Which file extension is used for systemd timer units? Within which directory would you find a list of files corresponding to the users who have current cron jobs on the system? When using slapadd for a large import, an error occurs at roughly 90 percent completion. Which option to slapadd enables specification of a line number from which the import will be restarted? Which argument to the locale command displays currently available locales for a given system? Which option to timedatectl sets the system clock? Which option to the file command displays information on the MIME type of the file being interrogated? Which environment variable is used to set the paper size? Which of the following is used as a systemwide cron file? Which command can be used to view the available timezones on a system and obtain output that can be used in scripts for setting the time zone? Which option within a systemd timer unit will start a timer 90 minutes after boot? Which abbreviation is another name for information like the user’s full name, telephone number, and other contact information found in /etc/passwd? Which option to the groupadd command specifies the GID for the group? When working with systemd timer units, which option to systemctl displays the active timers? Which shortcut to the OnCalendar systemd timer function indicates that the timer unit should run once a week? Which option to the crontab command removes the current crontab? Which variable in /etc/default/useradd controls the location of the skeleton home directory? Which option to getent enumerates the password database for a given system? Which directory contains the jobs scheduled with at? Which variable in /etc/login.defs controls the minimum group ID to use on the system? Which variable in /etc/login.defs contains the location of a user’s email directory for use by programs such as userdel? Which file contains user information such as username and real name and is readable by all users of the system? Which shortcut can be used to indicate that a cron job should be executed on restart? Which option to groupadd specifies that the group will be a system group? Within which directory are databases stored for OpenLDAP? When listing systemd timer units, which option to list-timers shows both active and inactive units? Which file provides a list of users who are not allowed to create at jobs?