{"action":"created","issue":{"url":"https://api.github.com/repos/yadayada/acd_cli/issues/243","labels_url":"https://api.github.com/repos/yadayada/acd_cli/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/yadayada/acd_cli/issues/243/comments","events_url":"https://api.github.com/repos/yadayada/acd_cli/issues/243/events","html_url":"https://github.com/yadayada/acd_cli/issues/243","id":125474604,"number":243,"title":"acdcli as root","user":{"login":"calisro","id":5018276,"avatar_url":"https://avatars.githubusercontent.com/u/5018276?v=3","gravatar_id":"","url":"https://api.github.com/users/calisro","html_url":"https://github.com/calisro","followers_url":"https://api.github.com/users/calisro/followers","following_url":"https://api.github.com/users/calisro/following{/other_user}","gists_url":"https://api.github.com/users/calisro/gists{/gist_id}","starred_url":"https://api.github.com/users/calisro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calisro/subscriptions","organizations_url":"https://api.github.com/users/calisro/orgs","repos_url":"https://api.github.com/users/calisro/repos","events_url":"https://api.github.com/users/calisro/events{/privacy}","received_events_url":"https://api.github.com/users/calisro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yadayada/acd_cli/labels/FUSE","name":"FUSE","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-07T20:06:36Z","updated_at":"2016-01-18T23:51:33Z","closed_at":null,"body":"I am running for various reasons a acdcli mount owned by root.  The fuse module is presenting the data owned by root:root with a permission of 777 (because I specify  \"--allow-other\").  Fuse itself has options to allow us to specify a permission/ownership for a fuse FS but that is lacking in acdcli as far as I can tell.  Is there a way to specify similarly to regular fuse the options \"umask=$umase,gid=$gid,uid=$uid\" so that I can mount that FS as root yet the presentation of that mount pount would be owned by specific user along with specific permissions? \r\n\r\nI am assuming this would just be a passthrough set of commands to the fuse layer.\r\n\r\nIf this doesn't yet exist, can this be considered an improvement request?"},"comment":{"url":"https://api.github.com/repos/yadayada/acd_cli/issues/comments/172685743","html_url":"https://github.com/yadayada/acd_cli/issues/243#issuecomment-172685743","issue_url":"https://api.github.com/repos/yadayada/acd_cli/issues/243","id":172685743,"user":{"login":"calisro","id":5018276,"avatar_url":"https://avatars.githubusercontent.com/u/5018276?v=3","gravatar_id":"","url":"https://api.github.com/users/calisro","html_url":"https://github.com/calisro","followers_url":"https://api.github.com/users/calisro/followers","following_url":"https://api.github.com/users/calisro/following{/other_user}","gists_url":"https://api.github.com/users/calisro/gists{/gist_id}","starred_url":"https://api.github.com/users/calisro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calisro/subscriptions","organizations_url":"https://api.github.com/users/calisro/orgs","repos_url":"https://api.github.com/users/calisro/repos","events_url":"https://api.github.com/users/calisro/events{/privacy}","received_events_url":"https://api.github.com/users/calisro/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T23:51:33Z","updated_at":"2016-01-18T23:51:33Z","body":"I ran a test myself.  I modified the acd_fuse.py and hardcoded the gid,uid and added a umask and it works perfectly.  I can execute the mount as root and since I am root, it will modify the mount to the user specified.  To be honest, I am not good enough at coding python to initiate a pull request and code this all myself but what I am asking for as an enhancement is the ability to SPECIFY the uid,gid,umask as mount parameters to the acdcli which would pass that down to the acd_fuse.\r\n\r\nChanged made to acd_fuse.py\r\n```\r\n    FUSE(ACDFuse(**args), path,\r\n         auto_cache=True, sync_read=True,\r\n         #uid=os.getuid(), gid=os.getgid(),\r\n         uid='118', gid='1002',umask='002',\r\n         subtype=ACDFuse.__name__,\r\n         **kwargs\r\n         )\r\n\r\n\r\n```\r\n\r\nresults are correct.  The mount is now running with ROOT but are presented as the user specified with the correct mask.\r\n```\r\n┌[ ✓ robert [~/acd_cli] $\r\n└─> sudo ACD_CLI_CACHE_PATH=\"/home/robert/.cache/acd_cli\" ./acd_cli.py mount --allow-other -i 0 /home/robert/ft/cloud\r\n┌[ ✓ robert [~/acd_cli] $\r\n└─> cd /home/robert/ft/cloud\r\n┌[ ✓ robert [~/ft/cloud] $\r\n└─> ls -l\r\ntotal 0\r\ndrwxrwxr-x 1 deluge mediashare 0 Jan 17 14:44 cloude\r\n\r\n```"}}