Browse code

Create /opt/stack and make it home directory

single-machine.rst and index.rst

Before this, one had to create /opt/stack
manually and chown it to the stack user.
Now it is created when the user is created.

This is the same way the multi-node guide
handles it. A stack group is created too.

Change-Id: I5363d81c8fb38796f565cc6ebf6ab2dee2673989
Closes-Bug: #1673787
Closes-Bug: #1671409

David Rabel authored on 2017/03/17 22:47:18
Showing 2 changed files
... ...
@@ -47,7 +47,7 @@ below)
47 47
 
48 48
 ::
49 49
 
50
-    adduser stack
50
+    useradd -s /bin/bash -d /opt/stack -m stack
51 51
 
52 52
 Since this user will be making many changes to your system, it will need
53 53
 to have sudo privileges:
... ...
@@ -56,7 +56,7 @@ You can quickly create a separate `stack` user to run DevStack with
56 56
 
57 57
 ::
58 58
 
59
-   $ sudo adduser stack
59
+   $ sudo useradd -s /bin/bash -d /opt/stack -m stack
60 60
 
61 61
 Since this user will be making many changes to your system, it should
62 62
 have sudo privileges: