# Tor control port access

**URL:** <https://dietpi.com/forum/t/tor-control-port-access/16707>\
**Category:** Troubleshooting\
**Created:** [27 April 2023 03:11 UTC](https://dietpi.com/forum/t/tor-control-port-access/16707 "2023-04-27T03:11:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abort\_Quest](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/b5ac83/32.png) [@Abort\_Quest](https://dietpi.com/forum/u/Abort_Quest)\
**Post date:** [27 April 2023 03:11 UTC](https://dietpi.com/forum/t/tor-control-port-access/16707/1 "2023-04-27T03:11:40Z")

</div>

#### Required Information

- DietPi version | `cat /boot/dietpi/.version`  
G\_DIETPI\_VERSION\_CORE=8  
G\_DIETPI\_VERSION\_SUB=16  
G\_DIETPI\_VERSION\_RC=2  
G\_GITBRANCH=‘master’  
G\_GITOWNER=‘MichaIng’  
G\_LIVE\_PATCH\_STATUS[0]=‘not applicable’
- Distro version | `echo $G_DISTRO_NAME $G_RASPBIAN`  
bullseye 0
- Kernel version | `uname -a`  
Linux pubbypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
- Architecture | `dpkg --print-architecture`  
arm64
- SBC model | `echo $G_HW_MODEL_NAME` or (EG: RPi3)  
RPi 4 Model B (aarch64)

I’m trying to access my tor controlport with my own script to send newnym/exit-node/etc but I don’t actually recall setting a password for it, only had the one set for the tor hotspot in hostapd. I connected and checked:

```auto
PROTOCOLINFO
250-PROTOCOLINFO 1
250-AUTH METHODS=COOKIE,SAFECOOKIE COOKIEFILE="/run/tor/control.authcookie"
250-VERSION Tor="0.4.5.16"
250 OK

```

How do I authenticate to the control port? Usually I would always opt for no auth since it’s nestled safe inside one of my internal lan subnets but is there some default password? I don’t mind either setting a password or disabling auth, just not sure where to do either.

Hmm that was weird, I did edit my torrc to use:  
`CookieAuthentication 0`  
and I restarted my server but it still didn’t let me access with no auth, but a few minutes later control.authcookie disappeared from /run/tor so I suppose it just took time to kick in? I did manage to not need auth after that.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [27 April 2023 21:26 UTC](https://dietpi.com/forum/t/tor-control-port-access/16707/2 "2023-04-27T21:26:46Z")

</div>

Check `/etc/tor/torrc`.
