From owner-freebsd-questions@FreeBSD.ORG Thu Aug 30 10:20:38 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78F1416A41B for ; Thu, 30 Aug 2007 10:20:38 +0000 (UTC) (envelope-from roberto.nunnari@supsi.ch) Received: from mail.dti.supsi.ch (mail.dti.supsi.ch [193.5.153.13]) by mx1.freebsd.org (Postfix) with ESMTP id 1342A13C442 for ; Thu, 30 Aug 2007 10:20:37 +0000 (UTC) (envelope-from roberto.nunnari@supsi.ch) Received: from [127.0.0.1] (pcm2027.dti.supsi.ch [193.5.152.27]) by mail.dti.supsi.ch (8.12.11.20060308/8.12.11) with ESMTP id l7UAKBUa029129; Thu, 30 Aug 2007 12:20:12 +0200 Message-ID: <46D6998F.8000807@supsi.ch> Date: Thu, 30 Aug 2007 12:18:55 +0200 From: Roberto Nunnari User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: "Bahman M." References: <46D684E0.5030808@supsi.ch> <6d62f69a0708300239y75485c80odf03b4e31cf675fe@mail.gmail.com> <46D6925B.3090909@supsi.ch> <6d62f69a0708300301u3336b9bl8658b4c0f68db6fe@mail.gmail.com> In-Reply-To: <6d62f69a0708300301u3336b9bl8658b4c0f68db6fe@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" Subject: Re: users cannot login anymore X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2007 10:20:38 -0000 in effect, trying to login as a unprivileged user gives an additional line.. but it doesn't give me hints.. # ssh robi@localhost Password: Last login: Thu Aug 30 12:12:12 2007 from .... Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. Could not chdir to home directory /usr/home/robi: Permission denied /usr/local/bin/bash: Permission denied Connection to localhost closed. Please help! Bahman M. wrote: >> see below my answer. >> >> >> Bahman M. wrote: >>>> # su - robi >>>> su: /bin/csh: Permission denied >>>> >>>> also, >>>> >>>> # /usr/local/etc/rc.d/tomcat6 start >>>> Starting tomcat60. >>>> su: /usr/local/bin/bash: Permission denied >>>> >>>> # uname -rms >>>> FreeBSD 6.1-RELEASE-p19 i386 >>> What's the output of >>> # ls -l /usr/local/bin/bash >>> # ls -l /bin/csh >>> ? >> # ls -l /usr/local/bin/bash /bin/csh /bin/sh >> -r-xr-xr-x 2 root wheel 298556 Aug 6 18:37 /bin/csh >> -r-xr-xr-x 1 root wheel 107380 Aug 6 18:37 /bin/sh >> -rwxr-xr-x 1 root wheel 611268 Jul 2 12:15 /usr/local/bin/bash >> >> # cat /etc/shells >> /bin/sh >> /bin/csh >> /bin/tcsh >> /usr/local/bin/bash >> /usr/local/bin/rbash > > Read man 1 tcsh/bash startup section and see if users other than root > have access to all files and directories mentioned out there. > Also try logging in as robi (on a login shell). It might give you a clue. > > Bahman -- Robi