lkml.org 
[lkml]   [2005]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: Why Ext2/3 needs immutable attribute?
    Date
    On Apr 23, 2005, at 12:50, dean gaudet wrote:
    > On Sun, 17 Apr 2005, Xin Zhao wrote:
    >
    >> Why not simply unset the write bit for all three groups of users?
    >> That seems to be enough to prevent file modification.
    >
    > another usage: if you "chattr +i /var" while /var is unmounted, then
    > root
    > is unlikely to accidentally create files/dirs in /var -- and when you
    > mount the real /var on top it works fine. i tend to protect all my
    > mount
    > points this way (especially those in /mnt) to avoid my own dumb
    > mistakes.

    If you chmod 000 /var beforehand (While it's still unmounted, of
    course),
    then it's also blindingly obvious that it's not mounted in an ls -l :-D.
    I too have used this trick on many/most of my systems.

    Cheers,
    Kyle Moffett

    -----BEGIN GEEK CODE BLOCK-----
    Version: 3.12
    GCM/CS/IT/U d- s++: a18 C++++>$ UB/L/X/*++++(+)>$ P+++(++++)>$
    L++++(+++) E W++(+) N+++(++) o? K? w--- O? M++ V? PS+() PE+(-) Y+
    PGP+++ t+(+++) 5 X R? tv-(--) b++++(++) DI+ D+ G e->++++$ h!*()>++$ r
    !y?(-)
    ------END GEEK CODE BLOCK------


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-04-23 20:56    [W:3.163 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site