Scripting, Manage Startup Process and Services>>>QUESTION 3 ISSUE

Hi,
Kindly assist regarding below as soon as possible.
Thanks

SOLUTIONS NOT RECOGNIZED

MY SOLUTION
image

TESTED KODEKLOUD SOLUTION

Do you have a link to the lab please?

@al1 ,
find link below.

https://learn.kodekloud.com/user/courses/labs-linux-foundation-certified-system-administrator-lfcs/module/f81c0b0c-ebab-4714-bbfe-fc2ac7be20f8/lesson/991fc944-13f4-4b0b-98c2-d3a49c3d4595?autoplay=true

Don’t run the script as root (sudo). The file should be owned by bob:

Thanks @al1 ,
I see the same issue with question 6 also, only successfully resolved after changing owner to bob. I am a bit curious, the question didn’t speak about changing owner f(root to bob), am I wrong to say this?

image

You keep using sudo - it is not required. When you run sudo chmod the user is then root not bob.

@al1 ,
Got your point now.
Thanks