xfs
[Top] [All Lists]

Re: root and xfsdump.

To: Johan Bengtsson <johanb@xxxxxxxxxx>
Subject: Re: root and xfsdump.
From: Timothy Shimmin <tes@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 24 Jul 2001 15:17:59 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <200107191626.f6JGQEn32426@xxxxxxxxxxxxxxxxxxxx>; from lord@xxxxxxx on Thu, Jul 19, 2001 at 11:26:14AM -0500
References: <johanb@xxxxxxxxxx> <200107191626.f6JGQEn32426@xxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
Hi Johan,

On Thu, Jul 19, 2001 at 11:26:14AM -0500, Steve Lord wrote:
> > 
> > Hi,
> > I noticed that xfsdump insist on being run only by root. 
> > Would things break if it was run by a normal user, given that this
> > user can read the disk device?
> > 
> >      / Johan
> 
> 
> xfsdump writes an inventory file out to /var/xfsdump/inventory/ this
> would fail if you were not root - unless you opened up permissions in
> there. There is a -J option which may surpress writing to this directory,
> I only read the man page, not the code.
> 
> Steve
> 
> 
Also, xfsdump uses bulkstat's (ioctl of XFS_IOC_FSBULKSTAT) to iterate
through the inodes of the FS which require CAP_SYS_ADMIN capability 
in order to succeed. 

--Tim


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