Dear all,
I have created a perl script to run on a solaris platform. When the script runs, it calls the /usr/sbin/ping command to carry out connectivity checks to other devices.
The script is set to run with a custom user account/group. The file permissions are set for this script and these work fine. However, when I run the script and it attempts to run the /usr/sbin/ping command it falls over stating that only the root user may run this command.
Using the same user account I can run the ping command no problem. The script should run as the custom user using a crontab entry, however I have to run it using the root crontab. This is something that I don't want to do. I want to ringfence the script to the custom user account that I have created.
Any ideas why when running the script using the custom user account it's doesn't have permissions to run the /usr/sbin/ping command.
I have checked the permissions on the ping command and they are root/bin. I know that I could make the customuser part of the bin group, but what I don't understand is that I can run the ping command manually on the command with the custom user account, but when I execute the same script from the custom user account crontab, it fails on the permissions issue.
I appreciate that is is difficult to answer this type of question blindly but any help would be greatly appreciated.
Thanks and regards
Alf
I have created a perl script to run on a solaris platform. When the script runs, it calls the /usr/sbin/ping command to carry out connectivity checks to other devices.
The script is set to run with a custom user account/group. The file permissions are set for this script and these work fine. However, when I run the script and it attempts to run the /usr/sbin/ping command it falls over stating that only the root user may run this command.
Using the same user account I can run the ping command no problem. The script should run as the custom user using a crontab entry, however I have to run it using the root crontab. This is something that I don't want to do. I want to ringfence the script to the custom user account that I have created.
Any ideas why when running the script using the custom user account it's doesn't have permissions to run the /usr/sbin/ping command.
I have checked the permissions on the ping command and they are root/bin. I know that I could make the customuser part of the bin group, but what I don't understand is that I can run the ping command manually on the command with the custom user account, but when I execute the same script from the custom user account crontab, it fails on the permissions issue.
I appreciate that is is difficult to answer this type of question blindly but any help would be greatly appreciated.
Thanks and regards
Alf