Topic ""System Error" when trying to save configuration: "Code: 5""

Author Message
s427

Guest


Hi,

I get the following error when I make a change to my saved sites and click on "save" :

Quote:
Error writting to file 'C:\Program Files (x86)\WinSCP\WinSCP.ini'
System Error. Code: 5.
Access is denied


(Note: small mistake in the error text: "writting" with 2 "t" instead of 1.)

I'm on Windows 8.1 and I think this is related to the UAC system: the problem doesn't appear when I run WinSCP as an administrator.

My question is: am I really required to run WinSCP with admin privileges every time I simply want to change some configuration options? That doesn't seem right, no other software does that. Am I missing something and is there another way to solve this?

Thanks in advance.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
s427 wrote:
My question is: am I really required to run WinSCP with admin privileges every time I simply want to change some configuration options? That doesn't seem right, no other software does that. Am I missing something and is there another way to solve this?

Of course not. WinSCP would never try to write the INI file to Program Files folder, unless you forced it. You had possibly WinSCP running with admin privileges in the past, when you switched to using INI file. Do you really want to use INI file at all? INI file is typically used for portability, i.e. when WinSCP is not installed. If you do not want to use INI file, switch to using Windows Registry (what is default when WinSCP is installed).
Or move your INI file to C:\Username\username\AppData\Roaming\WiSCP.ini. WinSCP will do it for you if you switch to Windows Registry (running as admin) and than back to INI file (running as non-admin).
For details, see:
http://winscp.net/eng/docs/config
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
s427 wrote:
(Note: small mistake in the error text: "writting" with 2 "t" instead of 1.)

I have fixed that. Thanks.
s427

Guest


OK, great. Thanks for your help!
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License