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.




822 posts

Ultimate Geek
+1 received by user: 287

Trusted
Subscriber

# 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
8033 posts

Uber Geek
+1 received by user: 390

Trusted
Subscriber

  # 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.


3701 posts

Uber Geek
+1 received by user: 2167

Trusted
Lifetime subscriber

  # 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.


 
 
 
 




822 posts

Ultimate Geek
+1 received by user: 287

Trusted
Subscriber

  # 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....


1352 posts

Uber Geek
+1 received by user: 160


  # 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

 


3701 posts

Uber Geek
+1 received by user: 2167

Trusted
Lifetime subscriber

  # 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 »

Video game market in New Zealand passes half billion dollar mark
Posted 24-May-2019 16:15


WLG-X festival to celebrate creativity and innovation
Posted 22-May-2019 17:53


HPE to acquire supercomputing leader Cray
Posted 20-May-2019 11:07


Techweek starting around NZ today
Posted 20-May-2019 09:52


Porirua City Council first to adopt new council software solution Datascape
Posted 15-May-2019 12:00


New survey provides insight into schools' technology challenges and plans
Posted 15-May-2019 09:30


Apple Music now available on Alexa devices in Australia and New Zealand
Posted 15-May-2019 09:11


Make a stand against cyberbullying this Pink Shirt Day
Posted 14-May-2019 20:23


Samsung first TV manufacturer to launch the Apple TV App and Airplay 2
Posted 14-May-2019 20:11


Vodafone New Zealand sold
Posted 14-May-2019 07:25


Kordia boosts cloud performance with locally-hosted Microsoft Azure ExpressRoute
Posted 8-May-2019 10:25


Microsoft Azure ExpressRoute in New Zealand opens up faster, more secure internet for Kiwi businesses
Posted 8-May-2019 09:39


Vocus Communications to deliver Microsoft Azure Cloud Solutions through Azure ExpressRoute
Posted 8-May-2019 09:25


Independent NZ feature film #statusPending to premiere during WLG-X
Posted 6-May-2019 22:13


The ultimate dog photoshoot with Nokia 9 PureView #ForgottenDogsofInstagram
Posted 6-May-2019 09:41



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.