question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keep group permissions?

See original GitHub issue

How difficult would it be to replace setuidgid with something else that would preserve group permissions? The removal of additional groups can cause headaches when dealing with some hardware.

For example, on Jetsons the GPU is assigned to the nvidia group. Or audio devices like USB microphones belong to the audio group. Rather than needing to create custom udev rules to work around these restrictions, and possibly open up security holes by allowing global r/w to devices that shouldn’t necessarily be that accessible, it would be nice if the nodes could be launched with the group permissions intact.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rgariepycommented, Dec 17, 2020

I’ll take ‘papercuts old enough that Ryan tried to solve them’ for $100, Alex… 😃

0reactions
rcodddowcommented, Sep 4, 2021

@mikepurvis I can confirm the above works on Ubuntu and (Nivida L4T) using melodic and noetic, it would be nice to have this fix included in the main branch. I can create a pull request if you would like.

setpriv --reuid $USER --regid $USER --init-groups roslaunch $LAUNCH_FILENAME &

Read more comments on GitHub >

github_iconTop Results From Across the Web

chmod while keeping current owner/group permissions
Now, what if I want to preserve the current permissions? I know there's something like chmod xx7 file. in case I'd only want...
Read more >
linux - How do I set permissions for a directory so that files and ...
See Directory Setuid and Setgid in the coreutils manual. New directories will then preserve group ownership. As for permissions, the best ...
Read more >
How to manage Linux permissions for users, groups, and others
How to manage permissions and ownership for users, groups, and all others to resources such as directories and files.
Read more >
Changing the Owner, Group, and Permissions - O'Reilly
In general, the last step when installing software is usually to change the owner, group, and permissions as the documentation tells you to...
Read more >
How do I force group and permissions for created files inside a ...
To set the default group permissions, you will have to use ACLs. Set a "default" ACL: setfacl -m "default:group::rwx" /var/www.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found