yscialom / pinanas

Cloud services, safely hosted at home.
GNU General Public License v3.0
5 stars 1 forks source link

Bug: Wrong file ownership #44

Open yscialom opened 2 years ago

yscialom commented 2 years ago
github-action-runner:/opt/home/pinanas$ rm -rf -- *
[...]
github-action-runner:/opt/home/pinanas$ find -type f -exec ls -l {} \;
-rw-r--r--    1 root     root        879468 Apr  3 22:21 ./adguardhome/data/filters/1.txt
-rw-r--r--    1 root     root           553 Apr  3 22:47 ./nextcloud/config/crontabs/root
yscialom commented 2 years ago
$ find adguardhome authelia database dhcpd docker-compose.yml heimdall netdata nextcloud traefik  -exec stat -c "%n:%u:%g" {} \; | grep -vE ':1000:(1000|117)$'
adguardhome/config/AdGuardHome.yaml:0:0
adguardhome/data/stats.db:0:0
adguardhome/data/filters:0:0
adguardhome/data/filters/1.txt:0:0
adguardhome/data/sessions.db:0:0
adguardhome/data/querylog.json:0:0
database/data/custom-services.d:0:0
database/data/custom-cont-init.d:0:0
dhcpd/data/dhcpd.leases~:0:0
dhcpd/data/dhcpd.leases:0:0
dhcpd/data/dhcpd.conf:0:0
dhcpd/cgroup:0:0
heimdall/config/custom-services.d:0:0
heimdall/config/custom-cont-init.d:0:0
netdata:0:0
netdata/config:0:0
nextcloud/config/custom-services.d:0:0
nextcloud/config/custom-cont-init.d:0:0
nextcloud/config/log/logrotate.status:0:0
yscialom commented 2 years ago

dhcpd

Related:

yscialom commented 2 years ago

AdGuardHome

Related:

yscialom commented 2 years ago

All but dhcp & authelia fixed by #51.

yscialom commented 2 years ago

dhcpd should be fixed, to be tested.

yscialom commented 2 years ago

dhcpd fixed adguardhome & netdata still problematics

rm: cannot remove 'dist/adguardhome/data/filters/1.txt': Permission denied
rm: cannot remove 'dist/netdata/data/.environment': Permission denied
rm: cannot remove 'dist/netdata/data/orig': Permission denied
rm: cannot remove 'dist/netdata/data/.install-type': Permission denied
rm: cannot remove 'dist/netdata/data/netdata.conf': Permission denied
rm: cannot remove 'dist/netdata/data/charts.d': Permission denied
rm: cannot remove 'dist/netdata/data/health.d': Permission denied
rm: cannot remove 'dist/netdata/data/custom-plugins.d': Permission denied
rm: cannot remove 'dist/netdata/data/go.d': Permission denied
rm: cannot remove 'dist/netdata/data/statsd.d': Permission denied
rm: cannot remove 'dist/netdata/data/ssl': Permission denied
rm: cannot remove 'dist/netdata/data/ebpf.d': Permission denied
rm: cannot remove 'dist/netdata/data/python.d': Permission denied
yscialom commented 2 years ago

AS of commit 45418364 (develop), Fri Nov 4 21:53:20 2022 +0100:

$ find . -exec stat -c "%n:%u:%g" {} \; | grep -vE ':1000:(1000|117)$'
./adguardhome/data/filters/1.txt:0:0
./adguardhome/config/AdGuardHome.yaml:0:0
./database/config/custom-services.d:0:0
./database/config/databases:0:0
./database/config/log:0:0
./database/config/custom-cont-init.d:0:0
./netdata/data:0:0
./netdata/data/edit-config:0:0
./netdata/data/netdata.conf:0:0
./netdata/data/.install-type:0:0
./netdata/data/python.d:0:0
./netdata/data/ebpf.d:0:0
./netdata/data/.environment:0:0
./netdata/data/ssl:0:0
./netdata/data/health.d:0:0
./netdata/data/charts.d:0:0
./netdata/data/orig:0:0
./netdata/data/go.d:0:0
./netdata/data/statsd.d:0:0
./netdata/data/custom-plugins.d:0:0
./heimdall/config/custom-services.d:0:0
./heimdall/config/custom-cont-init.d:0:0