Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    1 Posts 1 Posters 742 Views
    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
      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
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors