Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nexus.coast.net!noc.netcom.net!news.sprintlink.net!howland.reston.ans.net!Germany.EU.net!EU.net!news.eunet.fi!news.jmp.fi!news
From: jmarin@teeri.jmp.fi (Jukka Marin)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: /bin/sh: Permission denied
Date: 23 Jun 1995 08:43:57 GMT
Organization: JMP-Electronics, Kuopio, Finland
Lines: 23
Message-ID: <3sduse$1jp@muikku.jmp.fi>
References: <3scl9m$bd5@montego.umcc.umich.edu>
NNTP-Posting-Host: teeri.jmp.fi
X-Newsreader: NN version 6.5.0 #14 (NOV)
jds@montego.umcc.umich.edu (John D. Smerdon) writes:
>I started upgrading some disk on a NetBSD 1.0 system and left the old
>disk in as sd2 mounted under /old. The power supply then died so I took out
>the sd2 disk and inserted it into a new PC as sd0.
>When I try to login using anything but root, I am greeted with the
>message "/bin/sh: Permission denied". sendmail also displays a message
>that it is unable to exec mail.local.
>I restored the entire /etc directory from a tar file created a couple weeks
>ago in case something was wrong, but that didn't help. I didn't change
>anything that I can recall when it was mounted as /old, but I must have
>messed something up. Any ideas?
A wild guess: your / has permissions 700 or something like that. Mine
has 755. Try chmod 755 /
-jm
--
---> http://www.jmp.fi/~jmarin <---