From owner-freebsd-questions Tue Aug 10 4:43:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from wallace.hotkey.net.au (wallace.hotkey.net.au [202.138.0.10]) by hub.freebsd.org (Postfix) with ESMTP id E33071524B for ; Tue, 10 Aug 1999 04:43:13 -0700 (PDT) (envelope-from panadol@hotkey.net.au) Received: from puffy (mrac109-014.ports.primus.com.au [203.134.27.14]) by wallace.hotkey.net.au (8.8.8/8.8.5) with SMTP id VAA14176 for ; Tue, 10 Aug 1999 21:42:20 +1000 (EST) Message-Id: <4.1.19990810214021.009ee720@pop.hotkey.net.au> X-Sender: panadol@pop.hotkey.net.au X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Tue, 10 Aug 1999 21:44:30 +1000 To: freebsd-questions@FreeBSD.ORG From: Alex Subject: freebsd major problems Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello i am wrighting in the search of help for an old freebsd system i run (2.2.2) i hit a large problem the other day when i added a user on the system a .shrc file in there home directory after this happened they tryed to login and they got the following message login: /bin/sh: Permission denied and could not login no user on this system can login via telnet or console logins execpt for root from the console (same gose for mail ftp etc all system logins in any shape) i can not su to any acount if i do i get the same message (login: /bin/sh: Permission denied) i also get a error messages on the cosole witch is: the date / time hostname login: _secure_path: cannot stat /etc/login.conf permision denied twice and the date / time hostname login: _secure_path: cannot stat /home/user/.login_conf permision denied twice there is no home/user/.login_conf file never has been and the login.access and login.conf are unchanged and the login.access.conf has been rebilt and tryed with it removed, i have also tryed a new login.conf and made a new login.conf.db none of witch helped, the permissions on login.conf were rw-r--r and the same for login.conf.db also /bin/sh is r-xr-xr-x the file that started all of this .shrc was removed also. while searching through the freebsd.org archives i found this message this problem is quite simlar but i do not understand what was ment by fix the damage but the rest makes sence i tryed this (short of 'fixing the damage') and this made no diffrince here is a copy of the message Date: Sat, 08 Nov 1997 20:47:05 -0800 From: Julian Elischer To: Randy Katz Cc: questions@FreeBSD.ORG Subject: Re: HELP!!! Message-ID: <34654049.15FB7483@whistle.com> References: Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help Randy Katz wrote: > > Someone did something and no user can log in. It gives the message > login: /bin/sh Permission Denied. > > Is there anything, simple, they could have done? > > HELP!!! > > Thanx, > Randy Katz reboot.. it that on it's own doesn't fix it..... reboot (again,) at the boot prompt: Boot: -s when it asks you for a shell to run, use /bin/sh if that fails, try /stand/sh then /bin/csh (but that may require sahred libs.) failing that, boot of the original boot floppy select 'fixit disk' from the menu. put in the fixit floppy (you DO have one don't you?) and hit CR it will put you in a shell. fsck your hard disk partitions (use the rsd and rwd entries, not sd and wd mount them fix the damage. sync sync unmount the hard disk again exit the shell (type 'exit') reboot remove the floppy! julian www@freebsd.org any help would be very much appricated sorry to spam you with this huge message but im desperate as it is rejectiing web ftp mail socket redir's every thing on the machine. thanks for you time kind regards Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message