I couldn't help myself

| | Comments (1)

I had to laugh. In fact I did, out loud. Until I realised that it'd probably be me that would need to fix it. Then I just sighed.

So *someone* reset all the permissions on the web drive of cia's w2k server (not mentioning any names ;) ). They were trying to remove the everyone full control, and must have hit apply to the entire drive. Several hundred users later..... like... WHOOPS.. hehe

So, since the old server was still online (they only upgraded it on the weekend), I figured it must be possible to do a dump of the permissions on the old machine, and apply them to the files on the new machine. So I came home and googled it. Turns out you can do it, in one line of code for each server.

To dump everything:
x:\subinacl.exe /noverbose /nostatistic /outputlog=output.log /subdirectories "w:\*.*" /display

To import everything:
x:\subinacl.exe /nostatistic /playfile "output.log"

Easy, right? Well not quite. The problem is, with so many files, the output log came to 665mb. And a bazillion entries of the old server name that needed to be changed to the new server name. Wordpad doesn't do this very easily! :) So on that note I'm leaving the file with James, who has grunty boxes to play with, to see if he can do the search and replace.

If not, Da-- oops, not mentioning any names ;) will have to dump the directory list and batch them to do them one at a time :)


Matt said:

Here's a link to software which could make things a lot easier. We used it to migrate data from one server to another, while maintaining the ntfs permissions. I believe that you can do JUST the permissions if the file/directory structure have already been mirrored. You can use the trial version without restriction. (cool:)) If you like it, a single computer license is only $25(US). That's really all you need too. We Installed it on one box, and just mapped drives to the other servers, then setup the scripts through the GUI.


May 23, 2007 8:14 AM


Leave a comment

Kazza's "Boring Life Of a Geek" aka BLOG

IT geek, originally from Sydney, moved to Canberra in 2007. Married to "the sweetie", aka Stu. Prolific photographer, Lego junkie and tropical fish keeper.

Kazza the Blank One home