Jump to content

Simple File Browser


mattyb_53

Recommended Posts

HI,

 

Im trying to implement my own file browser and im having issues with security on a windows system. Suppose a User on a domain (win 2003) is not allowed access to a folder. How would I be able to implement similar security in PHP?

 

I want to be able to list the contents of a folder, but hide the folders and files that a user is not allowed to see.

 

Is this possible? Ive been googling all day!

Link to comment
Share on other sites

Lemme perhaps re-phrase the thing..

A user logs into the application, and their username is the same as their domain controller username.

They can manage the files sitting on the file share, and files and folders have certain permissions. So windows shows/hides, allows/denies access based on windows domain permissions.

 

Now my app is web based. I want to take the username (used to log in) and list the files in say the root directory. if that user is not allowed read access to a folder in that directory..then hide it.

 

is there a way to get the windows permissions on a folder? I know Chmod is a little screwy and doesnt work well in windows

Link to comment
Share on other sites

Hm, I like PHP as its quick efficient and so forth. But I cant believe there isnt a way of displaying files from a directory based on your Windows Active Directory permissions.

 

All i need is a way to prevent users from seeing files and folders they wouldnt normally see on a network share.

 

!! ??? :'(

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.