Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 2000 21:33:46 -0500
From:      Isetr0 Savi <isetr0@sevicron.com>
To:        freebsd-questions@FreeBSD.org
Subject:   Re: su: no directory
Message-ID:  <20001024213346.A16372@sevicron.com>
In-Reply-To: <20001024172715.A15775@sevicron.com>; from isetr0@sevicron.com on Tue, Oct 24, 2000 at 05:27:15PM -0500
References:  <20001024172715.A15775@sevicron.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001024213346.A16372>