Expiration Flashcards

(18 cards)

1
Q

What do configuration files define in Linux systems?

A

System-wide account expiration and password aging rules.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why are configuration files used?

A

To enforce security policies requiring periodic password changes or account deactivation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which file contains default password aging settings?

A

/etc/login.defs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does PASS_MAX_DAYS do?

A

Sets the maximum number of days a password is valid.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does PASS_MIN_DAYS do?

A

Sets the minimum number of days before a password can be changed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does PASS_WARN_AGE do?

A

Sets the number of days before password expiration to warn the user.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Give an example of setting max password age.

A

PASS_MAX_DAYS 90

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which file contains user-specific account information?

A

/etc/passwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How is the expiration date stored in /etc/passwd?

A

As the number of days since January 1, 1970 (epoch time) in the last field.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Example of viewing /etc/passwd content?

A

cat /etc/passwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Example line from /etc/passwd with expiration?

A

alice:x:1001:1001:Alice User:/home/alice:/bin/bash:1680744000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does 1680744000 represent?

A

The expiration date in epoch time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Is modifying /etc/passwd directly recommended?

A

No, it is possible but not recommended.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which command manages password aging and account expiration per user?

A

chage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does chage allow?

A

Setting password expiration dates and account inactivity periods for individual users.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Example command to set account expiration?

A

sudo chage -E 2025-12-31 alice

17
Q

What does this command do?

A

Sets Alice’s account to expire on December 31, 2025.

18
Q

What happens after account expiration?

A

Login will be denied unless changed.