![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| deleted /usr | rahmantanko | UNIX for Dummies Questions & Answers | 5 | 03-27-2009 02:40 PM |
| spam deleted | SGReddy | AIX | 0 | 12-10-2008 01:40 AM |
| crontab deleted accidently | unisam | UNIX for Dummies Questions & Answers | 3 | 05-27-2004 04:51 PM |
| crontab entries deleted !! | minazk | UNIX for Advanced & Expert Users | 6 | 11-22-2002 04:27 PM |
| Deleted /etc/passwd | cyno | UNIX for Dummies Questions & Answers | 5 | 08-11-2002 03:00 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Who deleted crontab?
We are using SunOS 5.10 and Korn Shell. If we need to figure out who deleted our crontab file for a particular user what do we do.
Thanks in Advance!! ---------- Post updated at 08:08 AM ---------- Previous update was at 07:19 AM ---------- Friends, Please help.... |
|
|||||
|
my best guess would be, the user himself - executing crontab without the '-l'. This removes the crontab and is on my environments the most common reason for disappearing crontabs. They want to look at it and remove it in error.
Hope that helps zxmaus |
|
||||
|
In debian kind of systems, we use /etc/crontab to specify cron entries along with the user name.
So the user will not have permission to remove, and the super user can maintain his cron entry as you asked for. Sample cron entry.. Code:
* * * * * john /bin/ls /home/john >> /tmp/test-etc-cron For more refer, Advanced Crontab section of https://help.ubuntu.com/community/CronHowto |
|
||||
|
Just to make sure that even if one runs a crontab -r to remove the crontab, it remains affected... in a way to undone it.....
Please tell me if we can do something like this>> When one issues crontab-r , it calls a script which replaces the original crontab entries back in place.... such that the crontab entries remain and the crontab -r command is ignored in this way. Also in the script it sends a mail to the admin with the userid, timestamp. Thanks in Advance!! |
|
||||
|
Restore from backup is about the only solution.
IF you have a group of users who misuse the crontab command all the time, then create a crontab alias for that group in /etc/profile for example: Code:
alias crontab='/usr/local/bin/mycrontab.sh' This is a most strange request - is your system wide open so that anybody can delete somebody else's crontab? Allowing anyone to change any crontab is a huge security hole. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|