On Sat, Dec 04, 2010 at 01:53:13PM +0100, Ingo Schwarze wrote:
>When causing an exceptionally ugly mess by hand,
>i'd say cleaning up that mess by hand is a sane approach.
>
>Scripts like rc(8) and daily(8) are supposed to cover maintenance
>issues related to normal and sane usage of the system.
>I'm not sure setting uchg in /tmp belongs into that class.

One can put his own stuff into /etc/rc.securelevel, right...

>All this could certainly be done better with find find(1) -flags,
>but i would prefer keeping this code as simple as possible
>and not trying to deal with flags.

I haven't known about "-flags" before, thanks. But...

-flags [-]flags
        The flags are comma-separated symbolic file flags (see chflags(1)
        for a list of valid flag names).  If the flags are preceded by a
        dash (`-'), this primary evaluates to true if at least all
        specified flags are set in the file's flags.  If the flags are
        not preceded by a dash, this primary evaluates to true if the
        flags specified exactly match those of the file.

...wouldn't make more sense if "-flags -sappnd,schg,uappnd,uchg" would work
like "if at least one from specified flags is set" ?

Because I don't know how to easily find any of files with those above flags
to chflags and delete them.

jirib

Reply via email to