[Toaster] [PATCH 05/10] toaster-manual: add instructions to create user

Ed Bartosh ed.bartosh at linux.intel.com
Mon Jun 27 08:24:46 PDT 2016


Creating separate toaster account would make production setup more
isolated and maintainable.

Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
 documentation/toaster-manual/toaster-manual-setup-and-use.xml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/documentation/toaster-manual/toaster-manual-setup-and-use.xml b/documentation/toaster-manual/toaster-manual-setup-and-use.xml
index 2e085a2..4349eb1 100644
--- a/documentation/toaster-manual/toaster-manual-setup-and-use.xml
+++ b/documentation/toaster-manual/toaster-manual-setup-and-use.xml
@@ -241,12 +241,18 @@
               Perform the following steps to install Toaster:
               <orderedlist>
                   <listitem><para>
+                      Create toaster user, set its home directory to /var/www/toaster and switch to it:
+                      <literallayout class='monospaced'>
+   $ sudo /usr/sbin/useradd toaster -d /var/www/toaster -s /bin/false
+   $ sudo mkdir /var/www/toaster
+   $ sudo su - toaster -s /bin/bash
+                      </literallayout>
+                  </para></listitem>
+                  <listitem><para>
                       Checkout a copy of <filename>poky</filename>
                       into the web server directory.
                       You will be using <filename>/var/www/toaster</filename>:
                       <literallayout class='monospaced'>
-   $ mkdir -p /var/www/toaster
-   $ cd /var/www/toaster/
    $ git clone git://git.yoctoproject.org/poky
    $ git checkout &DISTRO_NAME_NO_CAP;
                       </literallayout>
-- 
2.6.6



More information about the toaster mailing list