Skip to content

Commit ea82eff

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix doc for adding sudo privileges to stack user"
2 parents 51a3f2e + b70d98f commit ea82eff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

doc/source/guides/multinode-lab.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ password:
8989

9090
::
9191

92-
echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
92+
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
9393

9494
From here on use the ``stack`` user. **Logout** and **login** as the
9595
``stack`` user.

doc/source/guides/single-machine.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ to have sudo privileges:
6363
.. code-block:: console
6464
6565
$ apt-get install sudo -y || yum install -y sudo
66-
$ echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
66+
$ echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
6767
6868
.. note:: On some systems you may need to use ``sudo visudo``.
6969

0 commit comments

Comments
 (0)