- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unable to edit 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
05-26-2009 12:00 AM
05-26-2009 12:00 AM
unable to edit crontab
OS-HP UX 11.23
Getting error while executing crontab -e command for root also.Its not working for any of the user.
crontab -e
crontab: can't create your crontab file in the crontab directory.
I checked /var/adm/cron/cron.allow files and semms ok.
/var/spool/cron/crontabs>ll
total 48
-rwxr-xr-x 1 root dba 220 Mar 15 22:22 bkpadm
-rwxr-xr-x 1 root dba 425 May 12 17:29 oracle
-r-------- 1 root sys 434 May 26 11:40 root
ls -ld crontabs
drwxr-xr-x 2 bin bin 96 May 26 11:47 crontabs
please help me to resolve the issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2009 12:04 AM
05-26-2009 12:04 AM
Re: unable to edit crontab
check this link :
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1292920
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2009 12:12 AM
05-26-2009 12:12 AM
Re: unable to edit crontab
Most likely cause of not being able to create the file is the path does not exist.
pwd in the crontabs directory.
The locatoin looks good.
Can you post cron.allow so we can diagnose?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2009 12:24 AM
05-26-2009 12:24 AM
Re: unable to edit crontab
#echo $EDITOR
if it is not vi
#export EDITOR=vi
Please let me know the progress
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2009 12:46 AM
05-26-2009 12:46 AM
Re: unable to edit crontab
Pleadse find the required output
UAEMFQDDCBDBD01:/var/spool/cron/crontabs>ls -lrt
total 48
-rwxr-xr-x 1 root dba 220 Mar 15 22:22 bkpadm
-rwxr-xr-x 1 root dba 425 May 12 17:29 oracle
-rwxr-xr-x 1 root sys 434 May 26 11:40 root
UAEMFQDDCBDBD01:/var/adm/cron>cat cron.allow
root
adm
uucp
oracle
bkpadm
no cron.deny file
UAEMFQDDCBDBD01:/var/adm/cron>echo $EDITOR
vi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2009 12:56 AM
05-26-2009 12:56 AM
Re: unable to edit crontab
You may have to use "swverify \*" to see what else is broken.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2009 01:12 AM
05-26-2009 01:12 AM
Re: unable to edit crontab
>>no cron.deny file
If cron.allow is exist and cron.deny is not exist then all the user present cron.allow then all users listed in the cron.allow file can use cron.
>>crontab: can't create your crontab file in the crontab directory.
this means you are not login as root or the user you have login is not having the permission to edit crontab.
login as a root and then try
Suraj