View Single Post
  #1   (View Single Post)  
Old 14th December 2017
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 654
Default chmod on /dev/ to persist through reboot

I thought this would be a 5 second google, and I haven't found it yet (trying terms like "openbsd" chmod dev reboot and similar.

I have /dev/drm0. Its default is root wheel, 600. I want it to be 660, as otherwise, mpv media player doesn't work properly. The user who runs it is a member of the wheel group.

An alternative would be change it root and audio, but again audio should have read write. (Hrrm, change ownership to audio? I'm open to suggestions.)

At any rate, on 6.2-current, I can make the change but it doesn't survive a reboot and I can't find how to have the chmod persist
Feel free to scoff, just remember I am currently an invalid and you will be making fun of a temporary cripple.

And I just found that if I do this as root, I get operation not permitted but user scottro, using doas can do it. Not sure if that's relevant.

Last edited by scottro; 14th December 2017 at 11:48 PM.
Reply With Quote