Can only launch FAF as Admin, get Error

Tournaments announces and results.

Moderators: FtXCommando, Stups

Can only launch FAF as Admin, get Error

Postby ItsYourFuneral » 18 Nov 2014, 16:35

I can only launch FAF as Admin and once in the game I can't build anything... (factories..etc.)

I get this:

The logfile 'C:\Program Files (x86)\Forged Alliance Forever\FAForever.exe.log' could not be opened: [Errno 13] Permission denied: 'C:\\Program Files (x86)\\Forged Alliance Forever\\FAForever.exe.log'

Have no idea what it is...

Googled it and it has something to do with FreeImage.dll... but I'm not a very tech savvy person so no idea how to correct it...

Any help would be appreciated... thanks
ItsYourFuneral
Crusader
 
Posts: 16
Joined: 17 Nov 2014, 21:26
Has liked: 1 time
Been liked: 0 time
FAF User Name: ItsYourFuneral

Re: Can only launch FAF as Admin, get Error

Postby Aarhun » 18 Nov 2014, 16:46

Problem with launching something with admin rights is that if the program write a file, it will write it with his own rights. (admin)
Then using a normal user, the same program will not be able to read or write it because it belongs to admin account.

As it seems to be a simple log file, have you tried to move this file on your desktop or anywhere else to save it. But more importantly in doing so deleting it from the Forged Alliance Forever directory.
Then launch the game as a simple user. The game should recreate the file.
User avatar
Aarhun
Avatar-of-War
 
Posts: 80
Joined: 05 Aug 2014, 09:12
Has liked: 21 times
Been liked: 3 times
FAF User Name: Aarhun

Re: Can only launch FAF as Admin, get Error

Postby ItsYourFuneral » 18 Nov 2014, 16:56

Didnt work... thanks anyway
ItsYourFuneral
Crusader
 
Posts: 16
Joined: 17 Nov 2014, 21:26
Has liked: 1 time
Been liked: 0 time
FAF User Name: ItsYourFuneral

Re: Can only launch FAF as Admin, get Error

Postby Aarhun » 18 Nov 2014, 17:08

Same error ?

You can also try to install FAF in another directory, like "C:\games\Forged Alliance Forever". I have found Windows to be touchy in late version with files created in Program Files.
User avatar
Aarhun
Avatar-of-War
 
Posts: 80
Joined: 05 Aug 2014, 09:12
Has liked: 21 times
Been liked: 3 times
FAF User Name: Aarhun

Re: Can only launch FAF as Admin, get Error

Postby ItsYourFuneral » 18 Nov 2014, 17:36

Didnt work either... thanks again
ItsYourFuneral
Crusader
 
Posts: 16
Joined: 17 Nov 2014, 21:26
Has liked: 1 time
Been liked: 0 time
FAF User Name: ItsYourFuneral

Re: Can only launch FAF as Admin, get Error

Postby Deering » 18 Nov 2014, 18:34

You should never launch faf with admin rights. You basically need to remove every trace of faf that could have been written with admin
Deering
Evaluator
 
Posts: 673
Joined: 18 Sep 2013, 11:47
Has liked: 16 times
Been liked: 41 times
FAF User Name: Deering

Re: Can only launch FAF as Admin, get Error

Postby rootbeer23 » 18 Nov 2014, 19:11

can you write to the file c:\programdata\faforever\logs\faforever.log with normal user privileges with notepad?
rootbeer23
Supreme Commander
 
Posts: 1001
Joined: 18 May 2012, 15:38
Has liked: 0 time
Been liked: 31 times
FAF User Name: root2342

Re: Can only launch FAF as Admin, get Error

Postby ItsYourFuneral » 18 Nov 2014, 21:50

Deering wrote:You should never launch faf with admin rights. You basically need to remove every trace of faf that could have been written with admin


I deleted everything.. FAF and SupCom off of my computer.. did a recovery... reinstalled both FAF and SupCom... still getting the same error...

Is there anything else I could do?
ItsYourFuneral
Crusader
 
Posts: 16
Joined: 17 Nov 2014, 21:26
Has liked: 1 time
Been liked: 0 time
FAF User Name: ItsYourFuneral

Re: Can only launch FAF as Admin, get Error

Postby ItsYourFuneral » 18 Nov 2014, 21:55

rootbeer23 wrote:can you write to the file c:\programdata\faforever\logs\faforever.log with normal user privileges with notepad?


It says the content is either invalid or missing....

so, I can't....
ItsYourFuneral
Crusader
 
Posts: 16
Joined: 17 Nov 2014, 21:26
Has liked: 1 time
Been liked: 0 time
FAF User Name: ItsYourFuneral

Re: Can only launch FAF as Admin, get Error

Postby rootbeer23 » 18 Nov 2014, 22:13

check file owner+permission of all files *and* directories in \programdata\faforever

run faf with strace: http://www.drmemory.org/strace_for_windows.html
and post the output.
rootbeer23
Supreme Commander
 
Posts: 1001
Joined: 18 May 2012, 15:38
Has liked: 0 time
Been liked: 31 times
FAF User Name: root2342

Next

Return to Tournaments

Who is online

Users browsing this forum: Google [Bot] and 1 guest