From owner-freebsd-questions Tue Aug 10 7: 1:34 1999 Delivered-To: freebsd-questions@freebsd.org Received: from volodya.prime.net.ua (volodya.prime.net.ua [195.64.229.17]) by hub.freebsd.org (Postfix) with ESMTP id DA2B6153D6 for ; Tue, 10 Aug 1999 07:01:26 -0700 (PDT) (envelope-from andyo@prime.net.ua) Received: from prime.net.ua (localhost [127.0.0.1]) by volodya.prime.net.ua (8.9.3/8.8.8) with ESMTP id RAA11155; Tue, 10 Aug 1999 17:01:58 +0300 (EEST) (envelope-from andyo@prime.net.ua) Message-ID: <37B030D4.6DE0B413@prime.net.ua> Date: Tue, 10 Aug 1999 17:01:57 +0300 From: "Andy V. Oleynik" Organization: M-Info X-Mailer: Mozilla 4.61 [en] (X11; I; FreeBSD 3.2-STABLE i386) X-Accept-Language: en, ru, uk MIME-Version: 1.0 To: Alex Cc: freebsd-questions@FreeBSD.ORG Subject: Re: freebsd major problems References: <4.1.19990810214021.009ee720@pop.hotkey.net.au> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Check ur stuff in /etc especially in master.passwd and shells. Also check permissions in /usr/home/*. Alex wrote: > 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 -- WBW Andy V. Oleynik (When U work in virtual office prime.net.ua's U have good chance to obtain system administrator virtual money ö%-) +380442448363 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message