crontab editing error on ubuntu
if I login with a non root user and use crontab -e I get this error
Path '/tmp/crontab.ZsUECH' is not accessible
on ubuntu the default crontab permission are 2755, cpanel changes them to 4755
the tmp crontab folder has a permission of 700, when crontab has 4755 the tmp crontab folder has root for uid and the user group for gid while with 2755 it has the user for uid and crontab for gid, so with 4755 the user doesn't have any permission to even access the tmp crontab folder
-
Try: chmod 2755 /usr/bin/crontab --> Crontab permissions back to 2755 for proper user-level access.
/tmp directory has the correct permissions to allow the user to write temporary files. ( usually 1777, for public acces)
0 -
if I chmod crontab it will go back to 4755 after a day or so, /tmp permissions are already 1777
0 -
I was able to confirm this behavior on a cPanel system running Ubuntu 22 and cPanel 122. I've created case CPANEL-46079 with our developers so they can check this issue, but for now it would be best to use the cPanel interface to create and manage any crons on that account.
If I hear any updates on that case I'll be sure to post!
0
Please sign in to leave a comment.
Comments
3 comments