From owner-freebsd-questions@FreeBSD.ORG Sat Apr 16 19:02:50 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 10BF216A4CE for ; Sat, 16 Apr 2005 19:02:50 +0000 (GMT) Received: from smtp807.mail.sc5.yahoo.com (smtp807.mail.sc5.yahoo.com [66.163.168.186]) by mx1.FreeBSD.org (Postfix) with SMTP id AADD643D1D for ; Sat, 16 Apr 2005 19:02:49 +0000 (GMT) (envelope-from krinklyfig@spymac.com) Received: from unknown (HELO smogmonster.com) (jtinnin@pacbell.net@64.173.27.15 with plain) by smtp807.mail.sc5.yahoo.com with SMTP; 16 Apr 2005 19:02:49 -0000 From: Joshua Tinnin To: freebsd-questions@freebsd.org Date: Sat, 16 Apr 2005 12:02:47 -0700 User-Agent: KMail/1.8 References: <6.2.0.14.0.20050225125247.02e6d948@mail.face2interface.com> <200504161035.55854.krinklyfig@spymac.com> <6.2.0.14.0.20050416140511.03b295f0@mail.face2interface.com> In-Reply-To: <6.2.0.14.0.20050416140511.03b295f0@mail.face2interface.com> X-Face: "u-%.52Z_uQCP'Vdj{95/n*(sgAAm`F/p'b0zo%-DuBTdZ*qW!!/idDBRjkFfJD[Qe&>=?utf-8?q?=5F2=0A=09?=<}OGsEY~)n?NywZRi9xm-jH_VPg"8nTSzo:r8;U3oTQz|@z)|>%i+MRY2Y#>s~X`sV$&t"=?utf-8?q?=0A=09AkQ=5EU3rJIFCU=3F=5DcC=27F=26fY4=23Jf-=7D=3F7x?= MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504161202.47888.krinklyfig@spymac.com> cc: Marty Landman Subject: Re: lost root passwd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Apr 2005 19:02:50 -0000 On Sat 16 Apr 05 11:22, Marty Landman wrote: > At 01:35 PM 4/16/2005, Joshua Tinnin wrote: > > First, I've been warned about 5.2 before. Thing is a while back I > asked a neighbor with broadband for a solid and he generously d/l'd > the lastest stable fbsd for me. I have another box running 4.8 from > the mini-iso. I don't want to ask him again, so if 5.2 is going to > inadvisable may convert this box over to either 4.8 too, or possibly > Debian Woody for which I also have a mini-iso but that old box is no > longer... though its old cdrom lives on in my dell workstation. :) > > >% sysctl kern.securelevel > > > >If it's anything but -1 > > No, it is -1 even from my wheel user id -- not root. > > >Did you do > > > ># mount -u / > ># passwd root > > Joshua, when I do the 'mount -u /' get back > > WARNING: R/W mount of / denied. Filesystem is not clean - run fsck > mount: /dev/ad-s1a: Operation not permitted Make sure to run that command before you mount any other fs, like right after you fsck -p - i.e.: (in order) # fsck -p # mount -u / # mount -a -t ufs If it's already mounted, as Danny mentioned earlier, you can't remount it r/w without umount first. > >Here's some info about PAM: > >http://www.freebsd.org/doc/en_US.ISO8859-1/articles/pam/pam-config.h > >tml > > I'm using /etc/pam.d rather than /etc/pam.conf, fwiw. However > everything (the pam.d directory and all files within it) are > writeable only by root, so don't see how that's going to help. OK, well, I don't know a heck of a lot about the intricacies of PAM, but I don't think that has anything to do with this anyway. Just throwing it out there, because of the error. - jt