inode number -> pathname? (4.2BSD)
Andrew Klossner
andrew at orca.UUCP
Sun Jul 14 11:21:49 AEST 1985
[]
"If it were possible to set the current working directory to a
given inode and device, then pwd would give you the answer.
All the permission information, and even the bit denoting
whether or not this inode refers to a directory is stored in
the inode, and can easily be checked in such a call."
The permission information is distributed throughout the path to the
directory. If /usr/fred is mode 0700, then the fact that
/usr/fred/sources is 0755 should not be construed as sufficient reason
to allow another user to chdir to /usr/fred/sources.
-=- Andrew Klossner (decvax!tektronix!orca!andrew) [UUCP]
(orca!andrew.tektronix at csnet-relay) [ARPA]
More information about the Comp.unix.wizards
mailing list