Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




810 posts

Ultimate Geek
+1 received by user: 266

Trusted
Subscriber

Topic # 137915 13-Dec-2013 09:28
Send private message

Hi,

OK, I know I'm a bit rusty on "Modern" Windows, having primarily been a Unix guy for the last 15 years; so hence this question.

I'm at a client site, where I'm using their locked-down workstations, so I don't have Admin privs (not do I want them!) in Windows 7.

I've downloaded (from a vendor website) a self-extracting .exe file (which is a patch) for a server which is running a Unix OS; but the patch is a Windows .EXE (don't even ask!).

However, whenever I run said .EXE file, it immediately prompts for Windows Admin credentials via UAC which, of course, I don't have, in theory need, or actually want.  If I click "Cancel", then the binary immediately terminates with an "access denied" message (when running from the Command line).

Is there not some mechanism within Windows to say I wish to run this binary as a non-privileged user, so don't even bother asking for elevated rights? Because if there is, I can't find it.  And if there isn't, then I find it particularly irritating that in this modern day of "least privilege" being the "correct" thing to do that there is no way of running what is effectively a self-extracting compressed file without giving it total admin rights to the entire workstation. 

That seems so wrong...

Thanks!

Create new topic
8030 posts

Uber Geek
+1 received by user: 388

Trusted
Subscriber

  Reply # 951660 13-Dec-2013 14:37
Send private message

Sounds like the vendor hasn't signed their EXE with a trusted cert, if they did this properly you shouldn't see a UAC prompt.

If it's just a zip or rar you might be able to right click the file and extract it or that or another machine.


3674 posts

Uber Geek
+1 received by user: 2149

Trusted
Lifetime subscriber

  Reply # 951726 13-Dec-2013 15:41
Send private message

If they have something like 7-Zip installed, try opening the exe with that and see if you can pull out the contents.




Information wants to be free. The Net interprets censorship as damage and routes around it.


 
 
 
 




810 posts

Ultimate Geek
+1 received by user: 266

Trusted
Subscriber

  Reply # 951743 13-Dec-2013 16:01
Send private message

Thanks for the replies; I don't at this stage need help on how to get the files out of the self-extracting archive - a USB key and my own laptop (which I do have Admin rights on!) sorted that out pretty quick.

In response to answer #1, it's a major international hardware vendor; pretty sure the app is built correctly; and pretty sure the reason it's prompting for credentials is that my domain-account doesn't have Admin rights; the binary (or windows) "thinks" or "knows" it needs them (for example, escalation may be tagged in the manifest - I haven't checked), and is asking for credentials with local admin rights.  Pity all it does is create a subdirectory of your choice, and write files into it - none of which "need" (i.e. mandatory require) admin rights....  sigh.

However, I'd still like to know if there is a way to prevent Windows from attempting and then subsequently failing to gain elevated rights, and then point blank refusing to run the software.  I.e. is there a way to force it to run un-elevated.

As I've mentioned, I'm a Unix guy; so I like (where possible) to use Cygwin utilities on a PC.  The older Cygwin "setup.exe" file used to trigger a UAC elevation when run purely because the name was "setup.exe"; renaming it to something else (like "cygset.exe") would let it run, and as a non-priv'ed user you could say "install just for me", and as long as you had write-access to some directory it would be perfectly happy.

I notice that the latest version doesn't do that any more - even when renamed, it still attempts UAC escalation.  There is documented setting for an application manifest which tells Windows to automatically escalate; which would be fine, except it makes the whole "install just for me" non-priv code in the installer completely redundant!   (this is presumably what my vendor file I referred to earlier does too).

(Note: "Windows XP compatibility mode" still prevents the Cygwin installer from UAC prompting; that workaround still doesn't work for the vendor patch).

I guess at the end of the day, I'm just venting - my problem is solved; but it would be nice to know if there was a mechanism by which I could tell Windows to "just freaking do it" without Admin rights - yes, the app in question may then fail if it tries and/or needs to do something "special", but I know that these vendor patches just simply unpack into a sub-dir.  Yes, running the actual patch itself would be a privileged Op; but to just unpack some files?  Nope.

I'll log a support case with the vendor too, just to make a point....


1333 posts

Uber Geek
+1 received by user: 156


  Reply # 951782 13-Dec-2013 17:30
Send private message

Best way to think of UAC is that of sudo on Linux. There are things you may want to do and things you can no longer do - like run badly written installers by vendors who should no better :)

http://technet.microsoft.com/en-us/magazine/2009.07.uac.aspx





Software Engineer

 


3674 posts

Uber Geek
+1 received by user: 2149

Trusted
Lifetime subscriber

  Reply # 951891 13-Dec-2013 20:43
Send private message

jamesrt: Thanks for the replies; I don't at this stage need help on how to get the files out of the self-extracting archive - a USB key and my own laptop (which I do have Admin rights on!) sorted that out pretty quick.

In response to answer #1, it's a major international hardware vendor; pretty sure the app is built correctly; and pretty sure the reason it's prompting for credentials is that my domain-account doesn't have Admin rights; the binary (or windows) "thinks" or "knows" it needs them (for example, escalation may be tagged in the manifest - I haven't checked), and is asking for credentials with local admin rights.  Pity all it does is create a subdirectory of your choice, and write files into it - none of which "need" (i.e. mandatory require) admin rights....  sigh.



If its asking for admin rights then either its actively trying to do something that requires it (such as write to a folder you don't have permissions too with your account) or the package has been set to prompt for elevation when run. You'd be amazed how many major international vendors assume everyone has admin rights.




Information wants to be free. The Net interprets censorship as damage and routes around it.


Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

NZ and France seek to end use of social media for acts of terrorism
Posted 24-Apr-2019 12:13


Intel introduces the 9th Gen Intel Core mobile processors
Posted 24-Apr-2019 12:03


Spark partners with OPPO to bring new AX5s smartphone to New Zealand
Posted 24-Apr-2019 09:54


Orcon announces new always-on internet service for Small Business
Posted 18-Apr-2019 10:19


Spark Sport prices for Rugby World Cup 2019 announced
Posted 16-Apr-2019 07:58


2degrees launches new unlimited mobile plan
Posted 15-Apr-2019 09:35


Redgate brings together major industry speakers for SQL in the City Summits
Posted 13-Apr-2019 12:35


Exported honey authenticated on Blockchain
Posted 10-Apr-2019 21:19


HPE and Nutanix partner to deliver hybrid cloud as a service
Posted 10-Apr-2019 21:12


Southern Cross and ASN sign contract for Southern Cross NEXT
Posted 10-Apr-2019 21:09


Data security top New Zealand consumer priority when choosing a bank
Posted 10-Apr-2019 21:07


Samsung announces first 8K screens to hit New Zealand
Posted 10-Apr-2019 21:03


New cyber-protection and insurance product for businesses launched in APAC
Posted 10-Apr-2019 20:59


Kiwis ensure streaming is never interrupted by opting for uncapped broadband plans
Posted 7-Apr-2019 09:05


DHL Express introduces new MyDHL+ online portal to make shipping easier
Posted 7-Apr-2019 08:51



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.