Re: script for assigning folder permissions




"rocketz21" <rocketz21@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9ABB9C16-9465-4E3A-AA3D-E91FE00E4EA2@xxxxxxxxxxxxxxxx
Thanks. I would like to run it as a vbs script to keep it in the
backgroup

"backgroup"? do you mean "background"?

and run it from group policy. However, I am terrible at vbs scripts and
don't understand the formatting or how to create one on my own.

and I haven't ever written scripts that are run via group policy, so I won't
be much help here. Anyone else?

As for applying to multiple folders, can you show me an example? I don't
quite understand what you mean.

The xcacls.vbs command, which would most likely be executed from a batch
file, typically processes one file or folder at a time. To do more than one
folder you just need additional commands - just like the first one, but with
the folder names changed.

xcacls.vbs c:\fsp\ /g DOMAIN\"domain users":f /f /t /e /q
xcacls.vbs c:\glrp\ /g DOMAIN\"domain users":f /f /t /e /q

The folders needs the same permissions for
domain users and also a file. Can you specifiy a specific file or files
within the script to have the same permissions?

There are 80% XP and 20% Windows 2000 pcs.

I'm not sure if w2k includes a cacls.exe, but you could copy xcacls.exe to
those systems. Or xcacls.vbs, but do the w2k systems all have vbscript
installed?

/Al


"Al Dunbar" wrote:


"rocketz21" <rocketz21@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4AFD1FB0-90CC-43DA-A074-521A18DEEDF4@xxxxxxxxxxxxxxxx
Here is what I have done, but I'm afraid it won't work correctly from
group
policy:

xcacls.vbs c:\fsp\ /g DOMAIN\"domain users":f /f /t /e /q

Saved it as a .bat file. When I run the program the command prompt
window
stays open, anyway to hide it in the background?

run it as a scheduled task, or run it from a vbscript that causes its
window
to be hidden. This seems to me a one-time thing done by an administrator,
so
I'm not sure if the additional work required would be warranted to make
it
more agreeable to run.

If i want to include multiple folders, do I need to make separate lines
for
each or what's the correct syntax?

xcacls.vbs/.exe (and cacls.exe too) process one file or folder
specification
(which can be a wildcard, if that helps you) and all object processed
have
the same permissions applied them. If you need to apply different
permissions, or if you cannot specify all the folders you want throug the
clever use of wildcards, or if you just want to make this simple and
manageable, you will need separate xcacls or cacls commands.

What if the pc doesn't have the xcacls installed? Will it not work? I
want
to deploy this over group policy to ensure all the pcs have the correct
permissions for any current and new employees.

Your system(s) is/are not w2k, but what are they? If they are XP or
windows
server 2003, then they should already have installed an executable called
cacls.exe that is, by definition, compatible with NTFS on the respective
systems. xcacls.vbs seems to be a vbscript implementation of the resource
kit utility called xcacls.exe. That, in turn, was originally written to
address shortcomings of the version of cacls.exe that came with NT. With
XP
and w2k3 we now have a native cacls.exe that is what it should have been
all
along, and, imho, no further need for any of the xcacls variants out
there.

/Al




.



Relevant Pages

  • Re: [Full-disclosure] Microsoft Windows Vista/2003/XP/2000 file management security issues
    ... In order for Alice to Take Ownership of Bob's private folder she would ... Owner and now Bob no longer has the ability to set permissions on it. ... And Windows does have a umask-like function. ... This article contains a set of attack scenarios to demonstrate security ...
    (Full-Disclosure)
  • Re: User rights problem (Least Privilege)
    ... After giving write permission to Users group on Windows folder the ... >> I am managing a small network with Windows 2003 as DC and XP as clients. ... > inexperienced or limited user should ever have write permissions. ... > limited accounts, you can fix it to allow limited users to access the ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Modify advanced permissions using wsh on W2K Server
    ... the checkbox that applies changes made to a folder to ... parameters it requires to accomplish your permissions changes. ... >> Two lines of your gifted experience with windows ... >> In the event you had not unchecked the daylight savings time box ...
    (microsoft.public.scripting.wsh)
  • Re: Password
    ... You don't assign passwords to files in Windows XP, ... In Windows Explorer, go to Tools, Folder Options, View and uncheck ... Here you can assign or deny permissions based on user name or user ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Need to override Windows user password to access files.. Help!
    ... you can set XP Home permissions in Safe Mode. ... Open Explorer, go to Tools and Folder Options, on the view tab, scroll to ... First, go to Windows Explorer, go to Tools, select Folder ...
    (microsoft.public.windowsxp.accessibility)

Loading