xfs
[Top] [All Lists]

Re: immutable bits

To: "Net Llama!" <netllama@xxxxxxxxxxxxx>
Subject: Re: immutable bits
From: Greg Whynott <greg@xxxxxxxxxxxxxxxxxx>
Date: Thu, 20 Nov 2003 12:54:58 -0500
Cc: "linux-xfs@xxxxxxxxxxx" <linux-xfs@xxxxxxxxxxx>
Organization: Calibre Digital Pictures
References: <3FBCF711.CBEFC5EE@calibredigital.com> <Pine.LNX.4.55.0311201236060.14338@linux-sxs.org>
Sender: linux-xfs-bounce@xxxxxxxxxxx
thanks for the reply.

chattr works wonders on an ext file system,  it is what i spoke of
actually.

issuing "chattr +i foo" would cause foo to be 'unlinkable' until you
issued a "chattr -i foo".  i believe this command is only for ext file
systems,  but i could be wrong.

the man page:
[root@nova sdc]# man -k chattr
chattr  (1)  - change file attributes on a Linux second extended file
system

[root@nova sdc]# chattr +i foo/
chattr: Inappropriate ioctl for device while reading flags on test/

[root@nova sdc]# mount |grep sdc
/dev/sdc on /export/sdc type xfs (rw)

i am looking into the ACL bits now,  i was thinking perhaps there was a
similar command.  

thanks  Llama,

greg



"Net Llama!" wrote:
> 
> On Thu, 20 Nov 2003, Greg Whynott wrote:
> >
> > We converted all our file systems to XFS.  On the ext3 file systems we
> > would set the immutable bit on some dirs.  Is there something  similar I
> > can set on a directory within an XFS filesystem?
> >
> > We don't want folks with root to be able to delete dirs and files
> > without a few extra steps taken.
> 
> Would chattr work?
> 
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Lonni J Friedman                                netllama@xxxxxxxxxxxxx
> Linux Step-by-step & TyGeMo                  http://netllama.ipfox.com

-- 
UNIX is user friendly, it's just selective about who its friends are.


<Prev in Thread] Current Thread [Next in Thread>