Results 1 to 9 of 9

Thread: Urgent: Win2K permissions

  1. #1

    Thread Starter
    Hyperactive Member Alan777's Avatar
    Join Date
    Jan 2001
    Location
    New Zealand
    Posts
    303

    Urgent: Win2K permissions

    How can I change the thread permission of my app so that it can have full read/write access to any files in the case where the user account does not have access to anything except the desktop and the app itself? Or whatever. The security details for the user is beside the point.
    The point is the app should have full access without changing the user's access rights, or lack thereof.
    Last edited by Alan777; Apr 5th, 2002 at 08:17 AM.

  2. #2
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Only allow the user to use your app with Full Admin rights?
    <removed by admin>

  3. #3

    Thread Starter
    Hyperactive Member Alan777's Avatar
    Join Date
    Jan 2001
    Location
    New Zealand
    Posts
    303
    The user will have no rights at all. The user will have access to the app and that's it. But the app needs to be able to get full access to some files.

    Reason: the users of the system may change frequently. It is essential that they can't access any important files. However, the app itself must be able to do anything it needs to do.
    The users will have access to things via the app and via the app only.

  4. #4
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    err.raise 4million

    If err=4million then msgbox "I have no clue."

  5. #5

    Thread Starter
    Hyperactive Member Alan777's Avatar
    Join Date
    Jan 2001
    Location
    New Zealand
    Posts
    303
    sh**
    I bumped it to the top specially for you Lord_Rat.
    You disappoint me

  6. #6
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    Well, what can I say?

    Sorry.

  7. #7

    Thread Starter
    Hyperactive Member Alan777's Avatar
    Join Date
    Jan 2001
    Location
    New Zealand
    Posts
    303
    Anyone???

  8. #8
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    I possibly shouldn't really give this out, but it works like this :

    1) code looks at logged in users account
    2) code logs into domain or local pc as a specified / hard coded user logon
    3) code compares the accounts, then sets the original users rights to that of the specified admin one
    4) code carries out admin task such as writing to the registry
    5) code resets the users rights back to what they were & logs off the second / temp one.

    This is a huge security risk for your users and network if you do this. On win9x machines you won't need to use this & you should find your users have rights for what you're trying, so this app is mainly for winNT & 2000.
    To use it, the local user needs to have the "act as part of the operating system" privelage set up for this to work (havce a word with your network guys to set this).
    Attached Files Attached Files
    Last edited by alex_read; Apr 5th, 2002 at 09:56 AM.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  9. #9
    Registered User
    Join Date
    Jan 2003
    Posts
    218

    change user rights

    Alex, Alan,

    I just opened the frm file you posted, but could you please point me to more extensive examples that illustrate in more details how this is done. Many thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width