subuser-security / subuser

Run programs on linux with selectively restricted permissions.
http://subuser.org
GNU Lesser General Public License v3.0
889 stars 65 forks source link

Make it so that two subusers can share home dirs #313

Closed timthelion closed 7 years ago

timthelion commented 7 years ago

Today, I needed to use git merge's --allow-unrelated-histories. Unfortunately, that flag isn't supported by the version of git provided by debian jessie. So I added a new git-bleeding-edge subuser based on a custom image which is based on debian sid. Easy. But then, I got an error:

> subuser run git-bleeding-edge merge --allow-unrelated-histories subuser-standard/master

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <(null)>) not allowed

Well that's easy enough to fix. But wouldn't it be even cooler if the git-bleeding-edge subuser shared its home dir with my normal git subuser, so that I wouldn't have to set up git twice? Or perhaps, a different option would be to make it easy to switch which image was used by a subuser?