Server Administration

A login script runs with standard user permissions and appends a required tools directory to the user's session PATH. Repeated sign-ins produce duplicate entries, while an added service-restart task fails with access denied. Which changes BEST address these problems? (Choose two.)

Choose 2 answers

Show the answer

Correct answersD. Add the tools directory only if the PATH does not contain itF. Move the service restart to an authorized privileged maintenance task

AWhy not this: Embedding privileged credentials creates exposure and unnecessarily elevates the entire script.

BWhy not this: A shutdown script does not configure the PATH of the user's active session.

CWhy not this: Changing the launch location does not give a standard-user process permission to restart the service.

DWhy this is right: Checking for the directory prevents repeated sign-ins from adding duplicate entries.

EWhy not this: Recreating an account risks its identity and access without addressing either scripting problem.

FWhy this is right: A separately authorized privileged task can restart the service without elevating user session configuration.

Privileged service maintenance should run separately with appropriate authorization, and checking for an existing PATH entry makes repeat execution safe. Storing an administrator password in a login script exposes credentials and grants unnecessary privilege.