INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Display Files In Folders the User Does Not Have Permission to View

Display Files In Folders the User Does Not Have Permission to View

Display Files In Folders the User Does Not Have Permission to View

(OP)
I have a program that opens what I call external files. These are files in a folder that pertain to individual invoices or orders. They are named like: 1234.pdf, 1234.tif, 5678.xls, 5678.xls, 5678.txt. Up till now I have just display a list of the files for one invoice or order on the screen and let the user pick which file they would like to view. I then use the following code (short version) to open the file in the windows default program.

CODE

Dim psInfo As New System.Diagnostics.ProcessStartInfo(FullFileName)
psInfo.WindowStyle = ProcessWindowStyle.Normal
myProcess1 = System.Diagnostics.Process.Start(psInfo) 
This works well. Now the client wants to prevent the sales people from possible opening other salesman files. I currently only let the salesman see there invoices/orders. So the problem is not in the list of files presented to the user, but rather in the "file open" open options in the windows programs such as notepad, etc. that would let then navigate to other files. To help solve this on the server we have removed access to these folders for all salesman. I have tried to start a process as a different user that has permission to these folders, but some of the programs need permission to copy the file before it is displayed, and that permision seems to go back to the original user (salesman). Can somebody provide some guidance? maybe you have done something like this. I tried some other code for impersonation, but that didn't work either.

Auguy
Sylvania/Toledo Ohio

RE: Display Files In Folders the User Does Not Have Permission to View

A few questions for you, for the sake of clarification

1) What permission method are you using to give/deny access to files? (Operating system set?)
2) Are the files on the local computer, where the application runs from, or are they stored on a remote computer?
3) If on a remote computer, what operating system are you using there?

The reason I am asking is that I had something similar at some point. The files were stored on a Linux system, and the permissions to rwx were set on the server, first on a folder level, then in some cases, on individual files. When attempting to open a file, either via the application, or via file/open in notepad, for example, the linux server granted or denied access. So I'm not clear on which setup you have.

Cheers,

Realm174

RE: Display Files In Folders the User Does Not Have Permission to View

(OP)
1. At the OS level, Win Server 2012 at the folder level.
2. No, on Win Server 2012.
3. Win Server 2012.

Auguy
Sylvania/Toledo Ohio

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close