Jump to content

How to prevent users from deleting Word/Excel files in a Share?


Recommended Posts

Guest IsraelC from Miami
Posted

Anyone know how to prevent users from deleting files/folders (Word/Excel

files) but still allow them to edit and save them?

I setup a test share on a Win2K3 Server. Remove all rights for all users

except for the admin group. At the NTFS security tab I grant a group Modify,

Read/execute, list, read and write permissions. Then in the advance/special

permissions tab I enable the deny delete subfolders and files right. I then

create a word doc and it allws me to create it and edit it but the temp file

dont get deleted. If an Excel file gets edited and saved we get an error the

the folder is marked as read only.

So at a high level I wnt to prevent users from deleting MS Office docs but

still edit them.

I know the users can still open then and delete the contents of the file

itself but I can live with that...any suggestions?

Thank you,

  • Replies 5
  • Created
  • Last Reply
Guest Anteaus
Posted

You can't. Word makes a copy of the file and then replaces the original on

exit, hence anything which stops deletion also stops editing.

 

Two alternatives which might be useful are to delete-protect folders but not

files, or to write a script which 'seals' files after they've remained

un-edited for a specified time.

 

 

"IsraelC from Miami" wrote:

<span style="color:blue">

> Anyone know how to prevent users from deleting files/folders (Word/Excel

> files) but still allow them to edit and save them?

> I setup a test share on a Win2K3 Server. Remove all rights for all users

> except for the admin group. At the NTFS security tab I grant a group Modify,

> Read/execute, list, read and write permissions. Then in the advance/special

> permissions tab I enable the deny delete subfolders and files right. I then

> create a word doc and it allws me to create it and edit it but the temp file

> dont get deleted. If an Excel file gets edited and saved we get an error the

> the folder is marked as read only.

> So at a high level I wnt to prevent users from deleting MS Office docs but

> still edit them.

> I know the users can still open then and delete the contents of the file

> itself but I can live with that...any suggestions?

> Thank you,

> </span>

Guest IsraelC from Miami
Posted

RE: How to prevent users from deleting Word/Excel files in a Share

 

"Anteaus" wrote:

<span style="color:blue">

> You can't. Word makes a copy of the file and then replaces the original on

> exit, hence anything which stops deletion also stops editing.

>

> Two alternatives which might be useful are to delete-protect folders but not

> files, or to write a script which 'seals' files after they've remained

> un-edited for a specified time.

>

>

> "IsraelC from Miami" wrote:

> <span style="color:green">

> > Anyone know how to prevent users from deleting files/folders (Word/Excel

> > files) but still allow them to edit and save them?

> > I setup a test share on a Win2K3 Server. Remove all rights for all users

> > except for the admin group. At the NTFS security tab I grant a group Modify,

> > Read/execute, list, read and write permissions. Then in the advance/special

> > permissions tab I enable the deny delete subfolders and files right. I then

> > create a word doc and it allws me to create it and edit it but the temp file

> > dont get deleted. If an Excel file gets edited and saved we get an error the

> > the folder is marked as read only.

> > So at a high level I wnt to prevent users from deleting MS Office docs but

> > still edit them.

> > I know the users can still open then and delete the contents of the file

> > itself but I can live with that...any suggestions?

> > Thank you,

> > </span></span>

Guest IsraelC from Miami
Posted

RE: How to prevent users from deleting Word/Excel files in a Share

 

"Anteaus" wrote:

<span style="color:blue">

> You can't. Word makes a copy of the file and then replaces the original on

> exit, hence anything which stops deletion also stops editing.

>

> Two alternatives which might be useful are to delete-protect folders but not

> files, or to write a script which 'seals' files after they've remained

> un-edited for a specified time.

>

>

> "IsraelC from Miami" wrote:

> <span style="color:green">

> > Anyone know how to prevent users from deleting files/folders (Word/Excel

> > files) but still allow them to edit and save them?

> > I setup a test share on a Win2K3 Server. Remove all rights for all users

> > except for the admin group. At the NTFS security tab I grant a group Modify,

> > Read/execute, list, read and write permissions. Then in the advance/special

> > permissions tab I enable the deny delete subfolders and files right. I then

> > create a word doc and it allws me to create it and edit it but the temp file

> > dont get deleted. If an Excel file gets edited and saved we get an error the

> > the folder is marked as read only.

> > So at a high level I wnt to prevent users from deleting MS Office docs but

> > still edit them.

> > I know the users can still open then and delete the contents of the file

> > itself but I can live with that...any suggestions?

> > Thank you,

> > </span></span>

 

That's what I thought...thank you Anteaus

Guest IsraelC from Miami
Posted

RE: How to prevent users from deleting Word/Excel files in a Share

 

Thank you Anteaus...that's what I though...any ideas if there re 3rd party

solutions out there?

Thanks again

 

"Anteaus" wrote:

<span style="color:blue">

> You can't. Word makes a copy of the file and then replaces the original on

> exit, hence anything which stops deletion also stops editing.

>

> Two alternatives which might be useful are to delete-protect folders but not

> files, or to write a script which 'seals' files after they've remained

> un-edited for a specified time.

>

>

> "IsraelC from Miami" wrote:

> <span style="color:green">

> > Anyone know how to prevent users from deleting files/folders (Word/Excel

> > files) but still allow them to edit and save them?

> > I setup a test share on a Win2K3 Server. Remove all rights for all users

> > except for the admin group. At the NTFS security tab I grant a group Modify,

> > Read/execute, list, read and write permissions. Then in the advance/special

> > permissions tab I enable the deny delete subfolders and files right. I then

> > create a word doc and it allws me to create it and edit it but the temp file

> > dont get deleted. If an Excel file gets edited and saved we get an error the

> > the folder is marked as read only.

> > So at a high level I wnt to prevent users from deleting MS Office docs but

> > still edit them.

> > I know the users can still open then and delete the contents of the file

> > itself but I can live with that...any suggestions?

> > Thank you,

> > </span></span>

Guest John McGaw
Posted

IsraelC from Miami wrote:<span style="color:blue">

> Anyone know how to prevent users from deleting files/folders (Word/Excel

> files) but still allow them to edit and save them?

> I setup a test share on a Win2K3 Server. Remove all rights for all users

> except for the admin group. At the NTFS security tab I grant a group Modify,

> Read/execute, list, read and write permissions. Then in the advance/special

> permissions tab I enable the deny delete subfolders and files right. I then

> create a word doc and it allws me to create it and edit it but the temp file

> dont get deleted. If an Excel file gets edited and saved we get an error the

> the folder is marked as read only.

> So at a high level I wnt to prevent users from deleting MS Office docs but

> still edit them.

> I know the users can still open then and delete the contents of the file

> itself but I can live with that...any suggestions?

> Thank you,

></span>

 

 

Is there any requirement that they save them back to the same location and

under the same name? What happens if your requirement was met and the user

does not delete the file/folder but simply trashes all of the contents

instead -- nothing gained there from what I can see. I haven't tried it but

simply making the files read-only should force the users to save them under

a different name or in a different location protecting the originals which

other users could work with.

 

John McGaw

http://johnmcgaw.com

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...