- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- non-root cronjobs
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
тАО07-15-2005 10:00 AM
тАО07-15-2005 10:00 AM
What is command to find out cronjobs run by all non-root users ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 10:13 AM
тАО07-15-2005 10:13 AM
Solutionyou can do the following
ls -la /var/spool/cron/crontabs/*
and that will list the crontabs for each of the users
You as root can view each one of these files.
One other way is
for each in `ls /var/spool/cron/crontabs/*`
do
cat $each
done
This will list all the contents in each file for all the crontabs
thanks
DP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2005 06:53 AM
тАО07-16-2005 06:53 AM
Re: non-root cronjobs
but only those files that relate to an existing user are executed.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2005 07:38 PM
тАО07-16-2005 07:38 PM
Re: non-root cronjobs
Following info may be useful
/var/adm/cron Main cron directory
/var/spool/cron/atjobs
Directory containing at and batch job files
/var/spool/cron/crontabs
Directory containing crontab files
/var/adm/cron/log
Accounting information
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2005 03:19 PM
тАО07-17-2005 03:19 PM
Re: non-root cronjobs
/var/spool/cron/crontabs/ is the directory where each users cronjobs are specified by the username. These are ASCII files which can be viewed.
Secondly if you want to find out for perticular user give #crontab -l username which will list users crontab file
Cheers !!!
eknath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2005 04:58 PM
тАО07-17-2005 04:58 PM
Re: non-root cronjobs
As an addition to other replies if you
want to give permission to a non_root user
who may want to use cron then just add this
user to the file;
/var/adm/cron/cron.allow
Good Luck,