[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 638
  • Last Modified:

How to hide file in a shared directory to another user?

Is that possible to hide a file to another user in a shared directory?

For example, several users A,B,C... have accesses to a shared folder, A creates a file and want to make it hidden to other users except user C. Is that possible under windows share file system? thanks
0
fxp007
Asked:
fxp007
  • 4
  • 3
  • 3
  • +4
3 Solutions
 
ChiefITCommented:
If they have access to it, no.

There is a program called Access Based Enumeration that will hide files from users that don't have access to it.
0
 
Muzafar MominCommented:
you can hide it but you can deny access to specific folder/file from security tab of file/folder
0
 
fxp007Author Commented:
Is that possible to change some permissions of the file he want to hide to make it invisible to a certain users? I've tried but only make it uneditable.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Alan HardistyCommented:
A file is either hidden or not hidden.  You can't hide it for specific users with what is built-in to Windows.
0
 
fxp007Author Commented:
What should I use to hide a file for specific users? A permission option?
0
 
Alan HardistyCommented:
If a 3rd party application exists - then you need one, but I am not aware of one.  With what you have built-in to windows you simply can't tweak a permission to make this work.

Permissions either give you access to the file or not.  You can make a file invisible with permissions.

You can make it hidden and enable Show Hidden Files And Folders for users you want to see the file and make sure this is not Enabled for users who you don't want to see it, but anything more than that requires a 3rd party application which I can't recommend as I don't know that one exists!!
0
 
bright12Commented:
As alanhardisty already mentioned. If you hide a file, it's hidden for all users. It's not possible in a normal windows environment to hide a file for some users in 1 map.

Therefor you need a 3rd party software that may can do that. It's has nothing to do with a permission option.
0
 
ChiefITCommented:
Alan:
Access Based Enumeration will hide files/folders that the person does NOT have access to. That's a microsoft program.

"Access-based Enumeration is a new feature included with Windows Server 2003 Service Pack 1. This feature allows users of Windows Server 2003–based file servers to list only the files and folders to which they have access when browsing content on the file server. This eliminates user confusion that can be caused when users connect to a file server and encounter a large number of files and folders that they cannot access."

From technet:
http://technet.microsoft.com/en-us/library/cc784710(WS.10).aspx
0
 
bright12Commented:
I think that the Access Based Enumeration is not quite the solution that he needs.

He need something that will hide certain files for certain users in the same map. And that the user who created the file is able to 'manage' the access to that file. Meaning that user A created a file and only user C is able to see that. When user A another file created only user B is allowed to see it and not user C. Both files are in the same map.

fxp007: Is this what you looking for?
0
 
Alan HardistyCommented:
Good to know - thanks ChiefIT.  Not come across that before.  Nice to know that MS has that covered too!!
0
 
Alan HardistyCommented:
@bright12 - sounds perfect to me.
0
 
ChiefITCommented:
Well, we all agree you can't hide unless you prevent access to the file. ABE is only an alternative.

Another options is something like an admin share where you append a $sign in front of the share to hide it from everyone, but administrators can still access it.
0
 
rpartingtonCommented:
As chiefit states the only freebie you can get is ABE.
As a work around which in your situation is far from ideal you could create a share within this main top level folder and call it something like "Hidden" or "Restricted"
Using ABE the user who you dont want to see the file would not see the folder and file if you put the file or files in this hidden folder if you DID NOT give them access to this hidden folder.
Very messy if you ask me, as all I would do if I did not want someone to see a file would be to store it in my personnel folder which has limited access. However I assume you are talking about a folder which is connected to a certain project etc and want all relevant files in the same project folder so you are not searching all over.
So as I say the only work around would be to create a folder with in the top level folder that all users have access too, then create a restricted folder or numerous restricted folders within this and do not give certain users access to these restricted folders.
ABE will then hide these restricted folders from the users that you do not give access too.
Bit of work involved in managing this on your part though easier just to deny them access to the files as previously mentioned.
Hopefully this gives you food for thought.
0
 
bright12Commented:
As I stated before, I think that he wants that the user is able to decide who can see the file and who not.  In other words, this should be done dynamically instead of static.

And we all agree that this is not possible.
0
 
rpartingtonCommented:
If the user has full access to the folder the user can add and remove who has access to the folder and hence can actually see the folder.
Admin problems with this one though I know.

As if you had 3 users who all had access to the top level folder.

You would need to have 3 sub folders that each of these users had full control over.
So user A has full controll to Sub folder A
User B full control over sub folder B
User C full control over Sub folder C

They as the owners of their respective sub folders they could each then decide who can access their sub folder and of course ultimately see the sub folder with the files sat in side.
But this of course relies on these 3 users been able to add and remove users access to their own respective subfolder and hence allow other users to either see and access these folders.
0
 
oliverstoneCommented:
@rpartington
Just my advice : do never give FULL CONTROL to any end-user, even for Homedrives.
Modification right is enough for user to create, rename and delete.
This prevent users from modifying access rights themselves.

Let the full control to 1 admin account, backup account in my case

Then in this case, you can add a specific rights in the SECURITY tab for a specific user on a specific folder in the DENY READ & EXECUTE rights and DENY LIST FOLDER CONTENTS
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 3
  • 3
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now