Keep group permissions?
See original GitHub issueHow 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:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll take ‘papercuts old enough that Ryan tried to solve them’ for $100, Alex… 😃
@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 &