{"action":"created","issue":{"url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/issues/423","repository_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn","labels_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/issues/423/labels{/name}","comments_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/issues/423/comments","events_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/issues/423/events","html_url":"https://github.com/haugene/docker-transmission-openvpn/issues/423","id":295661769,"number":423,"title":"Default file attributes on Synology NAS","user":{"login":"evsasha","id":23517673,"avatar_url":"https://avatars2.githubusercontent.com/u/23517673?v=4","gravatar_id":"","url":"https://api.github.com/users/evsasha","html_url":"https://github.com/evsasha","followers_url":"https://api.github.com/users/evsasha/followers","following_url":"https://api.github.com/users/evsasha/following{/other_user}","gists_url":"https://api.github.com/users/evsasha/gists{/gist_id}","starred_url":"https://api.github.com/users/evsasha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evsasha/subscriptions","organizations_url":"https://api.github.com/users/evsasha/orgs","repos_url":"https://api.github.com/users/evsasha/repos","events_url":"https://api.github.com/users/evsasha/events{/privacy}","received_events_url":"https://api.github.com/users/evsasha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-08T20:53:50Z","updated_at":"2018-02-11T09:58:54Z","closed_at":null,"author_association":"NONE","body":"Hi, what are the default file attributes?\r\n\r\nWhen i run container on Synology Nas with root use i see that:\r\n```\r\n# ls -al /volume1/Transmission-vpn/config/\r\ntotal 8\r\nd---------+ 1 root         root   106 Feb  8 23:44 .\r\ndrwx------+ 1 transmission users   12 Feb  8 23:44 ..\r\nd---------+ 1 root         root     0 Feb  8 23:44 blocklists\r\nd---------+ 1 root         root     0 Feb  8 23:44 resume\r\n----------+ 1 root         root  2299 Feb  8 23:44 settings.json\r\nd---------+ 1 root         root     0 Feb  8 23:44 torrents\r\n----------+ 1 root         root  2192 Feb  8 23:45 transmission.log\r\n```\r\nAnd all work fine, but when i change user to not root, he can't read file with ----------+ permissions and fails.\r\n\r\n```\r\ndocker run \\\r\n-p 19091:9091 \\\r\n--name transmission-openvpn \\\r\n--cap-add=NET_ADMIN \\\r\n--device=/dev/net/tun \\\r\n--restart=always \\\r\n--dns 8.8.8.8 \\\r\n--dns 8.8.4.4 \\\r\n--log-driver json-file \\\r\n--log-opt max-size=10m \\\r\n-v /volume1/Transmission-vpn:/data \\\r\n-v /etc/localtime:/etc/localtime:ro \\\r\n-e \"OPENVPN_PROVIDER=xxx\" \\\r\n-e \"OPENVPN_CONFIG=xxx\" \\\r\n-e \"OPENVPN_USERNAME=xxx\" \\\r\n-e \"OPENVPN_PASSWORD=xxx\" \\\r\n-e \"OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60\" \\\r\n-e \"TRANSMISSION_DOWNLOAD_DIR=/data/downloads/complite\" \\\r\n-e \"TRANSMISSION_INCOMPLETE_DIR=/data/downloads/incomplete\" \\\r\n-e \"TRANSMISSION_HOME=/data/config\" \\\r\n-e \"TRANSMISSION_ENCRYPTION=2\" \\\r\n-e \"TRANSMISSION_RATIO_ENABLED=true\" \\\r\n-e \"TRANSMISSION_RATIO=3\" \\\r\nhaugene/transmission-openvpn:latest\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/issues/comments/364738842","html_url":"https://github.com/haugene/docker-transmission-openvpn/issues/423#issuecomment-364738842","issue_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/issues/423","id":364738842,"user":{"login":"evsasha","id":23517673,"avatar_url":"https://avatars2.githubusercontent.com/u/23517673?v=4","gravatar_id":"","url":"https://api.github.com/users/evsasha","html_url":"https://github.com/evsasha","followers_url":"https://api.github.com/users/evsasha/followers","following_url":"https://api.github.com/users/evsasha/following{/other_user}","gists_url":"https://api.github.com/users/evsasha/gists{/gist_id}","starred_url":"https://api.github.com/users/evsasha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evsasha/subscriptions","organizations_url":"https://api.github.com/users/evsasha/orgs","repos_url":"https://api.github.com/users/evsasha/repos","events_url":"https://api.github.com/users/evsasha/events{/privacy}","received_events_url":"https://api.github.com/users/evsasha/received_events","type":"User","site_admin":false},"created_at":"2018-02-11T09:58:54Z","updated_at":"2018-02-11T09:58:54Z","author_association":"NONE","body":"I found the cause.\r\nThe file \"settings.json\" is created by the user Root, and after that the owner's name changes to PUID (userSetup.sh).\r\nBut by default in SYNOLOGIES NAS the user Root creates files with the permissions \"---------\" and when you make only the chown command you do not change the permissions, but only the owner.\r\n\r\nSo now u can use only Root user.\r\nOr we need pull request for test and change file attributes after chown command."}}
{"actor":{"display_login":"evsasha"}}