- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unable to save the file in 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
Discussions
Discussions
Discussions
Forums
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
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
тАО11-22-2010 06:02 AM
тАО11-22-2010 06:02 AM
unable to save the file in crontab
Error
"/var/tmp/aaaa07754" 1 line, 2 characters
crontab: can't create your crontab file in the crontab directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 06:08 AM
тАО11-22-2010 06:08 AM
Re: unable to save the file in crontab
Alternate option.
1. Put the schedule details in a file as like you enter using crontab -e
2. become the user in which you want to execute the cron job. ( su -
3. crontab
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 06:13 AM
тАО11-22-2010 06:13 AM
Re: unable to save the file in crontab
$ ll /usr/bin/crontab
-r-sr-xr-x 1 root bin 40960 Aug 14 2007 /usr/bin/crontab
The crontab command requires "setuid root" permissions, or else it won't be able to write to directory /var/spool/cron/crontabs. Regular users should not be able to write to that directory using normal tools; only the crontab command should be used to access that directory.
The "setuid root" permission may also be required for notifying the running cron daemon that the crontabs have been modified.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 07:51 AM
тАО11-22-2010 07:51 AM
Re: unable to save the file in crontab
$cd /usr/bin
$ls -ltr crontab
-rwxr-xr-x 1 root bin 28672 Jul 17 2002 crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 07:55 AM
тАО11-22-2010 07:55 AM
Re: unable to save the file in crontab
$ls -ltr crontab
-rwxr-xr-x 1 root bin 28672 Jul 17 2002 crontab
That is incorrect. It needs to be fixed!
Do the following:
# chmod 4555 /usr/bin/crontab
Now your crontab commands should work normally and be able to save files as appropriate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 07:58 AM
тАО11-22-2010 07:58 AM
Re: unable to save the file in crontab
# chmod 4555 /usr/bin/crontab
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2010 08:11 AM
тАО11-22-2010 08:11 AM