Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've just recently installed Windows 7, and I'm trying to set up a network share to be accessible by everyone on my (home) network. I'm used to XP, so it's taking me a little while to get used to the new way of sharing folders and setting permissions in 7.

So far, I have been able to:

  • share a directory on the network
  • change permissions on the directory so that users can actually see the contents

Now my problem is that every file in the directory is viewable, but not readable to network users. From my other machine I can see that the file exists, but when I try to copy it, I get a permissions error.

Is there a way to open the permissions on all the files in a directory to be readable by everyone?

So far I have only found a way to do it one file at a time, and that's just awful. In unix terms, I want all the directories to be 755, and all the files to be 644. How can I do this recursively?

share|improve this question

2 Answers 2

up vote 16 down vote accepted

Here's how I was able to do it:

  1. right-click on the directory, go to Properties
  2. Security tab, Advanced..
  3. Permissions tab, Change Permissions...
  4. Add...
  5. Advanced...
  6. click Find Now, then find and click on "Everyone", click OK
  7. click OK
  8. "Everyone" should now show up in the list, with "Read & execute" permissions
  9. check the box for "Replace all child object permissions with inheritable permissions from this object"
  10. click OK. That should recursively give read access to "Everyone".
share|improve this answer

From the GUI multi-select the files/folders you want to change. Right click and select Properties. Make your changes and if/when you are asked if you wish to apply the change to all folders and sub-folders click appropriately.

From the command line use the attrib command with the /r switch. Wildcards are accepted by attrib. Enter attrib /? for more information.

share|improve this answer
    
The Properties dialog for multi-selected items does not have much available. Only General/Customize, but nothing for sharing nor security. –  Tim Jul 4 '10 at 23:17
    
@Tim, which variant of Win7 do you have? Mine shows tabs for General, Sharing, Security, Previous Versions and Customize. –  John Gardeniers Jul 5 '10 at 1:49
    
Win 7 Pro. Properties for a single file has General, Security, Detail, and Previous Versions. Properties for a single directory has General, Sharing, Security, Previous Versions, and Customize. Properties for a selection of multiple files only has General and Details. –  Tim Jul 5 '10 at 7:28
    
@Tim, looks like it's gonna have to be the command line then. :) –  John Gardeniers Jul 5 '10 at 9:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.