LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 05-11-2016, 05:00 AM   #1
eprasa4
LQ Newbie
 
Registered: May 2016
Posts: 2

Rep: Reputation: Disabled
Trace Crontab Edit User's Details


Dear All
I'm working on an AIX environment. Someone has changed one lpar's crontab.
Can you please give instructions to trace this
How I find who has done this and what's date , time , user id and ip ...
 
Old 05-11-2016, 11:54 AM   #2
wingnut64
Member
 
Registered: Sep 2004
Distribution: AIX, RHEL, Ubuntu
Posts: 51

Rep: Reputation: 23
I assume you don't have auditing on and they didn't do it via something that logs the action like sudo... The only thing that comes to mind is to check the /u/*/.sh_history files for references to cron, and correlate the modification dates in /var/spool/cron/* with logon events.

Note if you grep the .sh_history you need to pass it through
Code:
tr -d "\000"
as it has some non-printable characters.
 
Old 05-11-2016, 11:01 PM   #3
eprasa4
LQ Newbie
 
Registered: May 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks you very much for the given help,
Actually this is a audit enable area , but I'm new to AIX
It's much appriciate If you can tell me how to view audit logs and trace this
 
Old 05-12-2016, 09:04 AM   #4
wingnut64
Member
 
Registered: Sep 2004
Distribution: AIX, RHEL, Ubuntu
Posts: 51

Rep: Reputation: 23
I don't know them off-hand but I believe there are specific audit events for cron & at job modification and execution. See 'man audit', which lists the location of the config files that control what is audited and where the logs are written.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
user cannot edit his cron entries using crontab -e chickenjoy Solaris / OpenSolaris 5 01-19-2010 06:06 PM
crontab -e what does it actually edit? wimnat Linux - General 5 05-26-2009 10:26 PM
Can not edit crontab AbrahamJose Solaris / OpenSolaris 1 02-19-2009 08:31 AM
Can't Edit Crontab rignes Linux - Software 1 04-04-2007 11:01 AM
atq details - cron/crontab nadine.mauch Linux - Software 2 01-03-2005 02:01 AM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 12:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration