ExamGecko
Home Home / LPI / 102-500

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

Question list
Search
Search

On a system using shadowed passwords, the most correct permissions for /etc/passwd are ___ and the most correct permissions for /etc/shadow are _________.

A.
-rw-r-----, -r--------
A.
-rw-r-----, -r--------
Answers
B.
-rw-r--r--, -r--r--r--
B.
-rw-r--r--, -r--r--r--
Answers
C.
-rw-r--r--, -r--------
C.
-rw-r--r--, -r--------
Answers
D.
-rw-r--rw-, -r-----r--
D.
-rw-r--rw-, -r-----r--
Answers
E.
-rw-------, -r--------
E.
-rw-------, -r--------
Answers
Suggested answer: C

A French user has installed the French language pack, but currencies are still being displayed with a leading '$' sign in his spreadsheets. What must be done to fix this?

A.
Alter the locale.
A.
Alter the locale.
Answers
B.
Set the timezone correctly.
B.
Set the timezone correctly.
Answers
C.
Edit /etc/currency.
C.
Edit /etc/currency.
Answers
D.
Reinstall the French language pack.
D.
Reinstall the French language pack.
Answers
Suggested answer: A

Which of the following can the chage command NOT change?

A.
The number of days since January 1, 1970 after which the user's account will no longer be accessible.
A.
The number of days since January 1, 1970 after which the user's account will no longer be accessible.
Answers
B.
The number of days since January 1, 1970 after which the password can change.
B.
The number of days since January 1, 1970 after which the password can change.
Answers
C.
The number of days since January 1, 1970 since the password was last changed.
C.
The number of days since January 1, 1970 since the password was last changed.
Answers
D.
The maximum number of days during which a password is valid.
D.
The maximum number of days during which a password is valid.
Answers
E.
The number of days of inactivity after a password has expired before the account is locked.
E.
The number of days of inactivity after a password has expired before the account is locked.
Answers
Suggested answer: B

What command will display the group names and GIDs to which a user belongs? (Provide only the command name with or without path information)

A.
id,/usr/bin/id
A.
id,/usr/bin/id
Answers
Suggested answer: A

Of the ways listed, which is the best method to temporarily suspend a user's ability to interactively login?

A.
Use passwd -d username to give the user an empty password.
A.
Use passwd -d username to give the user an empty password.
Answers
B.
Use chage to expire the user account.
B.
Use chage to expire the user account.
Answers
C.
Change the user's password.
C.
Change the user's password.
Answers
D.
Add the command exit to the user's .login file.
D.
Add the command exit to the user's .login file.
Answers
Suggested answer: B

What is the conventional purpose of Linux UIDs that are lower than 100?

A.
They are reserved for super user accounts.
A.
They are reserved for super user accounts.
Answers
B.
They are reserved for the system admin accounts.
B.
They are reserved for the system admin accounts.
Answers
C.
They are reserved for system accounts.
C.
They are reserved for system accounts.
Answers
D.
They are unused, aside from 0, because they are targets of exploits.
D.
They are unused, aside from 0, because they are targets of exploits.
Answers
E.
They are used to match with GIDs in grouping users.
E.
They are used to match with GIDs in grouping users.
Answers
Suggested answer: C

How is the file format of /etc/crontab different from a normal crontab file? (Select TWO correct answers)

A.
The /etc/crontab file can specify a year field.
A.
The /etc/crontab file can specify a year field.
Answers
B.
A normal crontab file must be installed with the crontab command.
B.
A normal crontab file must be installed with the crontab command.
Answers
C.
A normal crontab file allows for environment variable substitution.
C.
A normal crontab file allows for environment variable substitution.
Answers
D.
The /etc/crontab file has a user field for commands.
D.
The /etc/crontab file has a user field for commands.
Answers
Suggested answer: B, D

What is the main difference between the batch and at commands?

A.
The batch command will run multiple times.The at command will only run once.
A.
The batch command will run multiple times.The at command will only run once.
Answers
B.
The batch command will run when system load is low. The at command runs at a specific time.
B.
The batch command will run when system load is low. The at command runs at a specific time.
Answers
C.
The at command reads commands from standard input. The batch command requires a command line argument.
C.
The at command reads commands from standard input. The batch command requires a command line argument.
Answers
D.
The at command e-mails results to the user. The batch command logs results to syslog.
D.
The at command e-mails results to the user. The batch command logs results to syslog.
Answers
Suggested answer: B

The correct crontab entry to execute the script chklog three times per month between 3 p.m. and 5 p.m.:

A.
* 3,4,5 1 * * chklog
A.
* 3,4,5 1 * * chklog
Answers
B.
3 3,4,5 1 * * chklog
B.
3 3,4,5 1 * * chklog
Answers
C.
3 15,16,17 * * * chklog
C.
3 15,16,17 * * * chklog
Answers
D.
0 15,16,17 1 * * chklog
D.
0 15,16,17 1 * * chklog
Answers
E.
* 15,16,17 1 * * chklog
E.
* 15,16,17 1 * * chklog
Answers
Suggested answer: D

The ________ command is used to add a group to the system.

A.
groupadd,/usr/sbin/groupadd
A.
groupadd,/usr/sbin/groupadd
Answers
Suggested answer: A
Total 194 questions
Go to page: of 20