[comp.protocols.nfs] rm files over PC-NFS

andy@mks.com (Andy Toy) (03/01/91)

Is it possible for a user to remove read-only files over PC-NFS that are
owned by someone else and are in a directory which is writable by this
user?  I am having problems doing this even though I can do it directly
on the NFS server.
-- 
Andy Toy <andy@mks.com>                       UUCP: ...!uunet!watmath!mks!andy
Technical Support <support@mks.com>                     Phone: +1-519-884-2270
Mortice Kern Systems Inc. <inquiry@mks.com>             Phone: +1-519-884-2251
35 King Street North, Waterloo, Ontario N2J 2W9, CANADA   Fax: +1-519-884-8861

geoff@hinode.East.Sun.COM (Geoff Arnold @ Sun BOS - R.H. coast near the top) (03/01/91)

Quoth andy@mks.com (Andy Toy) (in <1991Feb28.214943.7206@mks.com>):
#Is it possible for a user to remove read-only files over PC-NFS that are
#owned by someone else and are in a directory which is writable by this
#user?  I am having problems doing this even though I can do it directly
#on the NFS server.

If by "remove" you mean use the DOS "DEL" or similar command, or the
equivalent DOS system call, the answer is no. DOS will not allow you to
delete any file which is marked as read-only.  Try it on your local DOS
disk. PC-NFS simply preserves DOS semantics on NFS mounted drives. (The
fact that the directory is writeable is irrelevant: DOS doesn't grok
permissions on directories anyway.)

Geoff

-- Geoff Arnold, PC-NFS architect, Sun Microsystems. (geoff@East.Sun.COM)   --
------------------------------------------------------------------------------
--     Sun Microsystems PC Distributed Systems ...                          --
--            ... soon to be a part of SunTech (stay tuned for details)     --

ian@unipalm.uucp (Ian Phillipps) (03/01/91)

andy@mks.com (Andy Toy) writes:

>Is it possible for a user to remove read-only files over PC-NFS that are
>owned by someone else and are in a directory which is writable by this
>user?  I am having problems doing this even though I can do it directly
>on the NFS server.

If it did, it would conflict with DOS semantics, which don't have the
concept of writable directories, and have a single bit to protect against
deletion or writing.

Ian