- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to enable the crontab for user in hpux
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
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
тАО04-13-2010 05:31 AM
тАО04-13-2010 05:31 AM
I have one user called "john" I would like enable the cron for that user, So i have done following steps in HP-UX 11.31.
1)Added the user name "john" in cron.allow by root
#vi /var/adm/cron/cron.allow
root
adm
uucp
john ---> newly added.
2)Then I have logged in as john.
3)I ran below command and got following error.
# crontab -e
emacs: No such file or directory
crontab: can't create your crontab file in the crontab directory.
How to solve this?
Solved! Go to Solution.
- Tags:
- crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 05:35 AM
тАО04-13-2010 05:35 AM
Re: how to enable the crontab for user in hpux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 05:41 AM
тАО04-13-2010 05:41 AM
Re: how to enable the crontab for user in hpux
Permissions on /var/adm/cron/cron.allow
-r--r--r-- 1 bin bin 137 Mar 10 2009 cron.allow
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
тАО04-13-2010 05:44 AM
тАО04-13-2010 05:44 AM
Re: how to enable the crontab for user in hpux
Please find the details.
# cd /var/spool/cron/
# ll
drwxrwxrwx 2 bin bin 96 Apr 13 08:34 crontabs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 05:45 AM
тАО04-13-2010 05:45 AM
Re: how to enable the crontab for user in hpux
# ll /var/adm/cron/cron.allow
-rw-r--r-- 1 bin bin 23 Apr 13 06:40 /var/adm/cron/cron.allow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 06:01 AM
тАО04-13-2010 06:01 AM
Re: how to enable the crontab for user in hpux
Try to change your $EDITOR variable from "emacs" to "vi" and try again.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 06:11 AM
тАО04-13-2010 06:11 AM
Re: how to enable the crontab for user in hpux
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 06:17 AM
тАО04-13-2010 06:17 AM
Re: how to enable the crontab for user in hpux
export EDITOR=vi
then retry "crontab -e"
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 06:43 AM
тАО04-13-2010 06:43 AM
Re: how to enable the crontab for user in hpux
I tried following methods.
1)# vi /home/john/.profile
export EDITOR = vi
1.1)then I loged in as john
1.2)# crontab -e
emacs: No such file or directory
crontab: can't create your crontab file in the crontab directory.
1.3)# echo $EDITOR
emacs
Then I have tried following steps.
2)# vi /etc/profile
export EDITOR = vi
2.1)then I loged in as john
2.2)# crontab -e
emacs: No such file or directory
crontab: can't create your crontab file in the crontab directory.
2.3)# echo $EDITOR
emacs
How to solve the issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 06:48 AM