Slashdot Mirror


Permanently Changing Windows XP Security Settings?

pnutjam asks: "I have googled and perused several publications seeking an answer but I find no mention of this problem anywhere. I am running applications not designed for a multi-user environment on Windows XP. To allow standard users to run these applications I've modified permissions on files, folders, and registry keys. Whenever a computer with the modifications is rebooted, the permissions revert to their previous settings. It doesn't happen when the users log off, only when the computers are rebooted." When adjusting Windows XP to support such applications, how do you make permission changes so that they survive through a reboot?

31 of 78 comments (clear)

  1. You ask this question here? by andawyr · · Score: 5, Insightful

    Methinks this question would be better asked on a Windows-XX specific site. Here, you're likely to get bombarded with flames.....

    1. Re:You ask this question here? by Marillion · · Score: 3, Funny
      Let me translate into Slashdot-eese.

      This person is really asking is, "How do I circumvent the unreasonable policies of the unwashed Microsoft conscripts that have taken over all of the Intel hardware?" He further pleads, "I want to be liberated. But I must be careful. If I outright revolt, if I install OpenBSD, they will send to a re-education camp." Which is located at the Unemployment Centre. "I could sneek in Cygwin, remain below the radar, boost my productivity, get promoted, and finally TAKE OVER THE WHOLE OF IT!BWAAAHA HA HA HA!

      Sorry, got lost in the moment.

      --
      This is a boring sig
  2. All you need is ........ by MrIrwin · · Score: 2, Informative
    An XP server domain, and everything will work fine!

    BTW, I have a subtle feeling that the TCO savings you get with XP server are because it is designed to be a pig to manage without it.

    What do mean you allready knew that......before the product was even beta'd????????

    --

    And if you thought that was boring you obviously havn't read my Journal ;-)

  3. Re:No no no no! by zoloto · · Score: 5, Insightful

    Slashdot, News for Nerds. Stuff that matters.

    Not all computer "nerds" run linux/bsd/etc and probably don't want to. Flame me away, but this is a technical news forum with a slant against anything microsoft/anti-gpl etc.

    People grow up and just comment if you can help. I'm not a microsoft fanboy, but this ignorance, aggression and non-acceptance is really counter productive for the "community" you people aspire to have in life.

  4. Re:I'll say it.... by NanoGator · · Score: 2, Funny

    "Install *nix." ... and donate your game library to Salvation Army.

    --
    "Derp de derp."
  5. Are you sure you have Local Admin Rights? by Marxist+Hacker+42 · · Score: 2, Interesting

    Depending on how your users are set up, the default in XP Professional (or at least the Enterprise-level license that my employer uses, YMMV depending on how much your IT department trusts lusers) is for users NOT to have local Admin Rights. Upon rebooting, file permissions would be reset from the Active Directory database- and I'd expect exactly this kind of behavior.

    Failing that, I'd have to examine your source, perhaps you aren't actually persisting the ADSI object properly to save to the Active Directory database?

    Finally, I agree with previous posters- an Open Source website is no place to ask random support questions for a closed source OS.

    --
    SJW: a person who perceives an injustice, and while correcting it, commits a greater injustice.
    1. Re:Are you sure you have Local Admin Rights? by Planesdragon · · Score: 3, Insightful

      Finally, I agree with previous posters- an Open Source website is no place to ask random support questions for a closed source OS. /. is a geek news site. Not a F/OSS site.

      And we have people who check stories for appropriateness for the site. They're called editors, and they all work with (or are) the folks who originally made the site.

  6. uh... by kayen_telva · · Score: 4, Funny

    dont reboot ??

    oh wait..

  7. Re:No no no no! by NanoGator · · Score: 3, Funny

    "Random fucking Windows fucking technical support? What the hell is going on here? Really... this place used to be Slashdot... "

    "Today's Slashdot story was, without a doubt, the worst submission ever. Rest assured that I was on the Internet within minutes, registering my disgust throughout the world. As a loyal reader, I feel Slashdot owes me."

    --
    "Derp de derp."
  8. Microsoft Tech Support. by arcanumas · · Score: 5, Funny
    Call Microsoft techn support.

    --
    Slashdot Sig. version 0.1alpha. Use at your own risk.
    1. Re:Microsoft Tech Support. by revmoo · · Score: 2, Insightful

      Call Microsoft techn support.

      Why's this funny? He's got a problem with software that cost a great deal of money, why the hell SHOULDN'T he call tech support? Seems like the first thing he should have done...

      --
      I would expect such blatant racism on Fark, but on Slashdot? Mods please ban this asshole.
    2. Re:Microsoft Tech Support. by Spoing · · Score: 3, Funny
        1. Call Microsoft techn support.

        Why's this funny? He's got a problem with software that cost a great deal of money, why the hell SHOULDN'T he call tech support? Seems like the first thing he should have done...

      LOL! STOP! You're killing me!!!!

      --
      A firewall can not protect you from yourself. Turn off what you do not need. Do not use the firewall to do your work.
  9. Mr. Obscure! by delus10n0 · · Score: 4, Informative

    Hey, let's post an Ask Slashdot question asking about Windows XP security/settings, and fail to mention:

    1) What application we're using that requires these settings.

    2) What our user setup is like. Are the users in the "Users" group, or the "Administrators" group? Are they part of the local machine, or a networked setup of users?

    3) Where this application is being installed to. Have we tried other locations? What permissions does it need?

    4) What you are doing exactly to remove permissions; what users/groups?

    Maybe with the details, we can provide a more proper answer. K thanks bye.

    --
    Not All Who Wander Are Lost
    1. Re:Mr. Obscure! by BrynM · · Score: 2, Interesting
      Or even something as simple as whether or not he un-checked "Allow inheritable permissions from parent to propogate to this object". I've found that XP will seem to let the permissions get changed without un-checking this box, but on re-boot the permissions re-propogate. Well hell! That could be the answer - or not. It doesn't always work that way for some reason.

      Maybe that helps... In which case he got what he came looking for no matter how lame we think his question may have been. Maybe we should cut some slack to people that may not know as much as we do... Times up! That's enough slack ;)

      --
      US Democracy:The best person for the job (among These pre-selected choices...)
    2. Re:Mr. Obscure! by pnutjam · · Score: 2, Insightful

      Or even something as simple as whether or not he un-checked "Allow inheritable permissions from parent to propogate to this object". I've found that XP will seem to let the permissions get changed without un-checking this box, but on re-boot the permissions re-propogate

      Tried it both ways. I like OSS as much as anybody on slashdot, right now, MS is what feeds the kids.

    3. Re:Mr. Obscure! by mpmansell · · Score: 2, Insightful

      Upon reading the original question, I doubt that this information is really necessary. He poses a pretty generic scenario and no doubt would like to know how to solve the problem for as large a class of apps as possible.

      Would you actually be capable of answering his question if you had this information, or are you just posing a position to be 'helpful' to those that really can?

  10. Use WMI by Ropati · · Score: 3, Informative

    This isn't really a fix, but it is a way around your problem. Set up a script using WMI to change all your permissions, shares and registry entries. Place the script in the startup folder and forget about it.

    Download the script samples and modify as necessary from:
    http://www.microsoft.com/technet/community/ scriptc enter/sampscr.mspx

    --
    machinator omnis sine licentia
  11. Policy Objects by Oriumpor · · Score: 3, Informative

    GPO's are there for this purpose. If you can't afford licensing then I'd say you need to read up on VB scripting.

    Don't get me wrong, I'm not saying you need to become a genious in it to do this stuff... but not knowing GPO's and VBS is like not knowing RC's and #!/bin/sh.

  12. VMWare by Molina+the+Bofh · · Score: 2, Interesting

    Why don't you try running it in VMWare?

    In case you don't know, it will allow you to run a completely virtual machine. You can run Linux, 98, NT, XP, whatever you want, even simultaneously. The nice thing is that you can even take a snapshot and easily restore the whole system to the exact point when you saved it. You can even take a snapshot of a booted system, and when you restore it, it'll already be booted.

    --

    -
    Roses are #FF0000, Violets are #0000FF, find / -name '*base*' |xargs chown -R us && mv zig greatjustice
  13. An ACTUAL Answer to your question by RGautier · · Score: 5, Informative

    Likely changes are being made to permissions in the registry permissions on your machine due to security policy, which is implemented on the machine when it is turned on. You'll want to edit things that you want to change in the Control Panel, under Administrative Tools, in the icon that says "Local Security Policy" and I apologize for my compatriots who have been less than kind...

  14. Something is wrong here. by obeythefist · · Score: 5, Informative

    When I first read this ask-for-help I thought it was a linux guy having a troll.

    I've modified permissions on files, folders, and registry keys. Whenever a computer with the modifications is rebooted, the permissions revert to their previous settings.

    Windows does not alter ACL's (access control lists) on files or folders at boot time. It is possible that you or someone else has configured a startup process or logon script (under Win2X active directory, computers can have logon scripts) that repermissions folders or files. I suggest either a full audit of the logon process or a rebuild to a standard windows (with latest patches, see www.windowsupdate.com).

    Registry settings by default are not altered by the startup/shutdown process, but again there may be a group policy or logon script attached to the object in AD somehow that is launching a permissioning process, or inheriting a new registry hive, although this is exceedingly unlikely. Again, a complete rebuild would solve this.

    If you do the rebuild and it does not help, check with your application support. From my 7 years of Windows drudgery and experience, 75% or more of "Windows" problems come from third party apps or PEBKACs.

    If you're unwilling to do the build or the application support people can't help you, contact Microsoft. They're very expensive, but they are very good at what they do, despite what the Slashdot crowd would have you believe.

    --
    I am government man, come from the government. The government has sent me. -- G.I.R.
    1. Re:Something is wrong here. by Micro$will · · Score: 2, Informative

      Registry settings by default are not altered by the startup/shutdown process, but again there may be a group policy or logon script attached to the object in AD somehow that is launching a permissioning process, or inheriting a new registry hive, although this is exceedingly unlikely. Again, a complete rebuild would solve this.

      Another possible scenario is that the NTUSER.DAT file which stores the user's policy is renamed to NTUSER.MAN. The user can change anything in the registry, but on reboot it will revert back to the old policy stored on the server.

  15. Group Policy Edit: GpEdit.msc. by Futurepower(R) · · Score: 2, Informative


    Group Policy Edit: GpEdit.msc. Enter that in Run... or in a DOS window.

    The whole system is very sloppy and very poorly documented, in my experience.

  16. I Had The Same Problem - Google Helped by TheWanderingHermit · · Score: 2, Informative

    I had the same problem -- I had a program that had to be installed by an Administrator, but I had to change the permissions on all the files for certain people and/or groups to use them. My app had to run on Windows XP and 2K.

    I Googled and found out about a command named "cacls". It can be used from the command line to change all the permission settings on any files or folders to allow any users or groups to use it.

    I'll leave it up to others to post more information on this, since I don't have the info in front of me and since this seems like too easy a question for Ask Slashdot (perhaps another Ask SlashGoogle?) -- unless I completely misunderstand the question.

  17. experts exchange by Scottarius · · Score: 3, Informative

    try asking this question at experts exchange. You'll find people there will be much more helpful with this issue.

  18. Re:Domain by pnutjam · · Score: 2, Informative

    For further clarification I am running an Active Directories domain with a windows 2000 server. I am migrating my workstations from windows 98 to XP.

    The specific applications giving me problems are AutoCAD 2000 (support has been discontinued, owner won't upgrade), and a custom application that writes data to several folders I'd rather it didn't.

  19. Better to call Psychic Friends Network by Futurepower(R) · · Score: 4, Informative


    Those with experience know that if you have a difficult Microsoft technical support question, it is better to ask the Psychic Friends Network. They don't know the answer either, but they are more friendly and less expensive.

    I've asked 3 questions of MS Tech support recently, and got 0.00 useful answers. For anyone who would like more accuracy in that number, it was 0.00000000000 useful answers.

    Microsoft technical support people not only cannot answer your question, but they are prevented by the Microsoft management hierarchy from communicating with anyone who would know the answer.

    Also, permissions policy in NTFS has some bugs, apparently. (Mentioned by someone else, earlier. I've encountered quirkiness, also.) There is at least one policy setting in Windows XP that says, "Only works in Windows 2000".

    Often a commercial company will not tell the truth about bugs. That's why I like Open Source people. They are honest about bugs. I reported 3 bugs in the NET USE command in Windows XP, and Microsoft Technical Support refused to do anything about it. Too much paperwork to report bugs, I guess.

  20. More help: by Futurepower(R) · · Score: 2, Informative


    More help. The documents are a mess, with contradictory statements and errors, and scattered information. Supposedly, all of these documents apply to Windows XP. At least that's what I was told by MS tech. support.

    Introduction to Windows 2000 Group Policy

    Understanding Group Policies on Windows Server 2003

    Windows XP Group Policies

    325388 Support WebCast: Windows 2000: Group Policy

    298444 A Description of the Group Policy Update Utility

  21. use security templates by sahtanax · · Score: 4, Informative

    start => run => mmc
    file => add snap-in
    add => security templates

    set your file / registry / services info in the template. save it as .inf

    then apply the template
    secedit /configure /cfg myfile.inf /db myfile.sdb /log myfile.log

    that will compile the inf into a sdb [security db], and apply it. any result will be written to the log. by convention...

    sdb location:
    %windir%\security\Database

    logs:
    %windir%\security\logs

    inf:
    %windir%\security\templates ...where "%windir%" is the windows install dir... i.e. C:\windows or C:\winnt

    bonus: the templace [myfile.inf] can then be copied and applied to any other win2k+ workstation /server.

  22. Re:Domain by BrynM · · Score: 4, Informative
    Is the custom app hard coded to those directories? If, by some lucky chance it's not on the C drive, you can have it shared and then map it to a network drive to make it think it's running from the right location (you can mount a local share).

    You may also want to check out this MS article about creating junction points. It's the "proper" way to link directories, but don't try anythong too complicated or you will just screw up NTFS. By complicated I mean trying to link different sub-directories inside linked directories.

    While you're at MS, take a close look at LinkD on the 2K Resource Kit. That may be just the ticket for making that custom app run from a server or from a different directory. If you don't have the ResKit, you can grab LinkD and other tools from the free offerings from the ResKit. I've used it inside a batch file wrapper for onery custom apps that clients insist on. Be sure to have the batch file un-link the directory at the end or un-link it if it exists at startup. NTFS doesn't like to have a bunch of these around or mangled. Here's the LinkD syntax:

    linkd source [/d] [destination] [/?]

    Where:

    source
    displays the Windows 2000 name targeted by source.
    source [destination]
    links source to destination (target), which can be any valid Windows 2000 directory name, device name, or object name.
    source [/d]
    deletes source, regardless of whether a link to a destination exists for that source.
    /?
    prints this help message. Type linkd /? | more to see all the help text.
    LinkD's syntax is case-insensitive. If a source or destination name contains a space, the name must be surrounded by quotation marks. All characters in both the source and destination names must be in the ASCII character set; usage of Unicode characters is not supported.
    A tool to be careful with, but a handy one.
    --
    US Democracy:The best person for the job (among These pre-selected choices...)
  23. batch file by Anonymous Coward · · Score: 2, Informative

    You can use a batch file that runs when windows starts and use the CACLS command line to change permissions... i havent used CACLS in like 6 months but if you just type it into CMD with no parameters you can get the usage; i dont remember it bein super difficult.