File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,6 +75,14 @@ Otherwise create the stack user:
7575
7676 useradd -s /bin/bash -d /opt/stack -m stack
7777
78+ Ensure home directory for the ``stack `` user has executable permission for all,
79+ as RHEL based distros create it with ``700 `` and Ubuntu 21.04+ with ``750 ``
80+ which can cause issues during deployment.
81+
82+ ::
83+
84+ chmod +x /opt/stack
85+
7886This user will be making many changes to your system during installation
7987and operation so it needs to have sudo privileges to root without a
8088password:
Original file line number Diff line number Diff line change @@ -49,6 +49,14 @@ below)
4949
5050 $ sudo useradd -s /bin/bash -d /opt/stack -m stack
5151
52+ Ensure home directory for the ``stack `` user has executable permission for all,
53+ as RHEL based distros create it with ``700 `` and Ubuntu 21.04+ with ``750 ``
54+ which can cause issues during deployment.
55+
56+ .. code-block :: console
57+
58+ $ sudo chmod +x /opt/stack
59+
5260 Since this user will be making many changes to your system, it will need
5361to have sudo privileges:
5462
Original file line number Diff line number Diff line change @@ -57,6 +57,14 @@ to run DevStack with
5757
5858 $ sudo useradd -s /bin/bash -d /opt/stack -m stack
5959
60+ Ensure home directory for the ``stack `` user has executable permission for all,
61+ as RHEL based distros create it with ``700 `` and Ubuntu 21.04+ with ``750 ``
62+ which can cause issues during deployment.
63+
64+ .. code-block :: console
65+
66+ $ sudo chmod +x /opt/stack
67+
6068 Since this user will be making many changes to your system, it should
6169have sudo privileges:
6270
Original file line number Diff line number Diff line change 4444if ! getent passwd $STACK_USER > /dev/null; then
4545 echo " Creating a user called $STACK_USER "
4646 useradd -g $STACK_USER -s /bin/bash -d $DEST -m $STACK_USER
47+ # RHEL based distros create home dir with 700 permissions,
48+ # And Ubuntu 21.04+ with 750, i.e missing executable
49+ # permission for either group or others
50+ # Devstack deploy will have issues with this, fix it by
51+ # adding executable permission
52+ if [[ $( stat -c ' %A' $DEST | grep -o x| wc -l) -lt 3 ]]; then
53+ echo " Executable permission missing for $DEST , adding it"
54+ chmod +x $DEST
55+ fi
4756fi
4857
4958echo " Giving stack user passwordless sudo privileges"
You can’t perform that action at this time.
0 commit comments