ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 80 - XK0-005 discussion

Report
Export

After listing the properties of a system account, a systems administrator wants to remove the expiration date of a user account. Which of the following commands will accomplish this task?

A.
chgrp system accountname
Answers
A.
chgrp system accountname
B.
passwd -s accountname
Answers
B.
passwd -s accountname
C.
chmod -G system account name
Answers
C.
chmod -G system account name
D.
chage -E -1 accountname
Answers
D.
chage -E -1 accountname
Suggested answer: D

Explanation:

The command chage -E -1 accountname will accomplish the task of removing the expiration date of a user account. The chage command is a tool for changing user password aging information on Linux systems. The -E option sets the expiration date of the user account, and the -1 value means that the account will never expire. The command chage -E -1 accountname will remove the expiration date of the user account named accountname. This is the correct command to use to accomplish the task.

The other options are incorrect because they either do not affect the expiration date (chgrp, passwd, or chmod) or do not exist (chmod -G). Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 15: Managing Users and Groups, page 467.

asked 02/10/2024
Jim Apple
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first