Skip to content

Commit

Permalink
fixing question numbering in user practice, thanks cedric from easi
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Cobbaut committed Jul 14, 2015
1 parent 42f7ee7 commit 0247645
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions modules/user_management/040_user_management_practice.xml
Expand Up @@ -5,8 +5,8 @@
<para>3. Verify that both users have correct entries in <command>/etc/passwd</command>, <command>/etc/shadow</command> and <command>/etc/group</command>.</para>
<para>4. Verify that their home directory was created.</para>
<para>5. Create a user named <command>einstime</command> with <command>/bin/date</command> as his default logon shell.</para>
<para>7. What happens when you log on with the <command>einstime</command> user ? Can you think of a useful real world example for changing a user's login shell to an application ?</para>
<para>8. Create a file named <command>welcome.txt</command> and make sure every new user will see this file in their home directory.</para>
<para>9. Verify this setup by creating (and deleting) a test user account.</para>
<para>10. Change the default login shell for the <command>serena</command> user to <command>/bin/bash</command>. Verify before and after you make this change.</para>
<para>6. What happens when you log on with the <command>einstime</command> user ? Can you think of a useful real world example for changing a user's login shell to an application ?</para>
<para>7. Create a file named <command>welcome.txt</command> and make sure every new user will see this file in their home directory.</para>
<para>8. Verify this setup by creating (and deleting) a test user account.</para>
<para>9. Change the default login shell for the <command>serena</command> user to <command>/bin/bash</command>. Verify before and after you make this change.</para>
</section>
8 changes: 4 additions & 4 deletions modules/user_management/050_user_management_solution.xml
Expand Up @@ -23,22 +23,22 @@ root@debian7:~#</screen>
<screen>root@debian7:~# <command>useradd -s /bin/date einstime</command></screen>
<para>Or even better:</para>
<screen>root@debian7:~# <command>useradd -s $(which date) einstime</command></screen>
<para>7. What happens when you log on with the <command>einstime</command> user ? Can you think of a useful real world example for changing a user's login shell to an application ?</para>
<para>6. What happens when you log on with the <command>einstime</command> user ? Can you think of a useful real world example for changing a user's login shell to an application ?</para>
<screen>root@debian7:~# <command>su - einstime</command>
Wed Oct 15 11:05:56 UTC 2014 # You get the output of the date command
root@debian7:~#</screen>
<para>It can be useful when users need to access only one application on the server. Just logging in opens the application for them, and closing the application automatically logs them out.</para>
<?hard-pagebreak?>
<para>8. Create a file named <command>welcome.txt</command> and make sure every new user will see this file in their home directory.</para>
<para>7. Create a file named <command>welcome.txt</command> and make sure every new user will see this file in their home directory.</para>
<screen>root@debian7:~# <command>echo Hello > /etc/skel/welcome.txt</command></screen>
<para>9. Verify this setup by creating (and deleting) a test user account.</para>
<para>8. Verify this setup by creating (and deleting) a test user account.</para>
<screen>root@debian7:~# <command>useradd -m test</command>
root@debian7:~# <command>ls -l /home/test</command>
total 4
-rw-r--r-- 1 test test 6 Oct 15 11:16 welcome.txt
root@debian7:~# <command>userdel -r test</command>
root@debian7:~#</screen>
<para>10. Change the default login shell for the <command>serena</command> user to <command>/bin/bash</command>. Verify before and after you make this change.</para>
<para>9. Change the default login shell for the <command>serena</command> user to <command>/bin/bash</command>. Verify before and after you make this change.</para>
<screen>root@debian7:~# <command>grep serena /etc/passwd</command>
serena:x:1008:1010:Serena Williams:/home/serena:/bin/sh
root@debian7:~# <command>usermod -s /bin/bash serena</command>
Expand Down

0 comments on commit 0247645

Please sign in to comment.