b120be1772
This commit will merge into trove, the trove-integration tree as of commit 9f92ca853f8aa2f72921e54682c918941a8f0919. This is in preparation for making trove-integration go away. In addition, it supresses any consideration of the integration directory in the trove tox tests as it is understandably a small pile of pooh and in need of much cleanup. Change-Id: Ib7f2655c4c5ed86b5454708c04371ee55e37ec2d Partially-Implements-Blueprint: eliminate-trove-integration-and-redstack
16 lines
510 B
Bash
Executable File
16 lines
510 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set -o xtrace
|
|
|
|
# CONTEXT: HOST after IMAGE BUILD as SCRIPT USER
|
|
# PURPOSE: add the guest user account to the /etc/sudoers files with NOPASSWD
|
|
|
|
# Adds user to the sudoers file so they can do everything w/o a pass
|
|
# Some binaries might be under /sbin or /usr/sbin, so make sure sudo will
|
|
# see them by forcing PATH
|
|
TEMPFILE=`mktemp`
|
|
echo "${GUEST_USERNAME} ALL=(ALL) NOPASSWD:ALL" > $TEMPFILE
|
|
chmod 0440 $TEMPFILE
|
|
sudo chown root:root $TEMPFILE
|
|
sudo mv $TEMPFILE /etc/sudoers.d/60_trove_guest
|