> From: Rob Montgomery <[EMAIL PROTECTED]>
        >
        > [My client] did a chown -R as root and royally screwed
        > up the machine.

    It isn't pleasant, but you can do
        % rpm -V -a
        .
        .
        .
        S.5....T c /etc/printcap

    and get a list of all the files that the RPM database thinks
    have been modified.  The files that have had their mode bits
    changes will get a 'M' flag as the second character in the
    first field.

    So
        % rpm -V -a | egrep '^.M'
    Should give you a list of everything that has been changed.

    You can then try to fix things by hand, or look at another
    Cobalt box for the right value.  You can also grab most of
    our rpms from
        ftp.cobaltnet.com/pub/products/

    Be careful about installing rpms to be sure that you don't
    downrev things.  Use 'rpm -q -f' to get the rpm version, and
    look for that RPM, either in the product directories, or the
    updates.

    It seems to me that you should be able to get the target
    modes from the RPM databases in /var/lib/rpm, but I don't
    see an easy way other than hacking up a perl script and 
    decyphering the rpm record format.

    cj*

_______________________________________________
cobalt-developers mailing list
[EMAIL PROTECTED]
http://list.cobalt.com/mailman/listinfo/cobalt-developers

Reply via email to