After given the Executable permission task got failed - 'script' is not executable on App Server 2

I Have given the executable permission for the file but showing task got failed

  • ‘script’ is not executable on App Server 2
    can any one tell me what is the issue here?

here is the SS for the same.

2 Likes

Hi,

either run the script as SUDO user
or
you need to give the read permission too.
sudo chmod 755 xfusioncorp.sh

I am sure this will solve the issue.

have a nice day!

2 Likes

Thanks aryan after the failed attempt i have redo the task and given 777 permission and task got successful

3 Likes

You’re welcome, kindly give that solution a like.

Happy learning!

1 Like

very strange that 777 works and help test pass but XXX doesnt.
Wouldnt 777 be a greater permission to all users.

Hi @Sonal-Sharma,

The right permission is 555 (r-xr-xr-x) . Only given xxx will not provide executable you need to add read (Before execute the script he need to read it).

1 Like

555 worked like a charm