{"action":"created","issue":{"url":"https://api.github.com/repos/utexas-bwi/bwi_lab/issues/1","repository_url":"https://api.github.com/repos/utexas-bwi/bwi_lab","labels_url":"https://api.github.com/repos/utexas-bwi/bwi_lab/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/utexas-bwi/bwi_lab/issues/1/comments","events_url":"https://api.github.com/repos/utexas-bwi/bwi_lab/issues/1/events","html_url":"https://github.com/utexas-bwi/bwi_lab/issues/1","id":132796512,"number":1,"title":"bwilab_scripts: support automatic uploading of log data","user":{"login":"jack-oquin","id":1471375,"avatar_url":"https://avatars.githubusercontent.com/u/1471375?v=3","gravatar_id":"","url":"https://api.github.com/users/jack-oquin","html_url":"https://github.com/jack-oquin","followers_url":"https://api.github.com/users/jack-oquin/followers","following_url":"https://api.github.com/users/jack-oquin/following{/other_user}","gists_url":"https://api.github.com/users/jack-oquin/gists{/gist_id}","starred_url":"https://api.github.com/users/jack-oquin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jack-oquin/subscriptions","organizations_url":"https://api.github.com/users/jack-oquin/orgs","repos_url":"https://api.github.com/users/jack-oquin/repos","events_url":"https://api.github.com/users/jack-oquin/events{/privacy}","received_events_url":"https://api.github.com/users/jack-oquin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jack-oquin","id":1471375,"avatar_url":"https://avatars.githubusercontent.com/u/1471375?v=3","gravatar_id":"","url":"https://api.github.com/users/jack-oquin","html_url":"https://github.com/jack-oquin","followers_url":"https://api.github.com/users/jack-oquin/followers","following_url":"https://api.github.com/users/jack-oquin/following{/other_user}","gists_url":"https://api.github.com/users/jack-oquin/gists{/gist_id}","starred_url":"https://api.github.com/users/jack-oquin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jack-oquin/subscriptions","organizations_url":"https://api.github.com/users/jack-oquin/orgs","repos_url":"https://api.github.com/users/jack-oquin/repos","events_url":"https://api.github.com/users/jack-oquin/events{/privacy}","received_events_url":"https://api.github.com/users/jack-oquin/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-02-10T19:37:35Z","updated_at":"2016-02-23T15:26:05Z","closed_at":null,"body":"for background, see: utexas-bwi/bwi_common#41\r\n\r\nThe basic approach envisioned is to create a general facility for running selected scripts on each robot under the bwilab account. The upload script will be one of them.\r\n\r\nWe will create unique public and private ssh keys for the local bwilab account on each robot, storing their public keys on nixons-head. I will write a setuid(\"bwilab\") C program that will only run a set of scripts we maintain. \r\n\r\nThat will make it easy to upload logs without requiring a login, and also to notify the server when a robot becomes active or inactive."},"comment":{"url":"https://api.github.com/repos/utexas-bwi/bwi_lab/issues/comments/187740938","html_url":"https://github.com/utexas-bwi/bwi_lab/issues/1#issuecomment-187740938","issue_url":"https://api.github.com/repos/utexas-bwi/bwi_lab/issues/1","id":187740938,"user":{"login":"jack-oquin","id":1471375,"avatar_url":"https://avatars.githubusercontent.com/u/1471375?v=3","gravatar_id":"","url":"https://api.github.com/users/jack-oquin","html_url":"https://github.com/jack-oquin","followers_url":"https://api.github.com/users/jack-oquin/followers","following_url":"https://api.github.com/users/jack-oquin/following{/other_user}","gists_url":"https://api.github.com/users/jack-oquin/gists{/gist_id}","starred_url":"https://api.github.com/users/jack-oquin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jack-oquin/subscriptions","organizations_url":"https://api.github.com/users/jack-oquin/orgs","repos_url":"https://api.github.com/users/jack-oquin/repos","events_url":"https://api.github.com/users/jack-oquin/events{/privacy}","received_events_url":"https://api.github.com/users/jack-oquin/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T15:26:05Z","updated_at":"2016-02-23T15:26:05Z","body":"@shiqizhang6: I am not sure exactly what you are suggesting.\r\n\r\nWhat I am still trying to make work is a setuid program that runs the ``upload`` script as ``bwilab``. It's frustratingly close to working, and the script does run with effective UID of ``bwilab``. But, on the exec of ``rsync`` and ``ssh`` things fall apart somehow.\r\n\r\nI think my next test will involve setting both the real and effective UID so ``bwilab``. I will let you know how that turns out when I have time to test it later today."}}