From owner-freebsd-questions Wed Apr 28 13:29: 9 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 929B014EAD for ; Wed, 28 Apr 1999 13:29:03 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id NAA24439; Wed, 28 Apr 1999 13:28:53 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Wed, 28 Apr 1999 13:28:52 -0700 (PDT) From: Doug White To: davebullock@dwindledistribution.com Cc: questions@FreeBSD.ORG Subject: Re: chmod to death! In-Reply-To: <9904289253.AA925319517@mailhost.worldind.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 28 Apr 1999 davebullock@dwindledistribution.com wrote: > I really blew it... I did 'chmod -R 4755 /' If you were logged in as root (not su'd), I rest my case. > Now I can't log in. I have tried doing upgrade and install and > neither have worked. You'll have to use 'mtree' to restore the permissions on the system installed files. You'll have to do ths as root or single user; try typing 'boot -s' at the boot: prompt to get there. You should run the following: mount -u / mount -a # this will get your filesystems back cd / /usr/sbin/mtree -eU -f /etc/mtree/BSD.root.dist cd /usr /usr/sbin/mtree -eU -f /etc/mtree/BSD.usr.dist cd /var /usr/sbin/mtree -eU -f /etc/mtree/BSD.var.dist That should fix permissions enough to get the system booting again. You'll have to fix any added programs yourself (like ports). > When I try to use a holographic shell it just says 'Error ( expected' > and when I put an open parenthesis in front of my command it gives me > a '>' and then when I enter commands on that line nothing happens all > I can do is 'Ctl-C' out of it. The fixit environment is fairly limited. You should be able to boot to single user mode though. Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message