Martijn van Duren wrote: > >> Would > >> doas -c /rootdir somecmd > >> be of any use ? > > > > Not particularly opposed, but the extend of this option should be > > examined. E.g. do we want to extend it to the config to be something > > similar to -u and limit it's use for certain commands? > > > Working this out I'm not particularly a fan of the extra code this would > take, but the diff below seems to do the trick.
This seems like feature creep. We already have a command to chroot and switch user.