Results 1 to 11 of 11

Thread: Change Permissions in Bulk?

  1. #1
    Nobody expects the Senior Member Lemur's Avatar
    Join Date
    Jan 2004
    Location
    Wisconsin Death Trip
    Posts
    15,754

    Arrow Change Permissions in Bulk?

    Hey, unintended consequence of moving hard drives around between computers is that my old storage drive has incorrect permissions.

    So when I go to open an old file, I get denied, and am forced to right-click and change the security settings.

    On every damn file.

    There must be a better way. Anybody have an app for Windows for bulk permissions changes?

    Heck, even something as ghetto as a BAT file I can re-write would be okay.

    This is killing me. KILLING ME.

    "Those are my principles, and if you don't like them ... well, I have others." — Groucho Marx

  2. #2
    Iron Fist Senior Member Husar's Avatar
    Join Date
    Jan 2003
    Location
    Germany
    Posts
    15,617

    Default Re: Change Permissions in Bulk?

    I usually handle permissions per folder so that they apply to everything in that folder. Is that not an option or does it not work?


    "Topic is tired and needs a nap." - Tosa Inu

  3. #3
    Mr Self Important Senior Member Beskar's Avatar
    Join Date
    Feb 2008
    Location
    Albion
    Posts
    15,921
    Blog Entries
    1

    Default Re: Change Permissions in Bulk?

    I know for things like "Read Only" there is a pop-up which asks "Want to apply to all sub-folders and files as well?"

    Though strangely, this is one of those things I know how to do in Linux and I am a novice on it but not Windows...
    Days since the Apocalypse began
    "We are living in space-age times but there's too many of us thinking with stone-age minds" | How to spot a Humanist
    "Men of Quality do not fear Equality." | "Belief doesn't change facts. Facts, if you are reasonable, should change your beliefs."

  4. #4
    Nobody expects the Senior Member Lemur's Avatar
    Join Date
    Jan 2004
    Location
    Wisconsin Death Trip
    Posts
    15,754

    Default Re: Change Permissions in Bulk?

    Quote Originally Posted by Husar View Post
    I usually handle permissions per folder so that they apply to everything in that folder. Is that not an option or does it not work?
    Didn't take. Yeah, that was my first instinct, change permissions and click "apply to all sub folders and items," but for whatever twisted reason ...

    ... hmm, maybe I should just do it again. It's Microsoft, after all, so the exact same action may, in fact, yield a new result.

    -edit-

    Woot! Okay, didn't fix the problem, but I ran into an entirely new error message. Tried going into the "inheritable" settings, then re-apply my ownership settings. Got this when Windows hit my library of short films that I, you know, wrote:

    Last edited by Lemur; 01-26-2014 at 17:23.
    "Those are my principles, and if you don't like them ... well, I have others." — Groucho Marx

  5. #5
    Mr Self Important Senior Member Beskar's Avatar
    Join Date
    Feb 2008
    Location
    Albion
    Posts
    15,921
    Blog Entries
    1

    Default Re: Change Permissions in Bulk?

    This looks to be a solution, see if that is helpful. @Lemur
    Days since the Apocalypse began
    "We are living in space-age times but there's too many of us thinking with stone-age minds" | How to spot a Humanist
    "Men of Quality do not fear Equality." | "Belief doesn't change facts. Facts, if you are reasonable, should change your beliefs."

  6. #6
    Nobody expects the Senior Member Lemur's Avatar
    Join Date
    Jan 2004
    Location
    Wisconsin Death Trip
    Posts
    15,754

    Default Re: Change Permissions in Bulk?

    Quote Originally Posted by Tiaexz View Post
    This looks to be a solution, see if that is helpful. @Lemur
    Ah, if you compare the screenshot I posted above, you will see that I was already on the last step of your link.

    This appears to be Windows 8 getting back at me for every snide thing I've ever said about it.

    Step 1: When I change security settings on an individual item, the setting take.

    Step 2: When I try to make those setting inheritable, I get the "Failed to enumerate objects in the container."

    Step 3: Profit!

    -edit-

    Okay, some ideas here. Looks like variations on the "do it three more times and then Windows will cooperate" theme.

    -edit of the edit-

    Nope, doesn't work for me. No matter how many times I re-apply the inheritable settings, I get the "Failed to enumerate" message.
    Last edited by Lemur; 01-26-2014 at 17:47.
    "Those are my principles, and if you don't like them ... well, I have others." — Groucho Marx

  7. #7
    Iron Fist Senior Member Husar's Avatar
    Join Date
    Jan 2003
    Location
    Germany
    Posts
    15,617

    Default Re: Change Permissions in Bulk?

    It seems like for every bug you get in Windows that I don't get, I get one in Linux that you don't get. Then again networking in Windows can be a pain with the authorizations, atm it works fine for me but I've had some weird issues before.

    Have you tried simply restarting to reset access settings? Did you touch any of the files earlier? Are you using an administrator account (I assume you are)?


    "Topic is tired and needs a nap." - Tosa Inu

  8. #8
    Nobody expects the Senior Member Lemur's Avatar
    Join Date
    Jan 2004
    Location
    Wisconsin Death Trip
    Posts
    15,754

    Default Re: Change Permissions in Bulk?

    Quote Originally Posted by Husar View Post
    Have you tried simply restarting to reset access settings?
    Do you mean a simple reboot? Um, isn't that the first thing you try for everything in Windows? I mean, when in doubt, you just reboot the thing.

    Or are your referencing something else?

    Quote Originally Posted by Husar View Post
    Did you touch any of the files earlier? Are you using an administrator account (I assume you are)?
    What do you mean by "touch"? This was the bulk storage drive off my old PC. Since a big part of my job is writing videos, I keep copies of the final compressions on this drive. So ... yeah, I moved the drive, which had local permissions, which got blown to hell by the new machine, which I'm now trying to fix. Apparently my new local identity, LEMUR\CUBE, does not translate to my old local identity, LEMUR\UBERBOXEN.

    Yeah, admin account, for all the good it does me.
    Last edited by Lemur; 01-26-2014 at 20:11.
    "Those are my principles, and if you don't like them ... well, I have others." — Groucho Marx

  9. #9

    Default Re: Change Permissions in Bulk?

    Me I'm no friends with the Windows system admin tools. So I tend to just brute force these things using Linux instead, but then again I don't use Windows for anything needing even the pretense of security.

    As root from the terminal simply copy the contents of the file to another file, delete old file in an attempt to get the contents of the file copied to a location which ACLs don't see. Do this for all files you care about, using something like

    Code:
    echo 'cp "$1" "backup-$1" && rm -f "$1"' > /tmp/force-my-way.sh
    chmod +x /tmp/force-my-way.sh
    find /media/path/to/volume -type -f -name '*.pattern' -exec sh /tmp/force-my-way-sh "{}" \;
    Linux NTFS drivers may be smart enough not to touch ACLs but probably won't be smart enough to create new ACL misery for you. Be careful with the find command to only match the files you really want to touch, so it's probably best to execute the find query without the -exec part to verify that first.

    Finally let Windows fsck the volume to make sure Windows NTFS drivers agree with the Linux ones on the state of the disk afterwards.
    Last edited by Tellos Athenaios; 01-27-2014 at 01:35.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    “ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

    Member thankful for this post:

    Lemur 


  10. #10

    Default Re: Change Permissions in Bulk?

    Also, if you have a non-gimped version of Windows you might have PowerShell. You could spend an evening's worth of research then pit yourself in a battle of wit and willpower against Windows.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    “ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

    Member thankful for this post:

    Lemur 


  11. #11
    The very model of a modern Moderator Xiahou's Avatar
    Join Date
    Aug 2002
    Location
    in the cloud.
    Posts
    9,007

    Default Re: Change Permissions in Bulk?

    I bet you need to seize ownership of the files. I used to come across this a lot when I used to have to support servers...
    Right click -> Properties -> Security Tab -> Advanced button -> Owner tab -> click edit. And if you want to push it down thru the directory structure, click the appropriate check box.

    After that, you should be able to set permissions without issue.
    Last edited by Xiahou; 01-27-2014 at 05:03.
    "Don't believe everything you read online."
    -Abraham Lincoln

    Members thankful for this post (3):



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO