From owner-freebsd-questions Wed Oct 25 1:31: 2 2000 Delivered-To: freebsd-questions@freebsd.org Received: from hermes.research.kpn.com (hermes.research.kpn.com [139.63.192.8]) by hub.freebsd.org (Postfix) with ESMTP id 8083637B479 for ; Wed, 25 Oct 2000 01:30:59 -0700 (PDT) Received: from l04.research.kpn.com (l04.research.kpn.com [139.63.192.204]) by research.kpn.com (PMDF V5.2-31 #42699) with ESMTP id <01JVR1R89PTW000SQ7@research.kpn.com> for freebsd-questions@FreeBSD.ORG; Wed, 25 Oct 2000 10:30:57 +0200 Received: by l04.research.kpn.com with Internet Mail Service (5.5.2650.21) id ; Wed, 25 Oct 2000 10:30:55 +0100 Content-return: allowed Date: Wed, 25 Oct 2000 10:30:54 +0100 From: "Steehouder, R.J." Subject: Re: su: no directory To: "'isetr0@sevicron.com'" Cc: "'freebsd-questions@FreeBSD.ORG'" Message-id: <59063B5B4D98D311BC0D0001FA7E45220369D30F@l04.research.kpn.com> MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-type: text/plain; charset="iso-8859-1" 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. If you look at the i-nodes, you'll see it is the same as `test', see `man test'. (`man [' should work as well) > 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. Wat permissions does `/' have? ___ _ -O_\ Rogier Steehouder // | / mailto:r.j.steehouder@student.utwente.nl //\ / \ http://home.student.utwente.nl/r.j.steehouder/ // \ <---------------------- 25m -----------------------> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message