Debian - Folder/File Permissions

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
thompson
OpenVpn Newbie
Posts: 18
Joined: Mon Jan 27, 2014 5:39 am

Debian - Folder/File Permissions

Post by thompson » Mon Aug 22, 2022 6:09 am

So I believe I've utterly wrecked my file/folder permissions of OpenVPN on my server. I can't seem to find any examples through google-fu and I'm at a bit of a loss. I did apt purge, and cleared out the /etc/openvpn folder (after making a copy of the relevant files) but it didn't really give me any clues.

It all started because the server didn't seem to be referencing the ccd folder/applying static IP addresses.

Code: Select all

:/etc/openvpn$ ls -al
total 72
drwxr-xr-x   5 root root  4096 Aug 21 22:59 .
drwxr-xr-x 140 root root 12288 Aug 21 22:25 ..
-rw-------   1 root root     9 Aug 21 22:28 auth.txt
-rw-------   1 root root  1184 Aug 21 22:28 ca.crt
drwxr-xr-x   2 root root  4096 Aug 21 22:28 ccd
drw-------   2 root root  4096 May 14  2021 client
-rw-------   1 root root   424 Aug 21 22:28 dh2048.pem
-rw-------   1 root root    23 Aug 21 22:54 ipp.txt
-rw-r-----   1 root root     0 Aug 21 22:48 openvpn.log
-rw-r-----   1 root root   227 Aug 21 22:28 openvpn-status.log
drw-------   2 root root  4096 May 14  2021 server
-rw-------   1 root root   598 Aug 21 22:28 server.bak
-rw-r-----   1 root root   670 Aug 21 22:59 server.conf
-rw-------   1 root root  4622 Aug 21 22:28 server.crt
-rw-------   1 root root  1854 Aug 21 22:28 server.key
-rw-r-----   1 root root  1468 Aug 21 22:28 update-resolv-conf

Code: Select all

:/etc/openvpn/ccd$ ls -al
total 32
drwxr-xr-x 2 root root 4096 Aug 21 22:28 .
drwxr-xr-x 5 root root 4096 Aug 21 22:59 ..
-rw-r--r-- 1 root root  116 Aug 21 22:28 fieldunit
Can post server/clkient confs & ccd if needed.

Post Reply