Subject: Re: BAD SU and mtree
To: Seth van Buren <seth@heavydutymedia.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 10/08/2000 13:41:33
On Sun, Oct 08, 2000 at 09:04:35PM +1100, Seth van Buren wrote:
> Hi,
> I keep getting a BAD SU to root when attempting to su.
> 
> This has happened since I moved my /usr partition to another disk.
> 
> I used pax, but I t looks as if I stuffed something.

Yes, probably the mode bits didn't get copied properly (did you use '-p' ? ).

> 
> I think I can use mtree to check the permissions of the /usr hierachy, but I
> am not sure how to obtain the specification for the mtree command to use
> during it's checking.
> 
> Can you tell me how I can use mtree to check the permissions on the files
> for a normal install of /usr.

Something like this should work:

mtree -c -x -p /usr > /tmp/specif

and then, to restore modes:
mtree -x -p /usr -U -f /tmp/specif

--
Manuel Bouyer <bouyer@antioche.eu.org>
--