[comp.unix.questions] Strange file system problem.

ATT3B%UCONNVM.BITNET@cunyvm.cuny.edu (Martin Stein) (12/08/89)

On my brand new baby, a old 3B15 with two 340MB FSD disk drives, i
found a very strange problem (for me):

I set up two filesystems on disk 1 (which is the 2nd drive);
partition 1s6 (first 180992 blocks) is /user1
partition 1s2 (sec. 180992 blocks till 361984) is /user2
partition 1s3 is unused (yet)

I set up my homedirectory in /user1/mars

After logging in i issue the 'pwd' command. It says:

           pwd: cannot open ..

Then i did 'cd /user1' and 'cd'. After that pwd works.
What is broken here. The .. entry is there. Did i do the
mounting wrong?

Thanx

      Martin

cpcahil@virtech.uucp (Conor P. Cahill) (12/08/89)

In article <21681@adm.BRL.MIL>, ATT3B%UCONNVM.BITNET@cunyvm.cuny.edu (Martin Stein) writes:
> After logging in i issue the 'pwd' command. It says:
> 
>            pwd: cannot open ..
> 
> Then i did 'cd /user1' and 'cd'. After that pwd works.

The problem is probably that you don't have read access to one of the
directories above you (or maybe your login directory itself).  the 
reason that pwd works after a cd /user1; cd is probably because the
shell that you are using keeps track of the current directory.  Try
to run /bin/pwd directly and see if the "cannot open .." reappears.

To find the problem you need to do an "ls -ld  .."  check permissions and 
if they are ok keep adding /.. until you find the directory tat does not
have read permissons.


-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+