Tuesday June 24, 2008 Are you sure you want to...? - Windows Vista and 2008
If you have been playing with either Windows Vista or 2008, you are probably familiar with the prompts asking your permission to do various tasks. Now there are a couple of different ways to address the issue and, as I found out recently, some are better than others.
The easiest way to put an end to the prompts and have programs, such as Glassfish, installed and ran as a user different than Administrator on Windows Vista or 2008, is to turn off UAC - User Account Control. It can be accomplished as follows:
You may be tempted to do the following instead:
With the above change alone, the system will not prompt for consent nor credentials any more, but things will not work as expected either. If you install Glassfish V2 as a user that's part of the Administrators group, you will not be able to start the server due to "Access denied" errors:
$ pwd
C:/Sun/AppServer/domains/domain1
$ cd ../..
$ ./bin/asadmin start-domain
Starting Domain domain1, please wait.
Log redirected to C:\\Sun\\AppServer\\domains\\domain1\\logs\\server.log.
Jun 9, 2008 3:05:18 PM com.sun.enterprise.update.util.LoggerUtil log
SEVERE: C:\\Sun\\AppServer\\updatecenter\\config\\config.xml (Access is denied)
java.io.FileNotFoundException: C:\\Sun\\AppServer\\updatecenter\\config\\config.xml (Access is denied)
That is because Glassfish files will be owned by "Administrators" and the current user will have no write permissions to them. You can still remedy the situation by turning UAC off, as described above. If disabling UAC is not desired on your system, read more about UAC and its various settings on wikipedia at http://en.wikipedia.org/wiki/User_Account_Control or directly on Microsoft's web site.
Hope this saves someone some time...
Cheers
Lidia
Hi Lidia,
Thanks, It will defintely save my time.
Thanks,
Homer Yau
Posted by Homer Yau on June 26, 2008 at 04:50 PM PDT #