File permission task- validation failed from task server

Task was to change the file permission on Appserver 1 in stratus Datacenter.
1–I did ssh into the app server 1 .
2–was able to locate the file and change permissions with chmod 555 xfusioncorp.sh file
3–executed the shell script using sudo ./xfusioncorp.sh, server responded with message "Welcome To Kodekloud "
4-- when I click on check button server failed my task completion. Am I doing anything wrong here or something wrong from the task server. Please suggest.

Regards,
Raj

Hi @rajkiran103

The task probably wants you to “make it executable”, which means add execute permission without changing other permissions.

chmod 555 has cleared any existing write permission on the file.

Try with chmod +x

I just tried chmod +x and it still failed.

Try chmod 755 xfusioncorp.sh

Pls what am I doing wrong. Still failed

Hi David,
You may need to give the owner and group owner read permission (but not to others).

I stuck on that task also. I tried 3 times but had no luck every time :frowning:

I made it. Read permission, despite what was written in task criteria, was also required.

Hi @jaroslaw.bagnicki

For a file to be able to be executable, it also must be readable - otherwise how will the system be able to read it from the disk in order to be able to execute it?

Makes sense?

2 Likes

You are right. I made the wrong assumption that execution permission will be sufficient.

Thank you so much, your answer resolves my confusion.

Then please mark that comment as “Solution”. :innocent: