Operating System - HP-UX
1748003 Members
4621 Online
108757 Solutions
New Discussion юеВ

Re: crontab is not working for a particular set of user's

 
WW393114
Advisor

crontab is not working for a particular set of user's

Hello All,

i am unable to execute scripts via crontab for a particular set of user's.

Also when i edit crontab using crontab -e and save i am getting the following error
crontab: error in message queue open, errno=13
warning: commands will be executed using /usr/bin/sh


Please Help !!
6 REPLIES 6
Steven Schweda
Honored Contributor

Re: crontab is not working for a particular set of user's

> i am unable to [...]

On what?

uname -a

> [...] for a particular set of user's.

Which users?

> [...] errno=13

EACCES = 13 = Permission denied.

man crontab

ls -l
merieux
Frequent Advisor

Re: crontab is not working for a particular set of user's

Hi ,

All the user are not authorized to use crontab . What is the content of /var/adm/cron/cron.allow ? Adds the concern users an try to see what happened .

Bye
Dennis Handly
Acclaimed Contributor

Re: crontab is not working for a particular set of user's

>crontab: error in message queue open, errno=13

As Steven said, this is a permission problem. Can you check the permission of each of the directory paths in /var/adm/cron. Also check the permissions of the fifo file there, that would be that "message queue".
Dennis Handly
Acclaimed Contributor

Re: crontab is not working for a particular set of user's

The permissions for FIFO are:
prw------- root root FIFO

So this means crontab must be setuid:
-r-sr-xr-x root bin /usr/bin/crontab
vishnu.khandare
Respected Contributor

Re: crontab is not working for a particular set of user's

Hi,
To use cron for particular user, it is must that the users entry should be in /var/adm/cron/cron.allow

Add that users and try to run the cron from tht users and check the file permissions also.

Hope this solves ur issue
Dont forget to assign points.

Regards
Vishnu Khandare
You should deserve before U desire!!!!
madhuchakkaravarthy
Trusted Contributor

Re: crontab is not working for a particular set of user's

hi

what is the output of

1.ll /var/adm/cron

2.cat /var/adm/cron/queuedefs

regards

MC