*BSD News Article 45662


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!daffy!uwvax!uchinews!vixen.cso.uiuc.edu!uwm.edu!lll-winken.llnl.gov!osi-east2.es.net!oracle.pnl.gov!mica.inel.gov!cwis.isu.edu!news.cc.utah.edu!news.cs.utah.edu!sal.cs.utah.edu!kruckenb
From: kruckenb@sal.cs.utah.edu (Pete Kruckenberg)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Shell (csh/bash) and Jove can't get home directory!
Date: 15 Jun 1995 17:54:13 GMT
Organization: University of Utah Computer Science Department
Lines: 52
Message-ID: <3rps45$156@magus.cs.utah.edu>
NNTP-Posting-Host: sal.cs.utah.edu
X-Newsreader: TIN [version 1.2 PL2]

I just installed 2.0.5R on my machine. I'm having some minor problems
with bash (1.14.4 from the ports collection) and programs running
within bash, and sometimes with csh.

Right now, when I start up a non-root session (as root, everything
works fine under both csh and bash), csh complains:

  csh: Permission denied
  csh: Trying to start from "/home/pete"

Executing "pwd" gives "pwd: Permission denied".

If I then start up bash, everything's fine. However, if I change my
shell to bash, it give me the following on login:

 shell-init: could not get current directory: Permission denied
 job-working-directory: (same as above)
 cd_links: (same as above)

When I use bash as my shell, starting Jove (4.16Beta) gives the
following: 

 Ack! I can't deal with error "Cannot get current directory: N`+)" now.
 JOVE CRASH!! (code -1; last errno 13)
 No buffers needed saving: you didn't lose any work.
 Abort trap (core dumped)

This doesn't happen with vi, but I haven't tested any other
programs. Jove works fine under csh or if I use csh as my shell, then
start bash.

Here's my entry from /etc/passwd:
 pete:*:1000:0:Pete Kruckenberg,,,:/home/pete:/bin/csh

And ls -l /home:
 lrwxr-xr-x  1 root  wheel  9 Jun 11 22:20 /home -> /usr/home
And ls -l /usr/home:
 drwxr-xr-x  2 pete  wheel  512 Jun 15 11:46 pete

Both csh (/bin/csh) and bash (/usr/local/bin/bash, soft-linked to /bin/bash)
have these attributes: -r-xr-xr-x  1 bin  bin

I'm using the "stock" .cshrc and /etc/cshrc*, as well as the
equivelants for bash.

I don't think it's a permissions problem. Any ideas what it might be?
Any help would be very much appreciated.

  -----------------------------------------------------------------------
  Pete Kruckenberg                               kruckenb@sal.cs.utah.edu
  University of Utah                                         pete@dsw.com
  Computer Engineering