This file is indexed.

/usr/share/tripleo-image-elements/stackuser/install.d/50-user is in python-tripleo-image-elements 0.7.1-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# Add the stack user we recommend folk use.

set -e
set -o xtrace

useradd -m stack -s /bin/bash

passwd stack <<EOF
stack
stack
EOF


cat > /etc/sudoers.d/stack <<eof
# the stack user sometimes requires passwordless
# sudo for scripted operations.
stack ALL=(ALL) NOPASSWD:ALL
eof

chmod 0440 /etc/sudoers.d/stack
visudo -c

if [ -e "/tmp/in_target.d/ssh-authorized-keys" ]; then
  mkdir -p /home/stack/.ssh
  cat /tmp/in_target.d/ssh-authorized-keys >> /home/stack/.ssh/authorized_keys
  chown -R stack:stack /home/stack/.ssh
fi