services/device/devicex: use sudo+su rather than just sudo -u

When the device manager is being installed in multi-user mode
use sudo+su to switch to the device manager user rather than
sudo -u, because the latter is often set up to require a password
on common GCE and EC2 images, whereas the former does not.

This does not break any jenkins tests, and it appeared not to
break
  v23 go test -v v.io/x/ref/services/device --v23.tests --deviceuser=testdm --appuser=testapp

Change-Id: I50540751292b08344dfcc93958a1d24401446fa0
1 file changed
tree: 06afee8bc6c51ab515f7eef0af0d112c0015f9a2
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTORS
  11. envvar.go
  12. envvar_test.go
  13. LICENSE
  14. PATENTS
  15. README.md
  16. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.