using bazaar as root

Brian de Alwis bsd at cs.ubc.ca
Sat Dec 20 00:33:40 GMT 2008


On 19-Dec-2008, at 4:37 PM, John Arbash Meinel wrote:
> The primary issue is that we don't version the file permissions. We
> generally *preserve* them, but if you delete a file completely, and  
> then
> use "bzr revert" to bring it back, it will come back based on your
> umask. So likely to either be rw-rw-r-- or rw-r--r--- (umask 0002,  
> 0022
> respectively).


You may want to look at using something like mtree.  mtree is a BSD  
tool that uses a declarative format for recording, verifying, and  
setting permissions for a directory tree or paths; you could version  
control the declarative file along with your changes.  There are some  
writeups online about using it as a trip-wire:

	http://www.free-x.ch/pub/mtree-tripwire.html
	http://www.macdevcenter.com/lpt/a/6260

mtree ships with the *BSD distributions and MacOS X, and might be part  
of some of the Linux package distributions (it's in pkgsrc.org as  
sysutils/mtree).  The source is available from:

	ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/pkgtools/mtree/files/

or via CVS as:

	cvs -d :pserver:anoncvs at anoncvs.netbsd.org:/cvsroot co pkgsrc/ 
pkgtools/mtree/files/

Brian.

-- 
"Amusement to an observing mind is study." - Benjamin Disraeli




More information about the bazaar mailing list