- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script to find out who is moving files into produc...
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
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
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
11-12-2003 11:29 AM
11-12-2003 11:29 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 11:43 AM
11-12-2003 11:43 AM
Re: Script to find out who is moving files into production?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 11:44 AM
11-12-2003 11:44 AM
Re: Script to find out who is moving files into production?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 12:30 PM
11-12-2003 12:30 PM
Re: Script to find out who is moving files into production?
Its a great tool, I recommend it, but not for this application. Unless these folks are overwriting root access configuraiton files. Which means root password security is an issue.
You might want to harden your system with Bastille.
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B6849AA
Thus far I've skillfully avoided actually answering your question.
Because users are coming in via a vpn, there may not be enough data on the hp system to figure out who did what.
inetd -l
Enhances logging of all internet connections including ftp and secure shell.
Start analyzing the /var/adm/syslog/syslog.log file for the transactions you care about.
Run them agains the vpn log if you are getting the vpn ip address in syslog.log
When you see an important file has changed, you should be able to match its time stamp against syslog and trace it back to the offender.
Thats the best I can think of so far.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 05:09 PM
11-12-2003 05:09 PM
Re: Script to find out who is moving files into production?
It's not great but it's a thought.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 02:47 AM
11-13-2003 02:47 AM
Re: Script to find out who is moving files into production?
Second, develop a script-
1) To copy from the programmers workbench to production. You could use "sudo" to give the script permissions to do the actual copy.
2) To make a backup of the original prior to copying.
3) To track who copied what when.
You may want to look into some type of change control system (RCS or PVCS) so the programmers have to "check-out" a programmer before changins (so 2 programmers don't try to change the same program at the same time).
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 02:48 AM
11-13-2003 02:48 AM
Re: Script to find out who is moving files into production?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 03:04 AM
11-13-2003 03:04 AM
Re: Script to find out who is moving files into production?
Thats just it. They need write permisions when they log into the application. The application then does security. These programs are owned by the Database and everyone is part of the group staff. so I can't take these permissions away. We are already trying to do your 3 steps, but are having trouble with step 3. because because people copy the program over with a -pf so the owner still the database user. So what do we use in the script which will show who actually moved the program into production?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 04:16 AM
11-13-2003 04:16 AM
Re: Script to find out who is moving files into production?
The Bastille looks like a possible answer. But after reading up on it, we are not running popular products, and there are warnings to use extreme caution because very few products have be tested. I do not have a seperate test server to try.I will start to analyze my syslog.log closer to match times.
We have a script ready to run daily that will show us what program files were touched, to at least know when they are changed. I will then have to do some detective work to find out who-did-it. Maybe after catching a few culprits they will begin to follow the procedure to notify me. I can then ask any departments who mya possibly be effective; to notify and verify that it has been tested in the test environment.
In the past places I have worked in there were few programmers with such privilages. But here we have in house programmers and out side consultants fixing and changing things. I hope to some how get some control.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 04:30 AM
11-13-2003 04:30 AM
Re: Script to find out who is moving files into production?
Your idea to add something in the .profile is very interesting. It may work as long as at the end of the day command is still in the history. I am still unsure exactly how to set up, but I will see what I can find.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 04:35 AM
11-13-2003 04:35 AM
SolutionSecond, I'd suggest HIDS (aka IDS/9000)
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=J5083AA
which can be used to monitor files realtime and tell you which user changed them. Unfortunately, it sounds like the user would be the "application/database" user, so that may not be as helpful as you would like, but at least it can alert you as soon as it happens.
Third, another option would be to store a read-only backup of the real 'production' files and simply 'restore' them on a regular basis. Soon, the programmers will realize that their efforts to overwrite the production code are not doing what they expect and they'll complain and then you'll know who did it :)
I don't really recommend the third option...if you can determine the 'production' files that you would overwrite, then you can restrict the write access on those files without the elaborate procedure.
-Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 04:52 AM
11-13-2003 04:52 AM
Re: Script to find out who is moving files into production?
If this is too open you'll get some headache
In another words, be proactive on the subject.
Also a rollback procedure should be part of your app. rollout procedure.
Anything like "testing and overwritting in production", very scary !
Rgds,
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 05:00 AM
11-13-2003 05:00 AM
Re: Script to find out who is moving files into production?
A new lead here in IT had reccomended PVCS solution. I was kind of skeptical on how that would work. Maybe that is worth a try. The only RCS I found is freeware, and I would like to purchase one so I can have piece of mind with support. Any recomendation on PVCS or RCS product?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 05:17 AM
11-13-2003 05:17 AM
Re: Script to find out who is moving files into production?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 05:26 AM
11-13-2003 05:26 AM
Re: Script to find out who is moving files into production?
At our site we have a development database system where the programmers make their changes, and the change control system keeps track of which programs/screens/menus/reports have been changed. Then the programmer requests the database administrator to "roll" the updated items into production (programmers do not have direct write access to production). This allows us to keep track what has changed and for what reason a set of changes was made.
This probabily won't help your situation if the database system does not have its own change control system.
We are running a database system called uniVerse and an application called Avante. The changed control system is named PRC.
You may want to post your question to a forum that deals with the database system you are using.
Sorry can't be of more help...
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 05:28 AM
11-13-2003 05:28 AM
Re: Script to find out who is moving files into production?
You are right, I guess the users need write access to the Data which is in a separate Directory then the Programs (which right now is the problem). I will begin modifying the rights in one of the test environments program directory to make sure the application still works okay. Also the HIDS sounds like something I really need too. I really liked your 3rd recomendation; it would quickly teach them a lesson, but would probably cause other issues that I would then be responsible for...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 05:35 AM
11-13-2003 05:35 AM
Re: Script to find out who is moving files into production?
We are running a database called Basis PRO5 which is not really a database at all, more like a flat file. There are not many utilities. But for kicks, I will check with our application and Database support...
Thanks for all your support!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 05:49 AM
11-13-2003 05:49 AM
Re: Script to find out who is moving files into production?
You can go here:
http://hpux.cs.utah.edu/hppd/search.html
and do a search on rcs and you will find a version in .depot format.
However, I would also stress communication. Let your co-workers know a file is getting overwritten without proper backup. Let them know you are working on hardening both your revision control and your auditing. And let them know that they are ultimately hurting themselves by not following the process.
Good luck with it
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2003 01:39 AM
11-14-2003 01:39 AM
Re: Script to find out who is moving files into production?
CVS is open-source, but there is good documentation on using it. It's security model is a little strange, but works better than other products I have used. Being open-source there isn't a problem giving all developers a copy. There are GUI tools for all environments. It also seems to integrate with more development tools than any of the commercial tools. Jalindi Igloo provides good integration with tools using the MSS protocol.
Developers and testers should not have write access to the production source. The recommendation of per user data directories is a good one and should be persued.
We have development, testing, and production environments. This has several benefits including resolving the problems you appear to have.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2003 04:42 AM
12-24-2003 04:42 AM
Re: Script to find out who is moving files into production?
When programs are ready to move into production, an administrator (or other designated person) moves the new/updated programs into the production environment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2003 05:20 AM
12-29-2003 05:20 AM
Re: Script to find out who is moving files into production?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2004 09:48 AM
02-25-2004 09:48 AM
Re: Script to find out who is moving files into production?
$ cp /scratch/a /production/a
The shell would log the action and then call the actual cp command to carry out the request. This is conceptually along the lines of TCP Wrappers - sticking some additional functionality in front of a command you want to lock down. You could also add some logic so that only movement to/from specific directories is logged rather than all movement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2004 09:38 AM
02-26-2004 09:38 AM
Re: Script to find out who is moving files into production?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2004 10:46 AM
02-26-2004 10:46 AM
Re: Script to find out who is moving files into production?
We wrote a script that notifies us if the time stamp of a program changes. This has been working out pretty good for the programs. I at least know if a program was changed. But a few weeks ago the hugest data file on production was blown away.... Luckily it was not that important. I restored it from tape... But I am still wondering what or who made it dissapear....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2007 09:44 AM
02-22-2007 09:44 AM
Re: Script to find out who is moving files into production?
Also, allows you to log all activity down to the keystroke level.