- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can root can check and compare two machine fil...
Operating System - HP-UX
1748180
Members
3797
Online
108759
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО06-27-2005 05:24 AM
тАО06-27-2005 05:24 AM
How can root can check and compare two machine files' ownership/group/permissions?
we have a program directory in both production and testing machines.
we rsync the files under /mflive/prog/LOAD01 and its subdir each night.
Sometimes, a file may change ownership/group/permissions during the day.
How can root can check and compare two machine files' ownership/group/permissions (a script)?
ls -R /mflive/prog/LOAD01
We have remsh or rcp could ship files between these two servers.
Thanks,
we rsync the files under /mflive/prog/LOAD01 and its subdir each night.
Sometimes, a file may change ownership/group/permissions during the day.
How can root can check and compare two machine files' ownership/group/permissions (a script)?
ls -R /mflive/prog/LOAD01
We have remsh or rcp could ship files between these two servers.
Thanks,
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2005 05:29 AM
тАО06-27-2005 05:29 AM
Re: How can root can check and compare two machine files' ownership/group/permissions?
on both machines, run an
ls -l >/tmp/files.`hostname`
command.
Then consolidate these files on one side then run them against a diff command
e.g.
diff files.host1 files.host2
it will give you an output of lines with different contents. Since your file size is not changing (hopefully) it will show you the ones with modified permissions/ownerships and modification times.
you can process these files with awk to get only the info you want if necessary
HTH
ls -l >/tmp/files.`hostname`
command.
Then consolidate these files on one side then run them against a diff command
e.g.
diff files.host1 files.host2
it will give you an output of lines with different contents. Since your file size is not changing (hopefully) it will show you the ones with modified permissions/ownerships and modification times.
you can process these files with awk to get only the info you want if necessary
HTH
________________________________
UNIX because I majored in cryptology...
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2005 05:31 AM
тАО06-27-2005 05:31 AM
Re: How can root can check and compare two machine files' ownership/group/permissions?
A shell script would be sufficient to alert to the changes. You have an established baseline and subsequent searches check the files against the established baseline. If there are differences then send an alert of some kind.
There are some applications that can be configured to search where you want. Example, tripwire can be configured to search a user-specified directory and report changes.
Other applications available as shareware/freeware. Check www.google.com
There are some applications that can be configured to search where you want. Example, tripwire can be configured to search a user-specified directory and report changes.
Other applications available as shareware/freeware. Check www.google.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2005 05:43 AM
тАО06-27-2005 05:43 AM
Re: How can root can check and compare two machine files' ownership/group/permissions?
Burslan,
Thank you. There are several levels of subdirectories. This works.
Thanks,
Bin
Thank you. There are several levels of subdirectories. This works.
Thanks,
Bin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP