Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Aug 1999 21:44:30 +1000
From:      Alex <panadol@hotkey.net.au>
To:        freebsd-questions@FreeBSD.ORG
Subject:   freebsd major problems
Message-ID:  <4.1.19990810214021.009ee720@pop.hotkey.net.au>

next in thread | raw e-mail | index | archive | help
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 <julian@whistle.com>
To:        Randy Katz <randyk@ccsales.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: HELP!!!
Message-ID:  <34654049.15FB7483@whistle.com>
References:  <Pine.BSF.3.91.971108200806.1375A-100000@ccsales.ccsales.com>


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.1.19990810214021.009ee720>