permtool
---------
Sometimes people like to export a wwwoffle cache to another (Linux) system 
where filepermissions and daemon user/group may vary, for example
from a redhat / fedora to a debian box.

This tool can change ownerships and permissions on the new box in an interactive
menu based way that should help prevent errors. 
It can be used for tasks completely unrelated to wwwoffle asl well, of course.

WARNING: It did work several times, but it's still a beta hack. No warranty !

You can configure a list of paths that will be searched and proceeded,
and also a list of paths that will be excluded from processing.
The tool modifies only files/dirs which match your configured
permission/ownership criteria.
Permission (access rights) and ownership modification is issued seperately 
from a simple text menu. All actions are taken verbosely, and there also will 
be a logfile which contains the appendet output of all tasks you ran.

The recent configuration is an example how to convert a cache from
a redhat box to debian. 

For more info, read the script header.


    Have fun !
    -- mi.

--------------------------------------------------------------------------

Note:
If you need to copy the wwwoffle cache to export it to another system,
please note that some directories are actually symbolic links,
e.g. for wwwoffle 2.8c on a debian installation:
   
/var/cache/wwwoffle/html	-> /etc/wwwoffle/html
/var/cache/wwwoffle/monitor -> ../../lib/wwwoffle/monitor
/var/cache/wwwoffle/search/udmsearch -> mnogosearch
/var/cache/wwwoffle/search/namazu/conf -> /etc/wwwoffle/namazu
/var/cache/wwwoffle/search/namazu/scripts -> /usr/share/wwwoffle/search/mamazu
/var/cache/wwwoffle/search/mnogosearch/conf -> /etc/wwwoffle/mnogosearch	
/var/cache/wwwoffle/search/mnogosearch/scripts -> 
/usr/share/wwwoffle/search/mnogosearch
/var/cache/wwwoffle/search/htdig/conf -> /etc/wwwoffle/htdig
/var/cache/wwwoffle/search/htdig/scripts -> 
/usr/share/wwwoffle/search/htdig
/var/cache/wwwoffle/local	-> (this is reserved for a custom www directory)

