getwd() problems

Marinko Laban ktibv!ml at relay.eu.net
Tue Jan 9 19:52:42 AEST 1990


We have two Sun's 4/110 (SunOS 4.0), both with a 325 Mb disk.  The two
Sun's are called process1 and process2. 

Running a 'df' on process1 gives:
-----------------------------------------------------------------------
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/sd0a               5636    2624    2448    52%    /
/dev/sd0g              64406   52201    5764    90%    /usr
/dev/sd0h             175790  124076   34135    78%    /usr/kti
process2:/usr/kti/proj2
                      235618  180069   31987    85%    /usr/kti/proj2
-----------------------------------------------------------------------

A 'df' on process2:
-----------------------------------------------------------------------
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/sd0a               7608    2872    3975    42%    /
/dev/sd0g              41092   37100       0   100%    /usr
/dev/sd0h             235618  180152   31904    85%    /usr/kti
process1:/usr/man      64406   52201    5764    90%    /usr/man
process1:/usr/kti/tran
                      175790  124077   34134    78%    /usr/kti/tran
process1:/usr/kti/prog
                      175790  124077   34134    78%    /usr/kti/prog
process1:/usr/kti/etc
                      175790  124077   34134    78%    /usr/kti/etc
process1:/usr/kti/proj1
                      175790  124076   34135    78%    /usr/kti/proj1
process1:/usr/kti/applic
                      175790  124076   34135    78%    /usr/kti/applic
process1:/usr/kti/home
                      175790  124076   34135    78%    /usr/kti/home
-----------------------------------------------------------------------

So you see that we have cross-mounted the file-systems of both
computers. Now something weird happens ...

Suppose a user logs in into process1, and goes to the directory
/usr/kti/proj2. Note that this is physically a directory of process2. When
he tries to do a 'pwd' he gets the message "pwd: getwd: can't open .."

When the user logs in into process2, and does the same, no problem ...
When the user logs in on process2 and goes to /usr/kti/proj1, still no
problem...

So one might think that the access rights are wrong, but this is not the
case. We tried with ALL rights set to rwxrwxrwx of EACH FILE AND
DIRECTORY, but the problem still occured. Only the superuser didn't have
the problem.

We've looked to all possible files (fstab,mtab,exports etc.), but we
couldn't find the error. The Sun supplier in Holland doesn't give the
support you might expect, so we tried News for a possible answer.

If anybody knows what the answer may be, PLEASE RESPOND AS QUICK AS
POSSIBLE. Any suggestions are welcome.

Thanx.



More information about the Comp.sys.sun mailing list