From owner-freebsd-questions@FreeBSD.ORG Thu Aug 30 10:01:34 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 2980216A41B for ; Thu, 30 Aug 2007 10:01:34 +0000 (UTC) (envelope-from b.movaqar@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.226]) by mx1.freebsd.org (Postfix) with ESMTP id E021713C4B4 for ; Thu, 30 Aug 2007 10:01:33 +0000 (UTC) (envelope-from b.movaqar@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so340581nzf for ; Thu, 30 Aug 2007 03:01:24 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Gny2gyDgCvdRY5qIJqXk6Mt4RleI54fUOVZc0ShPV8bO9mOhb2uhjtWFYR1MZwXD5kHV2zZKA2m+hdIRH/T07XIfPGbSeGSjR7GEhkgFlp5OpYXWzxTEagBdrsUsJEQL2ZZ0mpDEzV3fGn5UvpHa+heEm6Dl5ne+E8oHWHlpqB0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ek1ac9gWNfMIxJcper1DDJL79b3b3MM+pndhze61ij+V2t6/0vbYBrdAK63OckMXQZxfPPIpphiBXURZjOb66F1Y9ZBi7Flw5dtuN6pBSK86E5b+e23Ryr2Poq4sGnVJoo/1ZngU1AUXBiGDtHqSYy+7M6uyyHznWpWHJSHF2Js= Received: by 10.114.200.2 with SMTP id x2mr12100waf.1188468082241; Thu, 30 Aug 2007 03:01:22 -0700 (PDT) Received: by 10.114.132.13 with HTTP; Thu, 30 Aug 2007 03:01:22 -0700 (PDT) Message-ID: <6d62f69a0708300301u3336b9bl8658b4c0f68db6fe@mail.gmail.com> Date: Thu, 30 Aug 2007 13:31:22 +0330 From: "Bahman M." To: "Roberto Nunnari" In-Reply-To: <46D6925B.3090909@supsi.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46D684E0.5030808@supsi.ch> <6d62f69a0708300239y75485c80odf03b4e31cf675fe@mail.gmail.com> <46D6925B.3090909@supsi.ch> 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:01:34 -0000 > 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