- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Not to schedule a cronjob
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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-27-2006 10:18 PM
11-27-2006 10:18 PM
When I try to schedule the cronjob with the user build.It is giving the following error message.
----------
crontab: can't create your crontab file in the crontab directory.
When we give the command crontab -e, it is opening the editor after make the entry in the editor and when we save the cronjob..,I get the above error message.
--------
Regards
Suseendran .A
Solved! Go to Solution.
- Tags:
- crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 10:22 PM
11-27-2006 10:22 PM
Re: Not to schedule a cronjob
is the user build allowed to have a cron file?
See "man crontab"
User should be in /usr/lib/cron/cron.allow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 10:35 PM
11-27-2006 10:35 PM
Re: Not to schedule a cronjob
I dont think that was the root cause
I dont have cron.allow file in my server only I am having cron.deny and the user 'build' is not specified onto the list
The Error seems to be different., Its not looking like a permission issue.
$crontab -e
<< The Editor is opening >>
<< When I make entry & try to exit >>
:wq
crontab: can't create your crontab file in the crontab directory.
Regards
Suseendran, A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 10:53 PM
11-27-2006 10:53 PM
Re: Not to schedule a cronjob
Check write permissions in /usr/spool/cron/crontabs directory.
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 10:53 PM
11-27-2006 10:53 PM
Re: Not to schedule a cronjob
could you please try (as user build)
cd /tmp
crontab -l > l.l
vi l.l and add your stuff
crontab l.l
If that does not work get root to create a file called build in /var/spool/cron/crontabs, set permissions to 400 and chgrp to the group of build.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 11:04 PM
11-27-2006 11:04 PM
Re: Not to schedule a cronjob
verify your temporary directory just in case they are running out of space.
also try the method specified by Peter above.
i.e.
crontab -l > /tmp/cron.txt
then edit the cron.txt accordingly
crontab /tmp/cron.txt
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 11:05 PM
11-27-2006 11:05 PM
Solution-r-sr-xr-x 1 root bin 32768 Jun 18 2002 /usr/bin/crontab
In other words, the "crontab" command must be suid root to allow non-root users to edit their own crontabs. In a default installation this is true, but the suid bit may be removed for various reasons:
- as a workaround to prevent the use of a local root exploit until a patch is available, the suid bit might be intentionally removed from a vulnerable binary
- as a security measure, the number of suid root binaries may be limited to absolute minimum required (I'm not sure whether the Bastille hardening system from software.hp.com offers to do this or not)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 11:07 PM
11-27-2006 11:07 PM
Re: Not to schedule a cronjob
I tried the above things ., But still the issue remains.
I created the file called build inside the crontabs directory and changed the group as build & given the permission..
Here I attached a few details..
----------------------
[root@nibappsun08 cron]$ pwd
/var/spool/cron
[root@nibappsun08 cron]$ ls -lt
total 4
drwxr-xr-x 2 root sys 512 Nov 28 17:30 crontabs
drwxr-xr-x 2 root sys 512 Nov 28 15:19 atjobs
[root@nibappsun08 cron]$ cd crontabs/
[root@nibappsun08 crontabs]$ ls -ltr
total 10
-r-------- 1 root sys 190 Sep 1 07:17 adm
-r-------- 1 root root 452 Sep 1 07:27 lp
-r-------- 1 root sys 308 Sep 1 07:51 sys
-r-------- 1 root sys 404 Sep 1 07:55 uucp
-r-------- 1 root other 0 Sep 25 20:50 test
-r-------- 1 root other 525 Nov 28 17:13 root
-r-------- 1 root build 0 Nov 28 17:30 build
[root@nibappsun08 crontabs]$
------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 11:14 PM
11-27-2006 11:14 PM
Re: Not to schedule a cronjob
what does "bdf /var/spool/cron/crontabs " show?
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 11:23 PM
11-27-2006 11:23 PM
Re: Not to schedule a cronjob
Its an amazing effort shown from all of you to find the solution...
ya the Trick which works was the suid permission is not set for my crontab command..
After setting the suid permission to the file it is working fine..
Thanks Especially to " Matti Kurkela " and to Eveyone...
Regardfs
Suseendran, A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 11:25 PM
11-27-2006 11:25 PM
Re: Not to schedule a cronjob
so the question you have to ask yourself now is : Who changed the crontab permissions ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2006 07:12 AM
11-28-2006 07:12 AM
Re: Not to schedule a cronjob
If you suspect more of these problems, you could use:
# /usr/sbin/swverify \*
- Tags:
- swverify