permission denied while running cronjob
I presume its your own personal user that you are using for this cron, which does not have permission to execute the file. Perhaps the file was created as root user or as some other user and therefore the credentials are not set to allow your user to execute.
First - Try to check what permissions are set on the file
ls -l /var/www/html/etl_project/ | grep run_etl_incomplete.sh
Check the output to see who is the owner and group and what permissions are set.
To make the file executable -
chmod +x /var/www/html/etl_project/run_etl_incomplete.sh
This will work only if you have the correct permissions in the first place (if your user is part of the group for example) to modify the file.
Once the file is made executable your cron will run.
How to solve permission denied error in cron?
you must give execute permission to your script before executing.
chmod u+x shellScript.sh
Permission denied error when running crontab
make it executable first, using
chmod +x ~/csv_file/write_csv2/filename.r
and the execute it using ./filename.r
Cronjobs Permission denied
I have to use
echo ../uploads/$(/usr/bin/date +"%Y-%m-%d_%H%M")_name.csv instead of under bracket.
Permission denied with bash.sh to run cron
you can try the following solution as well:
chmod +x post.php
chmod +x bash.sh
echo "* * * * * /home/samitha/bash.sh >> /home/samitha/log/cron.log 2>&1" >> cronjob
chmod +x cronjob
/etc/init.d/crond start #redhat based servers like centos
/etc/init.d/cron start #debian based servers like ubuntu
crontab cronjob
crontab permission denied error
You have to put the eXecutable bit on the script to do the job:
chmod +x /home/zenoss/zen-remote-bkup.sh
Related Topics
Bash Variable Assignment Not Working Expected
Dd: How to Calculate Optimal Blocksize
How to Enable Scrolling in Tmux Panels with Mouse Wheel
How to Call Curl Without Using Server-Side Cache
How to Execute a Series of Commands in a Bash Subshell as Another User Using Sudo
Rename All Files in Folder to Numbered List 1.Jpg 2.Jpg
How to Confirm Redhat Enterprise Linux Version
Flex Development on Linux, What's a Good Free Environment
Write-Through Ram Disk, or Massive Caching of File System
I Want to Remove Multiple Line of Text on Linux
How to Redirect the Output of an Application in Background to /Dev/Null
Sed Insert Line with Spaces to a Specific Line
Android Studio Error After ./Studio.Sh
Get Current Time in Hours and Minutes
Wkhtmltopdf Installation Error on Ubuntu
How to Continuously Display a File of Its Last Several Lines of Contents