fix useradd
This commit is contained in:
parent
33d2a4e2d9
commit
ff7771e5fb
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ if [ -e ~/.ssh/id_rsa.pub ]; then
|
||||||
PUB_KEY=`cat ~/.ssh/id_rsa.pub`
|
PUB_KEY=`cat ~/.ssh/id_rsa.pub`
|
||||||
cat >> $vm_dir/uec/user-data<<EOF
|
cat >> $vm_dir/uec/user-data<<EOF
|
||||||
mkdir -p /opt/stack
|
mkdir -p /opt/stack
|
||||||
useradd stack -s /bin/bash -d /opt/stack -G libvirtd || true
|
useradd -U -G sudo -s /bin/bash -d /opt/stack -m stack
|
||||||
echo stack:pass | chpasswd
|
echo stack:pass | chpasswd
|
||||||
mkdir -p /opt/stack/.ssh
|
mkdir -p /opt/stack/.ssh
|
||||||
echo "$PUB_KEY" > /opt/stack/.ssh/authorized_keys
|
echo "$PUB_KEY" > /opt/stack/.ssh/authorized_keys
|
||||||
|
|
Loading…
Reference in a new issue