From owner-freebsd-questions@FreeBSD.ORG Thu Feb 17 15:40:42 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F06916A4CE for ; Thu, 17 Feb 2005 15:40:42 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 811DC43D45 for ; Thu, 17 Feb 2005 15:40:41 +0000 (GMT) (envelope-from perikillo@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so316730rng for ; Thu, 17 Feb 2005 07:40:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=sMgAB6BDhGQBorYe5HFb5GMJrX735QrRvaBymTHw9jTNaQq5o94cbcN+wefYvyos8+brRVOhfrmia4H8aBkbMH3+MkTAJSXuPdB/q6qevWQNiz4iTKFt9BU/RAFO2I2VF7Ax70zj4QwBlingoC7A1c9GJhXUpyr+ReeXQ0rPC5E= Received: by 10.38.90.42 with SMTP id n42mr361468rnb; Thu, 17 Feb 2005 07:40:40 -0800 (PST) Received: by 10.38.98.35 with HTTP; Thu, 17 Feb 2005 07:40:40 -0800 (PST) Message-ID: <51d7a51605021707401384f453@mail.gmail.com> Date: Thu, 17 Feb 2005 07:40:40 -0800 From: perikillo To: freebsd-questions@freebsd.org In-Reply-To: <51d7a51605021613346a1a0766@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <51d7a51605021509103a746a18@mail.gmail.com> <44hdkdprew.fsf@be-well.ilk.org> <51d7a51605021613346a1a0766@mail.gmail.com> Subject: Re: login error:cannot not find root directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: perikillo List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2005 15:40:42 -0000 I give up. I dont how in hell did this mistake, but i reinstall again Freebsd. Thanks Lowell Gilbert for your message. On Wed, 16 Feb 2005 13:34:05 -0800, perikillo wrote: > Yes, i check, the /root /.* but they looks correct, i check the > propierties and attr of that directory and files, but they look > correct. I dont know what more to check :-? > > Another error i found is went i try to see a manpage the system > send this error: > > mistake# man ls > /usr/libexec/ld-elf.so.1 "/usr/lib/libz.so.2" > > That cannot find that library, i check those files and they exist, > maybe went i was reparin my system i broke the link, could i repair > this??? > > If i make the makeworld again could be fixed???? > > Thanks. > > On Tue, 15 Feb 2005 11:14:02 -0800 (PST), Lowell Gilbert > wrote: > > perikillo writes: > > > > > Hi all. > > > Look i was hardering my freebsd box 4.10 p5, but i made one mistake: > > > "I didnt test my system before i reboot" > > > > > > I was reading some docs about "security", i use chflags on: > > > > > > mistake# chflags schg /bin/* > > > mistake# chflags schg /sbin/* > > > > > > Them apply some chmod on /root files: > > > > > > mistake# chmod 0600 /root/.* (i think :-?) > > > > > > I was trying to make my root directory only visible by root user. > > > But dont remenber wich mod i apply. I made more changes but dont > > > remember all. > > > > > > The result was that went i try to access my box like normal user > > > (wheel group), the systema say: > > > "error: cannot find root directory" > > > > > > Them i boot single-user, i input my password: > > > > > > "init: single-user failed" > > > > > > Here i could not access my system, my God!!!!!!!!!!!!!!!!!!!!!!!!!!!! > > > > > > > > > Ok, them get my 3 floppys, kern, mfs, and fixit .flp. I mount / to > > > access my system: > > > > > > -delete the schg label on /bin and /sbin > > > mistake#chflags noschg /bin/* > > > mistake#chflags noschg /sbin/* > > > > > > On the root directory, i change my .files attr: > > > > > > mistake# chmod 0644 /root/.* > > > > > > I change my ttys, to let root access the system: from insecure -> secure. > > > > > > I was checking other system with the same version 4.10 p5, and let > > > the files attributes on /root and / with the same attributes. > > > > > > I dont touch the /kernel file, after this change root could > > > access the system, but the other users dont have access: > > > > > > "error: cannot find root directory". > > > > > > This is my situation right now, could some one give some clues to > > > resolve this problem, i dont want to install again the S.O, this > > > machine i working very well. > > > > > > I will apreciate any clue. Thanks all for your time. > > > > Check the permissions on "/.". > > >