Community
    • Login

    Elevated privileges when saving, doesn't work if different user

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    1 Posts 1 Posters 933 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Peter RowP Offline
      Peter Row
      last edited by

      At work on Windows (10, 64bit Ent, 1709) if I’m editing a file in a restricted area, e.g. the hosts file, when I save it needs admin privileges.

      Previously I had local admin rights to my machine, I’m a developer after all, but now we are trialling securing things more. That is to say I now have 2 accounts. My original account that no longer has admin rights and an admin version of my account, e.g. foo and admin.foo.

      When I need to save a restricted file as in the above instead of a UAC prompt where I just click ok I now have to enter my admin username/password. This then causes an issue; after the privilege elevation Notepad++ is running under a different user account it no longer has the files open that I had before because they’re specific to the original user context it seems. Thus the only way to work around this is to start Notepad++ as admin and then open and edit the file, which kind of defeats the whole purpose of privilege elevation.

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors