Kodekloud engineer marked correct task incorrect

While doing a task on modifying sh file permission to stapp01 server, I got task failed but i made correct permissions on the file.

[root@stapp01 ~]# chmod +x /tmp/xfusioncorp.sh
[root@stapp01 ~]# ls -lrt /tmp/xfusioncorp.sh
—x–x–x 1 root root 40 Aug 5 16:39 /tmp/xfusioncorp.sh
[root@stapp01 ~]#

HI @vsinaws

Can you please share the Task Level and number?
The script is owned by root; is that the task requirement?

you need also read permissions

This is task 4 of 100 days of devops. Question does not ask specifically for any particular user but it says all users should be able to execute it.

‘’’
In a bid to automate backup processes, the xFusionCorp Industries sysadmin team has developed a new bash script named xfusioncorp.sh. While the script has been distributed to all necessary servers, it lacks executable permissions on App Server 3 within the Stratos Datacenter.

Your task is to grant executable permissions to the /tmp/xfusioncorp.sh script on App Server 3. Additionally, ensure that all users have the capability to execute it.
‘’’

well in that case the question should be specific. This can be confusing for anyone.

1 Like

Hello , I have an issue with Task 3 I’m hoping you found your way around it. I got an error that the sshd_config file was not properly edited on App Server 1 however I issued the same permissions on Server 2 and 3 . Can you assist please ?

I do think the point of the task is to teach us that for a script (like a shell script), the interpreter (e.g., /bin/bash) needs to have read permission on the file to execute it.

So yes, the task isn’t specific, but now I probably would never forget that I need to add r permission with x for the shell to read and execute (cos the kernel needs to read the shebang and start the right interpreter).