Guest techenthu Posted September 26, 2008 Posted September 26, 2008 Hi, I have an application which i need to install in the the Program files and launch at the startup.With UAC enabled, I install it as an administrator,it works fine and launches at the start up when i log off and log in again as an admin.But,when i log in as a normal user i have to always "Run as an Administrator" and provide the admin password for launching it , which i dont want to do. When I disable the UAC ,the application does not even start as a normal user it just says "Applicatoin has stopped working" and gives System.UnAuthorisedException. I need the application in the Program files itself and cannot move it to some other user folder. I need to know if there is a way to run an application as a normal user without providing the admin password. Any help would be highly appreciated. -- techenthu Quote
Guest Brink Posted September 26, 2008 Posted September 26, 2008 techenthu;845780 Wrote: <span style="color:blue"> > Hi, > > I have an application which i need to install in the the Program files > and launch at the startup.With UAC enabled, I install it as an > administrator,it works fine and launches at the start up when i log off > and log in again as an admin.But,when i log in as a normal user i have > to always "Run as an Administrator" and provide the admin password for > launching it , which i dont want to do. > > When I disable the UAC ,the application does not even start as a normal > user it just says "Applicatoin has stopped working" and gives > System.UnAuthorisedException. > > I need the application in the Program files itself and cannot move it > to some other user folder. > > I need to know if there is a way to run an application as a normal user > without providing the admin password. > > Any help would be highly appreciated.</span> Hello Techenthu, You might create a task in Task Scheduler to have that program run at startup instead. This tutorial will help show you how to if needed. It will avoid the UAC problem at startup. http://www.vistax64.com/tutorials/166809-t...p-computer.html Hope this helps, Shawn -- Brink There are no dumb questions, just the people that do not ask them. ' VISTA FORUMS ' (http://www.vistax64.com) Please post feedback to help others. Quote
Guest Paul Montgumdrop Posted September 26, 2008 Posted September 26, 2008 techenthu wrote: <span style="color:blue"> > > I need to know if there is a way to run an application as a normal user > without providing the admin password. > </span> No, if the program needs its rights escalated to run at the moment privilege escalation with admin rights and the account is a non Admin account being used to run the program, then the non admin user must give an user-id and psw to a admin account at the time of privileged escalation. http://technet.microsoft.com/en-us/magazine/cc138019.aspx Now you can the Task Scheduler to start the program, but still Task Schsduler will run the task with the highest privileges it can archive. Quote
Guest techenthu Posted September 26, 2008 Posted September 26, 2008 Thanks Shawn!! The application comes as a package and when i run the setup file it goes and sits in the program files and is launched at the startup. I do not want to alter this behaviour. what i did, I have disabled the UAC and have changed the attributes settings of the entire folder so that it is not "Read Only" now ,with this i am able to start the application as a standard user and it does not even prompt for the admin password , though it reduces the security of my system style_emoticons/ Problem now, The application in turns starts another services which needs to allocate memory and now i get "Cannot acess memory at location .... " and it crashes the internal services and when i debug it points me to some part of code in new.cpp files any idea what needs to be done ? -- techenthu Quote
Guest techenthu Posted September 26, 2008 Posted September 26, 2008 techenthu;845915 Wrote: <span style="color:blue"> > Thanks Shawn!! > > The application comes as a package and when i run the setup file it > goes and sits in the program files and is launched at the startup. I do > not want to alter this behaviour. > > what i did, > I have disabled the UAC and have changed the attributes settings of the > entire folder so that it is not "Read Only" now ,with this i am able to > start the application as a standard user and it does not even prompt for > the admin password , though it reduces the security of my system style_emoticons/ > > Problem now, > The application in turns starts another services which needs to > allocate memory and now i get "Cannot acess memory at location .... " > and it crashes the internal services and when i debug it points me to > some part of code in new.cpp files > > any idea what needs to be done ?</span> The error message i get is "Access violation reading location 0x00000000" -- techenthu Quote
Guest Brink Posted September 26, 2008 Posted September 26, 2008 Techenthu, Have you tried to see if it that startup program will run better at startup as a task instead of from the startup programs list? http://www.vistax64.com/tutorials/79612-st...le-disable.html -- Brink There are no dumb questions, just the people that do not ask them. ' VISTA FORUMS ' (http://www.vistax64.com) Please post feedback to help others. Quote
Guest Paul Montgumdrop Posted September 26, 2008 Posted September 26, 2008 techenthu wrote: <span style="color:blue"><span style="color:green"> >> >> Problem now, >> The application in turns starts another services which needs to >> allocate memory and now i get "Cannot acess memory at location .... " >> and it crashes the internal services and when i debug it points me to >> some part of code in new.cpp files >> >> any idea what needs to be done ?</span></span> Let's see here. The program will not run and blows-up when UAC is disabled, because the program is a Vista UAC compliant program. And at some point in you trek to get this program to work, it has clearly told you about the System.UnAuthorisedException . It works when UAC is enabled, because with UAC enabled, it allows the program to use the Administrator Full Rights security token to escalate its rights to perform a needed task within the program. It's a Vista UAC compliant program. So basically, you're right back at square one System.UnAuthorisedException , because permissions cannot be set for the program. Quote
Guest Bruce Chambers Posted September 26, 2008 Posted September 26, 2008 techenthu wrote:<span style="color:blue"> > Hi, > > I have an application which i need to install in the the Program files > and launch at the startup.With UAC enabled, I install it as an > administrator,it works fine and launches at the start up when i log off > and log in again as an admin.But,when i log in as a normal user i have > to always "Run as an Administrator" and provide the admin password for > launching it , which i dont want to do. > > When I disable the UAC ,the application does not even start as a normal > user it just says "Applicatoin has stopped working" and gives > System.UnAuthorisedException. > > I need the application in the Program files itself and cannot move it > to some other user folder. > > I need to know if there is a way to run an application as a normal user > without providing the admin password. > </span> Basically, you're trying to use an application that was not designed to run securely, or to be used on a secure OS. That might make it dangerous (Can't say for sure, since you've kept the application's name and purpose to yourself.) to use. For proper resolution, you'd have to ask that application's manufacturer if they have a patch or upgrade available to make it Vista-compatible. -- Bruce Chambers Help us help you: http://www.catb.org/~esr/faqs/smart-questions.html http://support.microsoft.com/default.aspx/kb/555375 They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. ~Benjamin Franklin Many people would rather die than think; in fact, most do. ~Bertrand Russell The philosopher has never killed any priests, whereas the priest has killed a great many philosophers. ~ Denis Diderot Quote
Guest Wayne Posted September 28, 2008 Posted September 28, 2008 Bruce, I am right there with you. I was going to ask if the software program was Vista Compatible or when it was made. There are a couple of other options he has. I was presuming it was vista compatible because it would run with UAC turned on. However, 1. Install the program and run the program in compatibility mode. This may get your around the UAC issue. If you need to know how to run compatibility mode, please come to my forum and post the question. I will be more than happy to write it out for you. (Just don't have the time right now as it is 3am almost). www.scrfix.com/computer-repair-forums/ 2. Set the security permissions on the programs and all files within the programs directory and all dll files associated with the program to full security permissions allowing access to everything. (This is a major security issue however it is still an option). This will take all restrictions off of all of the files associated with the program. We know the program runs with admin privileges... lets give the program administrative privileges. Onces again, post the question in my forum and I will be more than happy to write you step by step instructions for it. Hope that helps. Wayne "techenthu" <guest@unknown-email.com> wrote in message news:12daf251fbdbf9ab66b32221afe0c495@nntp-gateway.com...<span style="color:blue"> > > Hi, > > I have an application which i need to install in the the Program files > and launch at the startup.With UAC enabled, I install it as an > administrator,it works fine and launches at the start up when i log off > and log in again as an admin.But,when i log in as a normal user i have > to always "Run as an Administrator" and provide the admin password for > launching it , which i dont want to do. > > When I disable the UAC ,the application does not even start as a normal > user it just says "Applicatoin has stopped working" and gives > System.UnAuthorisedException. > > I need the application in the Program files itself and cannot move it > to some other user folder. > > I need to know if there is a way to run an application as a normal user > without providing the admin password. > > Any help would be highly appreciated. > > > -- > techenthu </span> Quote
Guest FromTheRafters Posted September 28, 2008 Posted September 28, 2008 "Wayne" <www.scrfix.com@www.scrfix.com> wrote in message news:DE56659A-9733-4D87-B685-BC8B249DC47D@microsoft.com... <span style="color:blue"> > I was presuming it was vista compatible because it would run with > UAC turned on.</span> With UAC on, virtualization is provided for legacy programs. With UAC off, some legacy programs won't work correctly. ....so a program working with UAC on is not an indication that the program is Vista compatible. Quote
Guest techenthu Posted September 29, 2008 Posted September 29, 2008 well ... i dont want it to run as a scheduled task. I just want the functionality similar to the setuid function in unix.I want the application to be launched by the standard user but with the id of the admin,without having to provide the admin password. i doubt if its possible in Vista style_emoticons/ -- techenthu Quote
Guest Paul Montgumdrop Posted September 29, 2008 Posted September 29, 2008 techenthu wrote:<span style="color:blue"> > well ... i dont want it to run as a scheduled task. > > I just want the functionality similar to the setuid function in unix.I > want the application to be launched by the standard user but with the id > of the admin,without having to provide the admin password. > > i doubt if its possible in Vista style_emoticons/ > > </span> It's not going to happen. Quote
Guest Brink Posted September 29, 2008 Posted September 29, 2008 Techenthu, That is what running is as a task instead of a normal startup program will accomplish. OPTION ONE (Method Two) in this tutorial will help show you how to. 'Startup Programs - Enable or Disable' (http://www.vistax64.com/tutorials/79612-st...le-disable.html) It is up to you, but I would at least give it a try. Shawn -- Brink There are no dumb questions, just the people that do not ask them. ' VISTA FORUMS ' (http://www.vistax64.com) Please post feedback to help others. Quote
Guest techenthu Posted September 30, 2008 Posted September 30, 2008 ok ... looks like thats the only way left .. will giv it a try. In that case, whats the possibility of creating the scheduled task through some script. -- techenthu Quote
Guest Brink Posted September 30, 2008 Posted September 30, 2008 I'm sure that it can be done, but I do not know enough about script writing to be able to help with that though. style_emoticons/ -- Brink There are no dumb questions, just the people that do not ask them. ' VISTA FORUMS ' (http://www.vistax64.com) Please post feedback to help others. Quote
Guest techenthu Posted September 30, 2008 Posted September 30, 2008 no probs ... Thanks Shawn. -- techenthu Quote
Guest techenthu Posted October 6, 2008 Posted October 6, 2008 Hi Shawn, i did try creating a scheduled task to run my application by any user. when i log on as an admin it works fine but when i log on as a standard user it gives the below error "The operation being requested was not performed because the user has not logged on to the network.The specified service does not exist(0x800704DD)" i have created the task with trigger as "at logon" (at logon by any user i presume) and i have enabled "Run only when an user is logged on " in the Generals tab. i dont know what i need to do now ... -- techenthu Quote
Guest Brink Posted October 6, 2008 Posted October 6, 2008 Hi Techenthu, Did you also check the -Run with highest privileges - in Task Scheduler? Hope this helps, Shawn -- Brink There are no dumb questions, just the people that do not ask them. ' VISTA FORUMS ' (http://www.vistax64.com) Please post feedback to help others. Quote
Guest techenthu Posted October 6, 2008 Posted October 6, 2008 yeah i have enabled that one. -- techenthu Quote
Guest Brink Posted October 6, 2008 Posted October 6, 2008 See if will work with At startup instead of At log on . -- Brink There are no dumb questions, just the people that do not ask them. ' VISTA FORUMS ' (http://www.vistax64.com) Please post feedback to help others. Quote
Guest techenthu Posted October 6, 2008 Posted October 6, 2008 i have changed it to -At Startup- and now i get the error "The operation being requested was not performed because the user has not logged on to the network.The specified service does not exist(0x800704DD)" even for the Admin style_emoticons/ -- techenthu Quote
Guest Brink Posted October 6, 2008 Posted October 6, 2008 I would change it back to At log on for now to at least be able to run it from your administrator accounts. I'm afraid that I do not know what else to try though. style_emoticons/ Sorry, Shawn -- Brink There are no dumb questions, just the people that do not ask them. ' VISTA FORUMS ' (http://www.vistax64.com) Please post feedback to help others. Quote
Guest Jimmy Brush Posted October 7, 2008 Posted October 7, 2008 Hello, Windows does not have functionality exactly like setuid. Instead, the application developer, as opposed to the system administrator, is responsible for implementing the Windows equivalent of the setuid model. There are good reasons, although somewhat technical, behind this style_emoticons/. It sounds like the application you are trying to run requires an administrator to run it, and the best solution is for the publisher of the application to update it to run correctly under a standard user. Even if the application would start correctly from the task scheduler with admin privileges, Windows would run it in a hidden desktop that the standard user could not interact with. - JB "techenthu"<span style="color:blue"> > > Hi Shawn, > > i did try creating a scheduled task to run my application by any user. > when i log on as an admin it works fine but when i log on as a > standard user it gives the below error > > "The operation being requested was not performed because the user has > not logged on to the network.The specified service does not > exist(0x800704DD)" > > i have created the task with trigger as "at logon" (at logon by any > user i presume) > and i have enabled "Run only when an user is logged on " in the > Generals tab. > > i dont know what i need to do now ... > > > -- > techenthu </span> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.