comparing permissions in an archive

2005-10-01 Thread Vizion
Hi

Someone must know a simple way to do this:

I regulalrly need to compare the permissions of two largely similar archives 
stored in two seperate paths.

Most of the files are of the same name and relative path but  there may be 
miscellaneous additional files present or absent in each archive.

I want:
1.  to be able to produce a list of the full path and name of those files that 
share an identical path from their respective archive roots, but have 
different permissions. 

2. After examining the list I would like to be able to adjust the permissions 
so that files of the same path and name in one selected archive are afjusted 
to match the permissions of their equivalent file in the other archive.

Does anyone have a simple solution?

thanks

david


-- 
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: comparing permissions in an archive

2005-10-01 Thread Glenn Dawson

At 02:29 PM 10/1/2005, Vizion wrote:

Hi

Someone must know a simple way to do this:

I regulalrly need to compare the permissions of two largely similar archives
stored in two seperate paths.

Most of the files are of the same name and relative path but  there may be
miscellaneous additional files present or absent in each archive.

I want:
1.  to be able to produce a list of the full path and name of those 
files that

share an identical path from their respective archive roots, but have
different permissions.

2. After examining the list I would like to be able to adjust the permissions
so that files of the same path and name in one selected archive are afjusted
to match the permissions of their equivalent file in the other archive.

Does anyone have a simple solution?


take a look at mtree, it should be able to do what you need.

-Glenn



thanks

david


--
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after
completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]