# Can't install TOR as a service on Windows 10

Reported by: Owned by: JohnnyFrog JohnnyFrog Immediate Community/Tor Support Tor: 0.3.5.7 Blocker service unformattable error torrc windows 10 win JohnnyFrog

### Description

When trying to execute

tor.exe --service install --options -f C:\absolute\path\to\torrc


an <unformattable error> is given:

Running on a Post-Win2K OS, so we'll assume that the LocalService account exists.
Done with CreateService.
Service installed successfully
Service failed to start : <unformattable error>


This bug happens when there is something written in the torrc file, but on other attempts it was happening when using

HiddenServiceAuthorizeClient basic PCNAME


and so deleting this line it has been starting again.

If I leave the torrc file empty the error doesn't show up and the service is installed and working.

I tried to differently formatting torrc file, so using LF and CRLF, but the result is the same.

## Child Tickets

### comment:1 Changed 12 months ago by JohnnyFrog

Owner: set to JohnnyFrog new → accepted

When installing service without specifing torrc file:

IMPORTANT NOTE:
The Tor service will run under the account "NT AUTHORITY\LocalService".  This means
that Tor will look for its configuration file under that
account's Application Data directory, which is probably not
the same as yours.


So the problem can be linked to NT AUTHORITY permissions on the torrc file or on the entire Tor folder. The actual permission groups for the folder and the file are: SYSTEM, Administrators, Users and Authenticated Users. All of these groups have complete access on the torrc file and the directory (I set it this way to try if it works), but however the problem still remains.

### comment:2 Changed 12 months ago by JohnnyFrog

Cc: JohnnyFrog added Normal → Blocker

### comment:3 Changed 12 months ago by rl1987

Component: - Select a component → Community/Tor Support

### comment:4 Changed 11 months ago by JohnnyFrog

I managed to solve this "bug".
Actually it's not really a bug, but it is just a question of permissions.

To solve this problem you have to assign to the Tor folder the Full Control to Users group in Windows 10.

In fact, if you extract tor files in a Tor folder located in C:\ you probably won't have this problem of permissions (it depends on how are the permissions set on your computer), but if you extract these files in a tor folder located in C:\Windows you'll probably get this problem and you will need to apply the permissions to Users group.

### comment:5 Changed 11 months ago by JohnnyFrog

Resolution: → fixed accepted → closed
Note: See TracTickets for help on using tickets.