ExamGecko
Home / LPI / 102-500
Ask Question

LPI 102-500 Practice Test - Questions Answers, Page 6

Question list
Search

Question 51

Report
Export
Collapse

Which of the following fields are available in both the global /etc/crontab file as well as in userspecific crontab files? (Select TWO correct answers)

Year
Year
Minute
Minute
Username
Username
Command
Command
Suggested answer: B, D
asked 18/09/2024
Slavomir Ugrevic
36 questions

Question 52

Report
Export
Collapse

Which command can be used to delete a group from a Linux system?

groupdel
groupdel
groupmod
groupmod
groups
groups
groupedit
groupedit
Suggested answer: A
asked 18/09/2024
Daniela Const
38 questions

Question 53

Report
Export
Collapse

What is the purpose of the iconv command?

It converts bitmap images from one format to another such as PNG to JPEG.
It converts bitmap images from one format to another such as PNG to JPEG.
It verifies that the root directory tree complies to all conventions from the Filesystem Hierarchy Standard (FHS).
It verifies that the root directory tree complies to all conventions from the Filesystem Hierarchy Standard (FHS).
It displays additional meta information from icon files ending in .ico.
It displays additional meta information from icon files ending in .ico.
It changes the mode of an inode in the ext4 file system.
It changes the mode of an inode in the ext4 file system.
It converts files from one character encoding to another.
It converts files from one character encoding to another.
Suggested answer: E
asked 18/09/2024
Bahman Talachian
27 questions

Question 54

Report
Export
Collapse

In case neither cron.allow nor cron.deny exist in /etc/, which of the following is true?

Without additional configuration, no users may have user specific crontabs.
Without additional configuration, no users may have user specific crontabs.
Without additional configuration, all users may have user specific crontabs.
Without additional configuration, all users may have user specific crontabs.
The cron daemon will refuse to start and report missing files in the system's logfile.
The cron daemon will refuse to start and report missing files in the system's logfile.
When a user creates a user specific crontab the system administrator must approve it explicitly.
When a user creates a user specific crontab the system administrator must approve it explicitly.
Suggested answer: B

Explanation:

The /etc/cron.allow and /etc/cron.deny files are used to control access to the crontabcommand and cron jobs for individual users.If neither of these files exists, then depending onsite-dependent configuration parameters, only the superuser (root user) will be allowed to usethis command, or all users will be able to use this command1.The default behavior of mostLinux distributions is to allow all users to use the crontab command and have user specificcrontabs if neither /etc/cron.allow nor /etc/cron.deny exists23. Therefore, option B is thecorrect answer. The other options are not true because:Option A is false because it contradicts the default behavior of most Linux distributions.Option C is false because the cron daemon will not refuse to start or report missing files in thesystem's logfile if neither /etc/cron.allow nor /etc/cron.deny exists.The cron daemon will start
normally and use the default configuration parameters1.Option D is false because the system administrator does not need to approve user specificcrontabs explicitly.The user can create, edit, display, or remove their own crontab files withoutany intervention from the system administrator1.Reference:How cron.allow and cron.deny can be used to limit access to crontab for a particular user | TheGeek Searchcrontab(1) --- cron --- Debian bullseye --- Debian ManpagesControlling Access to crontab (System Administration Guide: Basic Administration) - Oracle/etc/cron.allow - Linux Bash Shell Scripting Tutorial Wiki - nixCraft

asked 18/09/2024
Sydney Taing
33 questions

Question 55

Report
Export
Collapse

Which of the following commands can remove a user from a group?

grouprm
grouprm
groupmod
groupmod
passwd
passwd
usergroups
usergroups
usermod
usermod
Suggested answer: E
asked 18/09/2024
Test Test
25 questions

Question 56

Report
Export
Collapse

Where are user specific crontabs stored?

In the database file /etc/crontab.db which is shared by all users.
In the database file /etc/crontab.db which is shared by all users.
As individual per-user files within /var/spool/cron.
As individual per-user files within /var/spool/cron.
As individual per-user files in /etc/cron.user.d.
As individual per-user files in /etc/cron.user.d.
In the .crontab file in the user's home directory.
In the .crontab file in the user's home directory.
In the file /var/cron/user-crontab which is shared by all users.
In the file /var/cron/user-crontab which is shared by all users.
Suggested answer: B
asked 18/09/2024
Veridjan Hoxha
36 questions

Question 57

Report
Export
Collapse

Which file contains the date of the last change of a user's password?

/etc/gshadow
/etc/gshadow
/etc/passwd
/etc/passwd
/etc/pwdlog
/etc/pwdlog
/etc/shadow
/etc/shadow
/var/log/shadow
/var/log/shadow
Suggested answer: D
asked 18/09/2024
Fabio Valenti
38 questions

Question 58

Report
Export
Collapse

Which environment variable should be set in order to change the time zone for the commands run from within the environment variable's scope? (Specify the variable name only.)

TZ
TZ
Suggested answer: A
asked 18/09/2024
Ray Hampson II
34 questions

Question 59

Report
Export
Collapse

Each entry in a crontab must end with what character?

Tab
Tab
Space
Space
Backslash
Backslash
Newline
Newline
Suggested answer: D
asked 18/09/2024
Eduardo Messias Andrade e Oliveira
35 questions

Question 60

Report
Export
Collapse

To prevent a specific user from scheduling tasks with at, what should the administrator do?

Add the specific user to /etc/at.allow file.
Add the specific user to /etc/at.allow file.
Add the specific user to [deny] section in the /etc/atd.conf file.
Add the specific user to [deny] section in the /etc/atd.conf file.
Add the specific user to /etc/at.deny file.
Add the specific user to /etc/at.deny file.
Add the specific user to nojobs group.
Add the specific user to nojobs group.
Run the following: atd --deny [user].
Run the following: atd --deny [user].
Suggested answer: C
asked 18/09/2024
Robert Smith
36 questions
Total 235 questions
Go to page: of 24