Oracle
1Z0-100 · Question #108
The SSHD service is controlled by the script in /etc/init.d/sshd, part of which is shown here: [root@FAROUT ~] cat /etc/init.d/sshd # !/bin/bash # # sshdStart up the OpenSSH server daemon # #…
The correct answer is B. The sshd service configuration is restored to start In run levels 2, 3, 4 and 5. See the full explanation below for the reasoning.
Question
The SSHD service is controlled by the script in /etc/init.d/sshd, part of which is shown here:
[root@FAROUT ~] cat /etc/init.d/sshd # !/bin/bash # # sshdStart up the OpenSSH server daemon # # chkconfig: 23455525 # description: SSH is a protocol for secure remite shell access. \ # This service starts up the Open SSH server daemon. # You issue chkconfig commands to change the sshd service:
[root@FAROUT ~] # chkconfig sshd off [root@FAROUT ~] # chkconfig sshd reset What is the result of the two commands issued?
Options
- AThe sshd service configuration is restored to the settings that existed before setting it off.
- BThe sshd service configuration is restored to start In run levels 2, 3, 4 and 5.
- CThe sshd service configuration is restored to start in run levels 2 and 5 only.
- DThe sshd service configuration is restored to those that existed after the operating system was
How the community answered
(45 responses)- A7% (3)
- B76% (34)
- C2% (1)
- D16% (7)
Community Discussion
No community discussion yet for this question.