Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NTFS Add & Read Directory Permissions

1 view
Skip to first unread message

Erwin Richard

unread,
Jan 23, 2002, 4:56:58 PM1/23/02
to
I need to setup a directory on NTFS so that a user can only copy/move a new
file there but
later cannot delete or modify it.
I understand that I can change the Directory to "Add & Read" permissions but
then the owner of the newly
created file can still modify its permissions(?).

The normal problem of an application first creating and then writing to the
file is not an issue
here as I can change the App to always write to a temporary directory on the
same partition
and then move the file there.

What's the best way to implement such a "write once only" directory?

Alternatives I am thinking about:

a Change the Ownership of the file programmatically from the application if
possible(?)
b Write a service on the Server that gets notified as soon as a new file is
placed in the directory
and changes its permissions/owner

The solution has to be sound in order to prevent even knowledgable
users/developers from modifing
files after they were initially placed in the directory.

Thanks for your Ideas

Erwin


Ken Hagan

unread,
Jan 24, 2002, 5:53:08 AM1/24/02
to
"Erwin Richard" <er...@richard.net> wrote...

> I understand that I can change the Directory to "Add & Read"
> permissions but then the owner of the newly created file can
> still modify its permissions(?).

Yes, because the owner of a file can always change the permissions,
no matter what the ACL says.

> Alternatives I am thinking about:
>
> a Change the Ownership of the file programmatically from the
> application if possible(?)

You can't (easily) give away ownership, so this won't work.

> b Write a service on the Server that gets notified as soon as a
> new file is placed in the directory and changes its
> permissions/owner

This can be made to work, since the service can run under a
different account from whatever created the files, and will
be able to take ownership (if it is sufficiently priviledged).

jan erik

unread,
Jan 24, 2002, 11:09:04 PM1/24/02
to
When you move a folder you actually perform 3 actions, you read the
file into memory, then you create the file at a specified location and
then you delete the original one…The same procedure are used when
copying except the deleting part of course

-je-

Erwin Richard

unread,
Jan 25, 2002, 10:06:34 AM1/25/02
to
"jan erik" <jan_...@law.com> wrote in message
news:79b273ac.02012...@posting.google.com...

> When you move a folder you actually perform 3 actions, you read the
> file into memory, then you create the file at a specified location and
> then you delete the original one.The same procedure are used when

> copying except the deleting part of course
>

That is not necessarily true. When the file/folder is moved within the same
partition, it is simply a matter of changing
directory entries. No data of the file has to be moved.

Erwin


0 new messages