Question 9 on Assessment Linux Test

I took the assessment Linux test and in question number 9 it asked to modify the port for the https.service (Apache) and the user/group for that service. I went to go restart the service but it kept asking for the root password which I didn’t have?

Was there another way/method of doing this?

Could you please include a link to the assessment test you’re taking? I’m not finding it in the Linux Basics course.

Looks like you meant this lab – again, always include a link to your lab – then you don’t actually need a password for Q9: you can just use sudo directly, like this:

sudo -i

which will give you a root shell; this will let you edit the httpd.conf file.

Hey There,
Apologies,
This was the link in case you still wanted:
https://kodekloud.com/pages/free-labs/assessments/linux

but as for Q9, I was able to write and edit the https.conf file but as you can see in the screenshot, the moment I needed to restart the service or even start it, it would ask for a sudo password. I’ve tried to start it, restart and same situation. Just trying to understand if sudo -I would have prevented this as well?

You need to do instead sudo systemctl start httpd.

1 Like