{"action":"opened","issue":{"url":"https://api.github.com/repos/clearpathrobotics/robot_upstart/issues/18","labels_url":"https://api.github.com/repos/clearpathrobotics/robot_upstart/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/clearpathrobotics/robot_upstart/issues/18/comments","events_url":"https://api.github.com/repos/clearpathrobotics/robot_upstart/issues/18/events","html_url":"https://github.com/clearpathrobotics/robot_upstart/issues/18","id":57582946,"number":18,"title":"Device access with the `--user` option","user":{"login":"galou","id":2596352,"avatar_url":"https://avatars.githubusercontent.com/u/2596352?v=3","gravatar_id":"","url":"https://api.github.com/users/galou","html_url":"https://github.com/galou","followers_url":"https://api.github.com/users/galou/followers","following_url":"https://api.github.com/users/galou/following{/other_user}","gists_url":"https://api.github.com/users/galou/gists{/gist_id}","starred_url":"https://api.github.com/users/galou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galou/subscriptions","organizations_url":"https://api.github.com/users/galou/orgs","repos_url":"https://api.github.com/users/galou/repos","events_url":"https://api.github.com/users/galou/events{/privacy}","received_events_url":"https://api.github.com/users/galou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-13T10:31:24Z","updated_at":"2015-02-13T10:31:24Z","closed_at":null,"body":"I may be wrong but there is a limitation with the `--user` option because of a \"limitation\" of `setuidgid`.\r\n\r\nHere is my scenario: I wanted to run the rosnode as user `ros` which belongs to group `dialout` and need access to some devices (e.g. /dev/ttyUSB0). My devices have ownership root:dialout and Read/Write permission for user and group. This setup allows me to run manually all nodes with device access.\r\nHowever, when using `robot_upstart`, because of `setuidgid`, all groups other than `ros` are removed for the user launching the nodes (as stated in the man page). This means that `sudo service myrobot start` will not work because `ros`, not belonging to `dialout` when launched this way, does not have access to the devices.\r\n\r\nIs there a way (other than setting `--user root`) to work around this problem?\r\n\r\nThe documentation should be updated to warn users about this fact."}}