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:
parent
13f02e8b76
commit
524487728e
@ -63,7 +63,7 @@ have sudo privileges:
|
|||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
|
$ echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
|
||||||
$ sudo su - stack
|
$ sudo -u stack -i
|
||||||
|
|
||||||
Download DevStack
|
Download DevStack
|
||||||
-----------------
|
-----------------
|
||||||
|
Loading…
Reference in New Issue
Block a user