Re: Can I set permissions on a file using a script?

From: The Atomic Ass (the_atomic_ass@NOSPAMrunbox.com)
Date: 07/04/02


From: The Atomic Ass <the_atomic_ass@NOSPAMrunbox.com>
Date: Thu, 04 Jul 2002 18:24:49 GMT


Ajay elegantly belched in news:OO1s4jqICHA.2748@tkmsftngp13:

> System: Windows XP with NTFS.
>
> My Problem: Due to a bug in MS Money 2000 (that I have reported),
> everytime I close Money and it compacts the data file the permissions
> on the file are changed so that only the Administrator and the current
> user can access it. This means that other computers on my home network
> running Win98 get a permission denied message when they try to access
> it. The person trying access the file then has to come to the WinXP
> machine and manually change the permissions to give "Everyone" access.
>
> I would like to know if there is script command I can use to set the
> permissions so we can just double-click an icon on the WinXP desktop.
> Or better yet, a way to disable permissions completely on a file or
> folder so this isn't an issue.
>
>
>

In the files containing folder, open the properties, security tab, set to
everyone, (as you would with the file), click advanced, check "Replace
permissions on all child objects with entries shown here that apply to
child objects". Now everytime the file is re-created, it will always have
the permissions that you want.

-- 
Some people have recently voiced their displeasure in my binary posts and 
comments.  If you are one of them, complain to my Administrator!
Postmaster@ranko.d2g.biz
(for those of you who are wondering, is this a gag?  yes it is.  I'm the 
Administrator) 3)


Relevant Pages

  • Problem with permission in /dev/sr0: k3b cannot find CDROM drive
    ... I'm facing for some time now problems with the permissions of my CDROM ... Everytime I start k3b I receive this message: ... running Sid AMD64. ...
    (Debian-User)
  • Re: Cannot Delete Registry Keys
    ... professional system and everytime I attempt to delete regsitry keys, ... permissions on the key and the permissions are set correctly, ...
    (microsoft.public.windowsxp.general)
  • YOu are not authorized to view this application
    ... Have you given the anonymous user read access to the ... permissions in some cases possibly) ... Jamie ... >Everytime I create a virtual directory in IIS 6, ...
    (microsoft.public.inetserver.iis)
  • Weird Permissions Problem With Includes
    ... I just setup a new server with PHP 5 and ran into a problem with ... Everytime I call something like ... I verified that apache has exectuble permissions all the way through / ...
    (comp.lang.php)
  • Re: EMERGENCY: Files lost
    ... Windows XP Home Edition, with SP2. ... or other folders and files at that level. ... Administrator, I do have normal access to all files and folders. ... You now need to edit the permissions of every file (step 6 on my page. ...
    (microsoft.public.windowsxp.configuration_manage)