From owner-freebsd-questions Wed Jun 6 4:25:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.mini.pw.edu.pl (alpha.mini.pw.edu.pl [194.29.178.1]) by hub.freebsd.org (Postfix) with ESMTP id 858AB37B403 for ; Wed, 6 Jun 2001 04:25:17 -0700 (PDT) (envelope-from gregory@mini.pw.edu.pl) Received: (from localhost user: 'gregory', uid#401) by alpha.mini.pw.edu.pl id ; Wed, 6 Jun 2001 13:25:23 +0200 Date: Wed, 6 Jun 2001 13:25:23 +0200 (CEST) From: Grzegorz Czaplinski To: James Lim Cc: Subject: Re: _secure_path: cannot stat /etc/login.conf In-Reply-To: <01060619073901.40498@evilfry.dyndns.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 6 Jun 2001, James Lim wrote: Hi James, I have just done that. I booted into single ok boot -s and run fsck -p . All filesystems are clean. /dev/da0s1a: FILESYSTEM CLEAN; SKIPPING CHECKS /dev/da0s1a: clean, ................... ^D Now I am in multiuser mode and the prolem still persists. There is also a mesage: Local package initialization:su: no directory. That's because some of the services have their own accounts. As root I can travers the whole filesystem. Thanks anyway James, gregory [B > Hi there, > > Have you tried dropping into single user mode and doing a fsck on ur > root device? > > > On the last episode Wednesday 06 June 2001 19:01, Grzegorz Czaplinski > wrote: > > Hello! > > I have run into a very strange problem. Yesterday at about 10:15am > > something broke and no one can log into the system but root. > > The most common messages are: > > Jun 6 12:29:03 prioris /kernel: Jun 6 12:29:03 prioris > > inetd[63616]:_secure_path cannot stat /nonexistent/.login_conf: > > Permission denied > > inetd[ ]: cannot execute /usr/libexec/fingerd: Permission denied > > prioris login: _secure_path: cannot stat /etc/login.conf: > > Permission denied > > prioris login: _secure_path: cannot stat > > /path/to/homedir/.login_conf: Permission denied. > > > > I cvsuped sources, recompiled the kernel and the problem persists. > > I checked all of the file permissions, everything seems to be OK. > > I run cap_mkdb. > > > > When I try to log as a normal user I receive the message: > > alpha% ssh prioris -l gregory -v > > [skipped] > > gregory@prioris's password: > > debug1: ssh-userauth2 successful: method password > > debug1: channel 0: new [client-session] > > debug1: send channel open 0 > > debug1: Entering interactive session. > > debug1: client_init id 0 arg 0 > > debug1: channel request 0: shell > > debug1: channel 0: open confirm rwindow 0 rmax 16384 > > debug1: client_input_channel_req: channel 0 rtype exit-status reply > > 0 debug1: channel 0: rcvd eof > > debug1: channel 0: output open -> drain > > debug1: channel 0: rcvd close > > debug1: channel 0: input open -> closed > > debug1: channel 0: close_read > > > > Cannot find root directory > > <---------------here!!!!!!!!! > > > > debug1: channel 0: obuf empty > > debug1: channel 0: output drain -> closed > > debug1: channel 0: close_write > > debug1: channel 0: send close > > debug1: channel 0: is dead > > debug1: channel_free: channel 0: status: The following connections > > are open: > > #0 client-session (t4 r0 i8/0 o128/0 fd -1/-1) > > > > Connection to prioris closed. > > debug1: Transferred: stdin 0, stdout 0, stderr 31 bytes in 0.1 > > seconds debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr > > 553.2 debug1: Exit status 254 > > > > Login from the console: > > "Cannot find root directory". > > > > # uname -a > > FreeBSD prioris.mini.pw.edu.pl 4.3-STABLE FreeBSD 4.3-STABLE #2: > > Tue Jun 5 20:03:17 CEST 2001 > > rgregory@prioris.mini.pw.edu.pl:/usr/obj/usr/src/sys/PRIORIS-4 > > i386 > > > > Do you have any clue? > > Plese help, any hints appreciated, > > best regards, > > gregory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message