{"id":23922604,"url":"https://github.com/datenhahn/devtools-cifs-mount-control","last_synced_at":"2025-10-09T01:32:11.072Z","repository":{"id":215468871,"uuid":"136153703","full_name":"datenhahn/devtools-cifs-mount-control","owner":"datenhahn","description":"Devtools to test the cifs-mount-control snap interface","archived":false,"fork":false,"pushed_at":"2018-08-17T13:28:08.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-05T17:15:05.934Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datenhahn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-06-05T09:30:34.000Z","updated_at":"2018-08-17T13:28:09.000Z","dependencies_parsed_at":"2024-01-04T16:44:04.656Z","dependency_job_id":null,"html_url":"https://github.com/datenhahn/devtools-cifs-mount-control","commit_stats":null,"previous_names":["datenhahn/devtools-cifs-mount-control"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datenhahn%2Fdevtools-cifs-mount-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datenhahn%2Fdevtools-cifs-mount-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datenhahn%2Fdevtools-cifs-mount-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datenhahn%2Fdevtools-cifs-mount-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datenhahn","download_url":"https://codeload.github.com/datenhahn/devtools-cifs-mount-control/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240386777,"owners_count":19793237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-05T17:15:10.647Z","updated_at":"2025-10-09T01:32:06.026Z","avatar_url":"https://github.com/datenhahn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Helper Tools to test a cifs-mount-control snappy interface\n\nhttps://forum.snapcraft.io/t/interface-mount-umount-cifs-share-permission/5689\n\n## Prepare samba server\n\nIt exports a share named \"sambashare\" without any access restrictions.\n\n    cd samba-host\n    ./build_container.sh\n    ./run_container.sh\n\nAdjust `run_container.sh` as needed. You can also just pick up the smb.conf and\nput it on some vm.\n\n## Prepare smb-copier snap\n\nA simple daemon which spawns a simple REST API to mount a cifs directory on a local directory.\n\nAdjust the `snap/snapcraft.yaml` so the smbShare commandline parameter points\nto your samba container/vm/host.\n\ne.g.:\n\n```\napps:\n\n  smb-copier:\n    command: smb-copier -smbShare \"//192.168.123.1/sambashare\"\n```\n\nThen build the snap:\n\n    ./build_snap.sh\n\n### Ensure basic functionality in devmode\n\nCopy the snap over to an ubuntu core box and install it. First install it as devmode to\nensure the basic setup works.\n\n    sudo snap install --dangerous --devmode smb-copier_0.1.0_amd64.snap\n\nNow execute the REST calls to check basic functionality.\n\n* /mount : executes the smb mount\n* /umount: executes the unmount\n* / (or any other path): show all cifs mounts\n\ne.g.:\n\n    curl http://192.168.123.67:9090\n    curl http://192.168.123.67:9090/mount\n    curl http://192.168.123.67:9090\n    curl http://192.168.123.67:9090/umount\n    curl http://192.168.123.67:9090\n\n### Reinstall in strict mode and check interfaces\n\nNow reinstall the snap in strict mode and connect the necessary interfaces:\n\n    sudo snap install --dangerous smb-copier_0.1.0_amd64.snap\n\tsudo snap connect smb-copier:mount-observe\n    sudo snap connect smb-copier:cifs-mount-control\n    sudo snap connect smb-copier:network-bind\n\nNow try again to execute the curl commands on the minimal rest api.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatenhahn%2Fdevtools-cifs-mount-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatenhahn%2Fdevtools-cifs-mount-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatenhahn%2Fdevtools-cifs-mount-control/lists"}