Harshad Sharma on Nostr: Indulged in some half-asleep late night coding, and forgot about it until later next ...
Indulged in some half-asleep late night coding, and forgot about it until later next day 😆
Trying to figure out various scenarios for executing commands on FreeBSD (as current user, as root, as different user, in jail, as a user in jail etc) and write a single function that will handle them.
Here's what I came up with: https://gist.github.com/hiway/556ae670ca6a20a4faa91d6daf6f31b7
Feedback and corrections welcome if you're into FreeBSD or Elixir.
#FreeBSD #Elixir #Programming
Trying to figure out various scenarios for executing commands on FreeBSD (as current user, as root, as different user, in jail, as a user in jail etc) and write a single function that will handle them.
Here's what I came up with: https://gist.github.com/hiway/556ae670ca6a20a4faa91d6daf6f31b7
Feedback and corrections welcome if you're into FreeBSD or Elixir.
#FreeBSD #Elixir #Programming