- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Crontab remove
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
Forums
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
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
тАО12-16-2004 09:48 PM
тАО12-16-2004 09:48 PM
Need help here, I am running on HPUX 11.00. I came to the office this morning and found that on of the user profile's crontab are gone as well as the command prompt of the user is change. This username is an application user.
The only clue that I have is the .profile of the user was modified around 0007H ( Dec 17).
Is there a way to check how that happened?
Thanks,
Paul
Solved! Go to Solution.
- Tags:
- crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2004 10:00 PM
тАО12-16-2004 10:00 PM
Re: Crontab remove
Maybe there are still traces in .sh_history in user's and root home directories.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2004 10:26 PM
тАО12-16-2004 10:26 PM
Re: Crontab remove
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2004 10:31 PM
тАО12-16-2004 10:31 PM
Re: Crontab remove
Does this user have a history file ?
# cat /$HOME/.sh_history
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2004 11:07 PM
тАО12-16-2004 11:07 PM
Re: Crontab remove
Currently the system don't have any /var/adm/wtmp. How do I recreated it?
Regards,
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2004 12:15 AM
тАО12-17-2004 12:15 AM
Re: Crontab remove
(I don't know what process populates wtmp file)
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2004 12:53 AM
тАО12-17-2004 12:53 AM
Solution"Also note that wtmp and btmp are not created by the programs that maintain them. Thus, if these files are removed, record-keeping is turned off."
Oops. Some root user probably saw wtmp getting large and simply removed it (ouch!) so commands like last will no longer produce anything. wtmp can be created with:
touch /var/adm/wtmp
chmod 664 /var/adm/wtmp
chown adm:adm /var/adm/wtmp
Also make sure that /var/adm/btmp exists. If not, use the touch/chmod/chown as above BUT make sure chmod is 640 (NO ONE gets to read btmp except root). lastb is the command that formats the btmp file.
As far as the culprit that made the changes, the user may not have made the changes, a root user ocould have done the deed. Check for duplicate root users:
logins -d
Multiple UID=0 is a BIG security no-no and one of the first hacks made by an intruder. You can also grep through all the /home/*/.sh_history files:
grep username /home/*/.sh_history
Also check if any of the HOME directories have missing .sh_history files, zero'ed .sh_history files, or the permission/ownership on the .sh_history file prevents the owner's shell from recording any commands. Any of those 3 conditions needs to be investigated.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2004 12:58 AM
тАО12-17-2004 12:58 AM
Re: Crontab remove
You had better have Backup Tapes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2004 01:16 PM
тАО12-19-2004 01:16 PM
Re: Crontab remove
I happened to look at the console of the server and on the screen it has "cron job aborted " message.
Any ideas on what it mean?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2004 01:47 PM
тАО12-19-2004 01:47 PM
Re: Crontab remove
vi /$USER_HOME_DIRECTORY/.profile
--- search this line---
export HISTFILE=/.sh_history
if it exits, history is set on your system for that user.
2. If user have a history file, check user's history file to know what happend
# vi /$USER_HOME_DIRECTORY/.sh_history