SUMMARY: getwd problems

From: John T Wilson (wilsonj@awcdb2.eglin.af.mil)
Date: Thu Jan 13 1994 - 09:58:03 CST


My original posting follows:

>I created 3 Oracle accounts, one for an operational database, and
>two (oracle7 and ORACLE7) for Version 7 testing purposes. These are
>the only entries in /etc/passwd that use /bin/sh. All others use
>/bin/csh.
>
>oracle:tjVTC3IcJqK5k:32764:50:Oracle:/usr/oracle:/bin/sh
>oracle7:5ep431W2UZ0Ug:32760:50:Oracle7 account:/home1/oracle7:/bin/sh
>ORACLE7:oc.yXmPzQOCz.:32759:50:Another Oracle7
>account:/disk5/ORACLE7:/bin/sh
>
>When I su to any of the above accounts and issue the pwd command, I get
>the error message "getwd: can't open .." I've "Read the Fine" man
>pages for pwd, getwd, login, su, and can't figure out what's going on.
>Can someone please help!!!
>
>Here's the "ls -Flag" list for the 3 home directories.
>drwxr-sr-x 7 ORACLE7 dba 1024 Jan 12 08:18 /disk5/ORACLE7/
>drwxr-sr-x 36 oracle7 dba 2048 Dec 28 09:40 /home1/oracle7/
>drwxr-sr-x 25 oracle dba 2048 Nov 9 14:40 /usr/oracle/
>
>Don't know if any of the below info will help, but here it is...
>
>Running SunOS 4.1.3 on a 670MP.
>
>Filesystem kbytes used avail capacity Mounted on
>/dev/sd0a 19831 13528 4320 76% /
>/dev/sd0g 280695 117354 135272 46% /usr
>/dev/sd0h 398503 274303 120215 70% /home
>/dev/sd1g 412919 259251 149539 63% /home1
>/dev/sd2g 863118 212540 641947 25% /home2
>/dev/sd3g 883550 183717 690998 21% /home3
>/dev/sd2a 96159 82582 12616 87% /opsdata2
>/dev/sd3a 75127 62070 12306 83% /opsdata3
>/dev/sd1d 152055 124585 25950 83% /testdata
>/dev/sd1b 191135 3030 186194 2% /tmp
>/dev/sd1a 202551 165975 34551 83% /usr/oracle
>/dev/sd4a 959294 7571 942131 1% /disk5
>/dev/sd5a 959294 9 949693 0% /disk6
>/dev/sr0 336360 336362 0 100% /cdrom
>
>Here's the /etc/group entry for dba (gid 50)
>dba:*:50:root,oracle,oracle7,ORACLE7,wilsonj,oerding,coffeed
>
>

First, let me say thanks to those who answered (listed below in order of
response).
        heas@chpc.org
        rich_b@oldham.gpsemi.com
        glenn@uniq.com.au
        sckhoo@emtds1.nsc.com
        tim@ben.dciem.dnd.ca
        cook@lams.msd.lmsc.lockheed.com
        mnappi@lehman.com
        ljm@halsp.hitachi.com

Lots of helpful stuff, but the winning entries were Mike Cook and Larry
J. Miller. I fixed the perms on both new directories /home1 and /disk5.
This corrected the problem on /home1, but not /disk5. Mike and Larry
both suggested umounting the directory and taking a look at the perms. I
umounted /disk5 and did an ls -lg on it. It showed permissions of
rwxr-s---, which really surprised me. These perms were still in effect,
no matter how I set them on the mounted directory. I did a chmod 755 on
/disk5, mounted it, and pwd works great!!!

Many thanks!

John T. Wilson
USAF Air Warfare Center
Eglin Air Force Base, Florida
wilsonj@awcnet.eglin.af.mil
DSN 872-8988



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:54 CDT