From owner-freebsd-questions Tue Oct 24 19:31:43 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dip.sevicron.com (res146a-036.rh.rit.edu [129.21.146.36]) by hub.freebsd.org (Postfix) with ESMTP id C50E537B479 for ; Tue, 24 Oct 2000 19:31:39 -0700 (PDT) Received: from isetr0 by dip.sevicron.com with local (Exim 3.16 #1 (Debian)) id 13oGNu-0004GL-00 for ; Tue, 24 Oct 2000 21:33:46 -0500 Date: Tue, 24 Oct 2000 21:33:46 -0500 To: freebsd-questions@FreeBSD.org Subject: Re: su: no directory Message-ID: <20001024213346.A16372@sevicron.com> Mail-Followup-To: freebsd-questions@FreeBSD.org References: <20001024172715.A15775@sevicron.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001024172715.A15775@sevicron.com>; from isetr0@sevicron.com on Tue, Oct 24, 2000 at 05:27:15PM -0500 From: Isetr0 Savi Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG To add on to this a little more: This is FreeBSD 4.1.1-STALBE: Sun Oct 15 18:56:42 EDT 2000 If I do su user instead of su - user, the error is: su: /bin/tcsh: Permission denied. # ls -alF /bin/tcsh -r-xr-xr-x 2 root wheel 625168 Oct 15 18:39 /bin/tcsh* Looks ok to me # ls -alF / | grep bin drwxr-xr-x 2 root wheel 1024 Oct 15 18:39 bin/ drwxr-xr-x 2 root wheel 2048 Oct 15 18:43 sbin/ No problems there? I also noticed an interesting file in /bin, it is [ - yes, just a square left bracket. # file /bin/\[ /bin/[: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically linked, stripped I have NO clue what that is...Some readable text in it is: $FreeBSD: src/lib/libc/i386/ string/strcmp.S,v 1.5 1999/08/27 23:59:33 peter Exp $ as well as a bunch of other junk. I'm lost - creating new users doesn't do anything either - I've looked this up in newsgroups and such, but haven't found much info towards a solution... On Tue, Oct 24, 2000 at 05:27:15PM -0500, Isetr0 Savi wrote: > Oh boy, > > I was making an attempt to secure my files a little bit today. I set > the default umask to 027 and did some chmod -R o-rwx * in my home > directory are among what I recall doing. However - I have a couple > user accounts I use, and I tried to su to one of them, and it failed > with the following error: > su: no directory > > If I try to ssh in with the specified account, I get disconnected with > "Connot find root directory". I don't know if this means it can't > find /home/user or if it can't find / in general?? > The home dirs have permissions 750 and are owned by the proper owners. > I can log in fine as root and the user I was making the modifications > as, but not as two other users. Everything seems to be fine - > /etc/passwd has no problems, the home directories are there..I can't > figure out what the problem is. Any suggestions? Thanks for any > help... > > Isetr0 > > p.s. There are no errors in /var/log/messages, or /var/log/auth.log - > I can authenticate just fine, but then it kicks me out - perhaps I set > some permissions incorrectly somewhere...What perms should /usr/home > have? I've tried ith 755 and 750 - no luck. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message