New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GIAC GSEC Exam - Topic 9 Question 21 Discussion

Actual exam question for GIAC's GSEC exam
Question #: 21
Topic #: 9
[All GSEC Questions]

John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working as a root user on the Linux operating system. He wants to change the startup shell of Maria from bash to tcsh. Which of the following commands will John use to accomplish the task?

Each correct answer represents a complete solution. Choose all that apply.

Show Suggested Answer Hide Answer
Suggested Answer: A, D

The usermod -s and useradd -s commands can be used to change the user startup shell.

Answer option C is incorrect. The usermod -u command is used to set a numerical value of the account's ID. The value must be unique, non-

negative, and greater than 99. The values 0 to 99 are reserved for system accounts.

Answer option B is incorrect. The chage command is used for changing user password expiry information.

Syntax:

chage [-m mindays] [-M maxdays] [-d lastday] [-E expireday] [-I inactive] [-W warndays] [-l] user

The functions of the switches are as follows:


Contribute your Thoughts:

0/2000 characters
Nelida
4 months ago
Wait, can you really change it like that? Sounds too easy!
upvoted 0 times
...
Sherman
4 months ago
D is also a valid option for new users, right?
upvoted 0 times
...
Janine
4 months ago
I thought chage was for password aging?
upvoted 0 times
...
Kerrie
4 months ago
Definitely A! That's the right command.
upvoted 0 times
...
Lindsay
5 months ago
Pretty sure it's A, usermod -s.
upvoted 0 times
...
Vinnie
5 months ago
I feel like `chage` is more about password aging, so I don't think it would work for changing the shell.
upvoted 0 times
...
Deeanna
5 months ago
I practiced a similar question where we had to change user settings, and `usermod -s` definitely came up as the right command.
upvoted 0 times
...
Louvenia
5 months ago
I think `useradd -s` is also related to setting the shell, but I can't recall if it applies to existing users like Maria.
upvoted 0 times
...
Kelvin
5 months ago
I remember something about using `usermod -s` to change the shell, but I'm not entirely sure if that's the only command needed.
upvoted 0 times
...
Wynell
5 months ago
Hmm, I'm a little confused on the impact of credit memos on inventory. I'll need to review my notes to make sure I understand the distinction between the two types.
upvoted 0 times
...
Destiny
5 months ago
Okay, I've got this. The key is to quickly address the security alert without causing any disruption to the business. I'd log into the Security Center and configure it to recognize the Shanghai location as a frequent login spot.
upvoted 0 times
...
Ezekiel
5 months ago
I think this question is testing our understanding of how consensus algorithms incentivize miners. The key is to focus on the rewards and incentives, not the specific payment method.
upvoted 0 times
...
Claudia
5 months ago
I feel like there was a similar question in our practice test that confirmed HTTP supports both.
upvoted 0 times
...

Save Cancel