Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Save a file in a network location REMOVING the DELETE Privilege

Posted on 2012-08-21
5
Medium Priority
?
37 Views
Last Modified: 2015-08-15
Hello,

I need to save a file from my application to a network location by ONLY providing modify / re-save permission and totally avoiding DELETE Permission.
Vividly I have to completely stop any user NOT to DELETE that file physically from the location. This has to be controlled from my application.

I think it is possible manually, BUT I need to know how to implement it through VB.NET ? Any piece of code implementations would be of great help.

Knowledge and help is very much appreciated.
0
Comment
Question by:ravindrasen
  • 2
3 Comments
 
LVL 84

Accepted Solution

by:
David Johnson, CD, MVP earned 1200 total points
ID: 38319218
I need to save a file from my application to a network location by ONLY providing modify / re-save permission and totally avoiding DELETE Permission.
Vividly I have to completely stop any user NOT to DELETE that file physically from the location. This has to be controlled from my application.


Can't be done without constantly changing the permissions i.e. add write/modify permissions write the file and then remove the permissions after the file is saved.  

Better to save the file to a temporary folder and have a watchdog process running on the server that is running as a seperate user move the file to the desired location.. this watchdog service only monitors a folder and moves all newly created files to the folder you want. This way you are not continually playing with permissions.
0
 

Author Comment

by:ravindrasen
ID: 38320495
So is it possible to have the write, save, modify permissions on a file AND not Delete permission ever.?

The idea is if to save a specific file on a network location, the user can only be able to re-write and save on it BUT NEVER be able to DELETE the file.

Do you think this will work out ?
0
 
LVL 84

Expert Comment

by:David Johnson, CD, MVP
ID: 38320745
Nope, modify gives delete.
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question