Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • About Bonfire
Donald Hobern
Donald Hobern
@dhobern@scicomm.xyz  ·  activity timestamp 2 days ago

Developing a #Python application for a #RaspberryPi. Need to write to an #EEPROM to update some state information without human intervention.

Unless there's some way I've missed to make the files for all 1-wire devices (dynamically added at runtime) more open than root:root / rw-r--r--, I'm going to need root access just so I can write this data.

It's made me think about writing some C for the first time in 30 years, just a short #program that only accepts two parameters: the EEPROM id and the data I want to write. That way I can limit additional #root access to suid on a very restricted tool.

Is this just stupid? Obviously, I can add myself with NOPASSWORD to /etc/sudoers and go about my life. The device has nothing insecure on it, so I can't see any harm from doing the sloppy thing. But it still feels wrong.

  • Copy link
  • Flag this post
  • Block
Giacomo Tesio
Giacomo Tesio
@giacomo@snac.tesio.it replied  ·  activity timestamp 2 days ago
@dhobern@scicomm.xyz

...and writing tiny C tools is fun. 😉
  • Copy link
  • Flag this comment
  • Block
Giacomo Tesio
Giacomo Tesio
@giacomo@snac.tesio.it replied  ·  activity timestamp 2 days ago
@giacomo@snac.tesio.it

Anyway, IMHO it's actually a good idea.

@dhobern@scicomm.xyz
  • Copy link
  • Flag this comment
  • Block

BT Free Social

BT Free is a non-profit organization founded by @ozoned@btfree.social . It's goal is for digital privacy rights, advocacy and consulting. This goal will be attained by hosting open platforms to allow others to seamlessly join the Fediverse on moderated instances or by helping others join the Fediverse.

BT Free Social: About · Code of conduct · Privacy ·
Bonfire social · 1.0.1 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Code of Conduct