- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 06:50 AM
тАО04-13-2010 06:50 AM
Re: how to enable the crontab for user in hpux
export EDITOR = vi
to
export EDITOR=vi
no spaces
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 06:54 AM
тАО04-13-2010 06:54 AM
Re: how to enable the crontab for user in hpux
export EDITOR=vi
crontab -e
and see what happens.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 07:16 AM
тАО04-13-2010 07:16 AM
Re: how to enable the crontab for user in hpux
ll /usr/lib/cron/cron.allow
- and/or -
ll /var/adm/cron/cron.allow
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 07:25 AM
тАО04-13-2010 07:25 AM
Re: how to enable the crontab for user in hpux
Is the system trusted?
I remember, long ago running into a problem adding oracle to cron allow user list on a trusted system.
Had to run through a special procedure to fix it.
Though I recall betting a pretty specific error message which we are not seeing here.
As user John:
env > /tmp/john.env.txt
Take a look there.
It is possible but not advisable as root to directly edit the cron schedules in /var/spool/cron/crontabs
See what if anything is there.
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 09:28 AM
тАО04-13-2010 09:28 AM
Re: how to enable the crontab for user in hpux
export EDITOR = vi
to
export EDITOR=vi
no spaces
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 09:32 AM
тАО04-13-2010 09:32 AM
Re: how to enable the crontab for user in hpux
sh EDITOR=vi crontab -e
and it will work OK even if the user is running the scummy csh shell.
NOTE: drwxrwxrwx is a severe security risk for your system. Someone tried to fix a problem by compromising the security of every cron job with 777 permissions. The correct permission is 555 owned by bin:bin.
Bill Hassell, sysadmin
- Tags:
- scummy C shell