nerdexam
Red_Hat

EX200 · Question #21

21. Configure an application Configure an application named rhcsa. When this application is run as the user natasha, it should display the string: This is a rhcsa

The correct answer is A. See the below explanation. To configure an application named 'rhcsa' that displays 'This is a rhcsa' when run as user natasha, create a shell script at a system path (e.g., /usr/local/bin/rhcsa) with the following content: #!/bin/bash echo 'This is a rhcsa' Make it executable with 'chmod +x…

Submitted by sofia.br· Apr 18, 2026Deploy, Configure, and Maintain Systems

Question

  1. Configure an application Configure an application named rhcsa. When this application is run as the user natasha, it should display the string: This is a rhcsa

Options

  • ASee the below explanation

How the community answered

(15 responses)
  • A
    100% (15)

Explanation

To configure an application named 'rhcsa' that displays 'This is a rhcsa' when run as user natasha, create a shell script at a system path (e.g., /usr/local/bin/rhcsa) with the following content:

#!/bin/bash echo 'This is a rhcsa'

Make it executable with 'chmod +x /usr/local/bin/rhcsa'. To ensure it runs as user natasha specifically, you can configure sudo to allow natasha to run the script without a password via /etc/sudoers (using 'visudo'), or simply ensure natasha has execute permission on the script. If the goal is that only natasha triggers a specific behavior, verify the script is executable by natasha's account and test by switching to that user with 'su - natasha' and running 'rhcsa'.

Topics

#application configuration#scripting#user permissions#system configuration

Community Discussion

No community discussion yet for this question.

Full EX200 Practice