| 1 |
<?xml version='1.0' encoding='UTF-8'?> |
| 2 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
| 3 |
|
| 4 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
| 5 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 6 |
|
| 7 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-finalise.xml,v 1.47 2006/12/03 23:05:54 nightmorph Exp $ --> |
| 8 |
|
| 9 |
<sections> |
| 10 |
|
| 11 |
<abstract> |
| 12 |
You're almost done. We'll just create one (or more) users for your |
| 13 |
system. |
| 14 |
</abstract> |
| 15 |
|
| 16 |
<version>8.0</version> |
| 17 |
<date>2007-05-07</date> |
| 18 |
|
| 19 |
<section> |
| 20 |
<title>User Administration</title> |
| 21 |
<subsection> |
| 22 |
<title>Adding a User for Daily Use</title> |
| 23 |
<body> |
| 24 |
|
| 25 |
<p> |
| 26 |
Working as root on a Unix/Linux system is <e>dangerous</e> and should be avoided |
| 27 |
as much as possible. Therefore it is <e>strongly</e> recommended to add a user |
| 28 |
for day-to-day use. |
| 29 |
</p> |
| 30 |
|
| 31 |
<p> |
| 32 |
The groups the user is member of define what activities the user can perform. |
| 33 |
The following table lists a number of important groups you might wish to use: |
| 34 |
</p> |
| 35 |
|
| 36 |
<table> |
| 37 |
<tr> |
| 38 |
<th>Group</th> |
| 39 |
<th>Description</th> |
| 40 |
</tr> |
| 41 |
<tr> |
| 42 |
<ti>audio</ti> |
| 43 |
<ti>be able to access the audio devices</ti> |
| 44 |
</tr> |
| 45 |
<tr> |
| 46 |
<ti>cdrom</ti> |
| 47 |
<ti>be able to directly access optical devices</ti> |
| 48 |
</tr> |
| 49 |
<tr> |
| 50 |
<ti>floppy</ti> |
| 51 |
<ti>be able to directly access floppy devices</ti> |
| 52 |
</tr> |
| 53 |
<tr> |
| 54 |
<ti>games</ti> |
| 55 |
<ti>be able to play games</ti> |
| 56 |
</tr> |
| 57 |
<tr> |
| 58 |
<ti>portage</ti> |
| 59 |
<ti>be able to use <c>emerge --pretend</c> as a normal user</ti> |
| 60 |
</tr> |
| 61 |
<tr> |
| 62 |
<ti>usb</ti> |
| 63 |
<ti>be able to access USB devices</ti> |
| 64 |
</tr> |
| 65 |
<tr> |
| 66 |
<ti>plugdev</ti> |
| 67 |
<ti> |
| 68 |
Be able to mount and use pluggable devices such as cameras and USB sticks |
| 69 |
</ti> |
| 70 |
</tr> |
| 71 |
<tr> |
| 72 |
<ti>video</ti> |
| 73 |
<ti> |
| 74 |
be able to access video capturing hardware and doing hardware |
| 75 |
acceleration |
| 76 |
</ti> |
| 77 |
</tr> |
| 78 |
<tr> |
| 79 |
<ti>wheel</ti> |
| 80 |
<ti>be able to use <c>su</c></ti> |
| 81 |
</tr> |
| 82 |
</table> |
| 83 |
|
| 84 |
<p> |
| 85 |
For instance, to create a user called <c>john</c> who is member of the |
| 86 |
<c>wheel</c>, <c>users</c> and <c>audio</c> groups, log in as root first |
| 87 |
(only root can create users) and run <c>useradd</c>: |
| 88 |
</p> |
| 89 |
|
| 90 |
<pre caption="Adding a user for day-to-day use"> |
| 91 |
Login: <i>root</i> |
| 92 |
Password: <comment>(Your root password)</comment> |
| 93 |
|
| 94 |
# <i>useradd -m -G users,wheel,audio -s /bin/bash john</i> |
| 95 |
# <i>passwd john</i> |
| 96 |
Password: <comment>(Enter the password for john)</comment> |
| 97 |
Re-enter password: <comment>(Re-enter the password to verify)</comment> |
| 98 |
</pre> |
| 99 |
|
| 100 |
<p> |
| 101 |
If a user ever needs to perform some task as root, they can use <c>su -</c> |
| 102 |
to temporarily receive root privileges. Another way is to use the <c>sudo</c> |
| 103 |
package which is, if correctly configured, very secure. |
| 104 |
</p> |
| 105 |
|
| 106 |
</body> |
| 107 |
</subsection> |
| 108 |
</section> |
| 109 |
<section> |
| 110 |
<title>Disk Cleanup</title> |
| 111 |
<subsection> |
| 112 |
<title>Removing tarballs</title> |
| 113 |
<body> |
| 114 |
|
| 115 |
<p> |
| 116 |
Now that you've finished installing Gentoo and rebooted, if everything has gone |
| 117 |
well, you can remove the downloaded stage3 tarball and Portage snapshot from |
| 118 |
your hard disk. Remember that they were downloaded to your <path>/</path> |
| 119 |
directory. |
| 120 |
</p> |
| 121 |
|
| 122 |
<pre caption="Removing the stage3 tarball"> |
| 123 |
# <i>rm /stage3-*.tar.bz2*</i> |
| 124 |
</pre> |
| 125 |
|
| 126 |
<pre caption="Removing the Portage snapshot"> |
| 127 |
# <i>rm /portage-latest.tar.bz2*</i> |
| 128 |
</pre> |
| 129 |
|
| 130 |
</body> |
| 131 |
</subsection> |
| 132 |
</section> |
| 133 |
</sections> |