XK0-005 Exam Question 146

A Linux administrator provisioned a new web server with custom administrative permissions for certain users. The administrator receives a report that user1 is unable to restart the Apache web service on this server. The administrator reviews the following output:
[ root@server ] # id user1
UID=1011 (user1) gid=1011 (USER1) groups=1011 (user1), 101 (www-data), 1120 (webadmin)
[ root@server ] # cat /etc/sudoers.d/custom.conf
user1 ALL=/usr/sbin/systemctl start httpd, /usr/sbin/systemctl stop httpd webadmin ALL=NOPASSWD: /etc/init.d.httpd restart, /sbin/service httpd restart, /usr/sbin/apache2ctl restart
#%wheel ALL=(ALL) NOPASSWD: ALL
Which of the following would most likely resolve the issue while maintaining a least privilege security model?
  • XK0-005 Exam Question 147

    A Linux administrator needs to transfer a local file named accounts . pdf to a remote / tmp directory of a server with the IP address 10.10.10.80. Which of the following commands needs to be executed to transfer this file?
  • XK0-005 Exam Question 148

    As a Systems Administrator, to reduce disk space, you were tasked to create a shell script that does the following:
    Add relevant content to /tmp/script.sh, so that it finds and compresses rotated files in /var/log without recursion.
    INSTRUCTIONS
    Fill the blanks to build a script that performs the actual compression of rotated log files.
    If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

    XK0-005 Exam Question 149

    A user is unable to remotely log on to a server using the server name server1 and port 22. The Linux engineer troubleshoots the issue and gathers the following information:
    Which of the following is most likely causing the issue?
  • XK0-005 Exam Question 150

    An engineer needs to insert a character at the end of the current line in the vi text editor. Which of the following will allow the engineer to complete this task?