Fix opening shell as user 'stack'

The usage of sudo with su is not recommended. It results in incosnistent
environment variables. Instead use just sudo with appropriate arguments.
The argument '-u stack' specifies that the sudo will execute as user 'stack'.
The last argument '-i' will launch an interactive shell.

Closes-Bug: #1938148

Change-Id: I42387660480377cdf9a0b04f190e7e1f21fb354f
This commit is contained in:
Marek Tamaskovic 2021-07-28 16:54:50 +02:00
parent 13f02e8b76
commit 524487728e
No known key found for this signature in database
GPG Key ID: 9ADF02DEDB055B0A
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ have sudo privileges:
.. code-block:: console
$ echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
$ sudo su - stack
$ sudo -u stack -i
Download DevStack
-----------------