Shell outs still break when running as root
Closed this issue · 0 comments
hartmantis commented
Addressing #37 didn't quite fix everything.
$ mas account
j@p4nt5.com
$ sudo mas account
Not signed in
$ sudo su -
$ mas account
Not signed in
$ sudo -u jhartman mas account
Not signed in
Random Googling led to reattach-to-user-namespace
which seems to help:
$ sudo su -
$ sudo -u jhartman reattach-to-user-namespace mas account
j@p4nt5.com
Right now, Chef will run fine from the command line, but the way it gets set up as a scheduled task, it runs as root and always thinks it's signed out.
OS X is weird.