- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- unable to edit crontab
-
- Forums
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- Infrastructure Solutions German
- L’Avenir de l’IT
- IT e Trasformazione Digitale
- Enterprise Topics
- ИТ для нового стиля бизнеса
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Forums
-
Blogs
-
InformationEnglish
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP