- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- view crontab -l as non root user
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
тАО02-05-2003 07:45 AM
тАО02-05-2003 07:45 AM
view crontab -l as non root user
(only viewing is necessary, not editing)
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2003 07:54 AM
тАО02-05-2003 07:54 AM
Re: view crontab -l as non root user
Go to
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.6/
Install sudo
sudo-1.6.6
A package to allow commands to be run as the superuser. Sudo determines who is an authorised user by consulting your /etc/sudoers database. The program prompts for a user's password to initiate a validation period of N minutes, here N is defined at installation time. N.B. There is no easy way to prevent a user from gaining a root shell if he has access to commands that are shell scripts or that allow shell escapes.
regards
Steve Steel
Note. this is public domain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2003 07:54 AM
тАО02-05-2003 07:54 AM
Re: view crontab -l as non root user
A package to allow commands to be run as the superuser
super-3.9.7 (29 Apr 1997)
Super allows users to execute commands as a superuser
both can be found here:
http://hpux.cs.utah.edu/
search for super or sudo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2003 07:55 AM
тАО02-05-2003 07:55 AM
Re: view crontab -l as non root user
chmod 444 /var/spool/cron/crontabs/root
more /var/spool/cron/crontabs/root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2003 07:56 AM
тАО02-05-2003 07:56 AM
Re: view crontab -l as non root user
You could just run a cronjob every hour or so which does crontab -l to another file
steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2003 08:00 AM
тАО02-05-2003 08:00 AM
Re: view crontab -l as non root user
Regards to all,
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2003 08:01 AM
тАО02-05-2003 08:01 AM
Re: view crontab -l as non root user
sudo will help you,
this will available at the link posted by Steve
giving the permision for that user to read can view crontab of root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2003 08:12 AM
тАО02-05-2003 08:12 AM
Re: view crontab -l as non root user
I'm not a "sudo" or "super" expert, but I'm afraid they work on command basis, and not on parameter level. So if you allow somebody to use a command through sudo or super they will also be able to use:
crontab -e user
crontab -r user
next to the wanted crontab -l user
Hope I'm wrong however.
Otherwise regular dump to a file, accessible by the required user, would be the least insecure option.
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2003 08:15 AM
тАО02-05-2003 08:15 AM
Re: view crontab -l as non root user
A very easy way to **view** cron file of any user is the followin:
Every cron files are created into /var/spool/cron/crontabs directory. A user have a file with a specific restrictive mode, generally readable only by the owner. If you expand mode readable permission (a risky security factor) to group or other user you can access this file with a simple "cat /var/spool/cron/crontabs/root"
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2003 08:42 PM
тАО02-05-2003 08:42 PM
Re: view crontab -l as non root user
Sudo has many uses but you have to be careful with it. I remember going to a site where they had given sudo permissions to vi! Hmmm, if you can start vi with root permissions, not much you can't do. Same thing with crontab, which could allow anyone to create a cron job to give themselves a root account.
Chuck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2003 12:45 AM
тАО02-06-2003 12:45 AM
Re: view crontab -l as non root user
It's a good idea anyway to backup your cron files using "crontab -l > filename" - it's saved me on a number of occasions without having to resort to tapes...
rgds, Robin