- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- regarding crontab
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
08-31-2004 07:58 PM
08-31-2004 07:58 PM
I am not able to edit my crontab file.
The user name is available in crontab.allow file and crontab.deny file is not there.
I am able to edit my user crontab when I login as as root using command crontab -e
But when I try editing it ( when I am logged in as user) I am getting error message as
crontab: can't create your crontab file in the crontab directory
I even changed permission of the directory and the crontab file ( giving full permission ) still it is showing the error.
Can you throw some light on this.......
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 08:15 PM - last edited on 09-16-2024 02:07 AM by support_s
08-31-2004 08:15 PM - last edited on 09-16-2024 02:07 AM by support_s
Re: regarding crontab
normally it should work when you've added the user in /usr/lib/cron/cron.allow
Maybe the rights of /var/tmp are not set to 777 so that would cause the problem
Set permission 777 for /var/tmp and it should work
Regards
Franky
- Tags:
- drive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 08:18 PM
08-31-2004 08:18 PM
Re: regarding crontab
try this one
First make sure "/usr/lib/cron/cron.allow" contains "user" and remove cron.deny
0. log in as root and remove that crontab file of user "user".
1. log in as user ( i will assume username as "user" )
2. Then $ crontab -e user
edit the file as per the requirement and then save.
3. See if you have valid entries in crontab by " $ crontab -l user "
This works.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 08:19 PM
08-31-2004 08:19 PM
Re: regarding crontab
login as root and then use:
# crontab -r user
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 08:23 PM
08-31-2004 08:23 PM
Solution-r-sr-xr-x 1 root bin 28672 Feb 18 1999 /usr/bin/crontab
The rights on the crontabs directory should be this:
dr-xr-xr-x 2 bin bin 1024 Aug 29 17:30 /var/spool/cron/crontabs
Good luck,
Elmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 08:24 PM
08-31-2004 08:24 PM
Re: regarding crontab
I had changed the rights of /var/tmp to 777 still its showing the error message
crontab: can't create your crontab file in the crontab directory.
When I manually copied that file from /var/tmp to crontab directory its getting coppied........
But when I edit the file using crontab -e is not getting copied.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 08:40 PM
08-31-2004 08:40 PM
Re: regarding crontab
i don't think the problem lies in the cron.allow file because then another error (like: you're not authorized ...) would come up. But when i change my rights of /var/tmp to 755 the error mentioned by you (can't create ...) is coming up - when i change it back to 777 it works !
HTH
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 09:22 PM
08-31-2004 09:22 PM
Re: regarding crontab
entries
It will copy the contents to /var/tmp/*** file. And then it copy it to /var/spool/cron/crontab/
The permission will be as root:
If you don't have 777 permission on /var/tmp/ directory then it will be a problem.
Else change the problem as,
crontab cronfile
It will upload it on crontabs directory now.
can you do it without any problem now.
Check points:
Are you getting added entries when,
crontab -l
Edit the cron informations now as,
cron -e
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 09:39 PM
08-31-2004 09:39 PM
Re: regarding crontab
When I try copying the file to my crontab ,
i.e crontab
I am getting the following error
crontab: error in message queue open, errno=13
What is this error? how do I correct it??
Regards
kiran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 10:44 PM
08-31-2004 10:44 PM
Re: regarding crontab
Thanx for you support.
I could solve it by changing the permission of /usr/bin/crontab binary( chmod u=rs,go=rx,o=rx) and the /var/spool/cron/crontabs ( chmod u=rx,go=rx,o=rx)
Regards
Kiran