HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Root Equivalent Cron job
Operating System - HP-UX
1825750
Members
2351
Online
109687
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
02-02-2001 07:23 AM
02-02-2001 07:23 AM
Hello.
Due to root's cron job list getting to big and confusing, I wanted to split some of the entries. For example, many of the entries are for batch processing of our application and/or database tasks, these I want to move to another id called batch that will require the equivalent of root.
I have created a userid for batch and all the other administration for the user.
How do I set this up?
Suggestions?
Due to root's cron job list getting to big and confusing, I wanted to split some of the entries. For example, many of the entries are for batch processing of our application and/or database tasks, these I want to move to another id called batch that will require the equivalent of root.
I have created a userid for batch and all the other administration for the user.
How do I set this up?
Suggestions?
Always learning
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2001 07:32 AM
02-02-2001 07:32 AM
Solution
Hi Nick:
It's good practice to run only those tasks that need to be run as root under root.
By "equivalent of root", I hope you are not intending to replicate UID=0 for your other account(s). This is a DANGEROUS practice that should be avoided.
I assume (no comments, please) that your "batch" accounts are "normal" users. Therefore, make sure to declare them appropriately in cron's 'allow' and/or 'deny' files (/var/adm/cron.allow & /var/adm/cron.deny) as necessary.
See 'man crontab' for details.
...JRF...
It's good practice to run only those tasks that need to be run as root under root.
By "equivalent of root", I hope you are not intending to replicate UID=0 for your other account(s). This is a DANGEROUS practice that should be avoided.
I assume (no comments, please) that your "batch" accounts are "normal" users. Therefore, make sure to declare them appropriately in cron's 'allow' and/or 'deny' files (/var/adm/cron.allow & /var/adm/cron.deny) as necessary.
See 'man crontab' for details.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2001 07:41 AM
02-02-2001 07:41 AM
Re: Root Equivalent Cron job
Hi
I agree with James that it is bad and dangerous practice to create extra UID=0.
Do you identify your jobs in the crontab ?
A small example of my crontab:-
########################################################
# Do not ammend without clearing with SYSADMIN first #
########################################################
# Mirror backup to N-0/avroTWO dir
00 10 * * * /sysadmin/mirrorbackup > /dev/null 2>&1
00 12 * * * /sysadmin/mirrorbackup > /dev/null 2>&1
00 14 * * * /sysadmin/mirrorbackup > /dev/null 2>&1
00 16 * * * /sysadmin/mirrorbackup > /dev/null 2>&1
00 18 * * * /sysadmin/mirrorbackup > /dev/null 2>&1
00 20 * * * /sysadmin/mirrorbackup > /dev/null 2>&1
50 20 * * * /sysadmin/k1copy > /dev/null 2>&1
########################################################
# Passwd hosts netconf etc copy
30 23 * * * /sysadmin/k1-k2
########################################################
# Cemis update
00 01 * * * /universe/DOWNLOADS/cemis.update
########################################################
# Remove core dumps
00 06 * * * /sysadmin/core_clean
########################################################
# Check disk space
00 05 * * * /sysadmin/spacecheck
If you seperate and flag what is going on it is by far easier to maintain.
HTH
Paula
I agree with James that it is bad and dangerous practice to create extra UID=0.
Do you identify your jobs in the crontab ?
A small example of my crontab:-
########################################################
# Do not ammend without clearing with SYSADMIN first #
########################################################
# Mirror backup to N-0/avroTWO dir
00 10 * * * /sysadmin/mirrorbackup > /dev/null 2>&1
00 12 * * * /sysadmin/mirrorbackup > /dev/null 2>&1
00 14 * * * /sysadmin/mirrorbackup > /dev/null 2>&1
00 16 * * * /sysadmin/mirrorbackup > /dev/null 2>&1
00 18 * * * /sysadmin/mirrorbackup > /dev/null 2>&1
00 20 * * * /sysadmin/mirrorbackup > /dev/null 2>&1
50 20 * * * /sysadmin/k1copy > /dev/null 2>&1
########################################################
# Passwd hosts netconf etc copy
30 23 * * * /sysadmin/k1-k2
########################################################
# Cemis update
00 01 * * * /universe/DOWNLOADS/cemis.update
########################################################
# Remove core dumps
00 06 * * * /sysadmin/core_clean
########################################################
# Check disk space
00 05 * * * /sysadmin/spacecheck
If you seperate and flag what is going on it is by far easier to maintain.
HTH
Paula
If you can spell SysAdmin then you is one - anon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2001 07:49 AM
02-02-2001 07:49 AM
Re: Root Equivalent Cron job
Hmm, maybe I didn't ask correctly. Here is part of my crontab file.
On second thought, I think you have pointed me in the right direction.
The database activities that are currently called up by Root's cron can probably be moved to batch's cron.(after some testing of course)
Therefore, root equivalent batch is not required at all.
Thank you to both of you for your replies and frankness. You gotta love this forum.
Nickd
(Unix wannabe I guess)
On second thought, I think you have pointed me in the right direction.
The database activities that are currently called up by Root's cron can probably be moved to batch's cron.(after some testing of course)
Therefore, root equivalent batch is not required at all.
Thank you to both of you for your replies and frankness. You gotta love this forum.
Nickd
(Unix wannabe I guess)
Always learning
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP