- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unable to use cron
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 08:48 PM
04-09-2002 08:48 PM
I have a user tiger.
After login as user tiger I give the command
$ crontab -l
It gives message ::
crontab: you are not authorized to use cron. Sorry.
I have made an entry for the user tiger in /var/adm/cron/cron.allow, but still I am getting the same error.
I want to add some cronjobs for this user.
How can I do it?
Thanks,
Raje.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 08:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 09:03 PM
04-09-2002 09:03 PM
Re: Unable to use cron
Just checking ... the error message is the SAME after you add tiger in /var/adm/cron/cron.allow ? It would be normal to get the following message ...
$crontab -l
crontab: can't open your crontab file.
... because tiger doesn't have any jobs yet.
Does tiger have an actual account on the system ? Can you post the output (blank out the encrypted password if the system is not trusted) from
$cat /etc/passwd | grep "tiger"
Regards,
Tom Geudens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 09:05 PM
04-09-2002 09:05 PM
Re: Unable to use cron
$ vi cron-file
==> put our cron entries in this file.
$ crontab cron-file
==> this should copy the cron file to /var/spool/cron/crontabs/tiger
$ crontab -l
==> check it ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 09:33 PM
04-09-2002 09:33 PM
Re: Unable to use cron
I have restarted the cron but still the same message.
I have also tried to create a cronfile and execute it with
$ crontab cron-file but it gives the same message
"crontab: you are not authorized to use cron. Sorry.
Hi Tom,
I am not getting the error mentioned by you.
Yes. tiger is an actual account.
Cron is working for the other users but not for tiger.
Thanks,
Raje.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 09:37 PM
04-09-2002 09:37 PM
Re: Unable to use cron
Check that the crontabs files for 'tiger' is owned by
'tiger' and that 'tiger' has write access on it.
ll /var/spool/cron/crontabs/tiger
Also, ensure that there is no entry for 'tiger' in cron.deny file.
HTH

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 09:52 PM
04-09-2002 09:52 PM
Re: Unable to use cron
This is really a strange problem ... hmm...
Did you do the following:
1) Check if user tiger is a valid user (as mentioned earlier)
grep tiger /etc/passwd
2) set the user tiger's profile environment variable
EDITOR=/usr/bin/vi
3) Add user "tiger" to the cron.allow file
4) Kill -HUP
I think cron.allow takes precedence over cron.deny even if you have user tiger in cron.deny
Let us know if you still have a problem...
Thanks,
Shabu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2002 04:50 AM
04-10-2002 04:50 AM
Re: Unable to use cron
tiger must be listed in /var/adm/cron/cron.allow and must not be in /var/adm/cron/cron.deny.
I presume /usr/lib/cron is a symlink pointing to /var/adm/cron since you say other users can use cron.
Does tiger have the same numeric UID as another user? If so and if that user is listed in /etc/passwd before tiger, then that's the loginid that cron will verify is allowed to use cron even if logged in as tiger.
For example, assume the following are from /etc/passwd:
lion:ekdi4jgvld89k:9001:20::/home/lion:/usr/bin/sh
tiger:adfwajklffdw:9001:20::/home/tiger:/usr/bin/sh
tiger has the same uid (9001) as lion. Placing tiger in cron.allow will have no effect because cron will see the uids are the same and will check for the name lion.
Darrell