Failed task to add executable permissions on file

Hello
I was assigned a task to set file /tmp/xfusioncorp.sh as executable.
I typed the bellow command, but the check failed!
What did I miss???
Thnak you for your help

[root@stapp02 ~]# chmod +x /tmp/xfusioncorp.sh
[root@stapp02 ~]# ls -l /tmp/xfusioncorp.sh
—x–x–x 1 root root 40 May 5 03:22 /tmp/xfusioncorp.sh

Hi @Farid-El-Mouhsine ,

You also need to add Read permission on the file. The user needs to read the file before executing it.

Regard

1 Like

Hi @mmkmou
Thank you for youe help.
Regards

1 Like