/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-finalise.xml
Gentoo

Contents of /xml/htdocs/doc/en/handbook/hb-install-finalise.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.32 - (show annotations) (download) (as text)
Tue Nov 2 10:44:11 2004 UTC (9 years, 11 months ago) by swift
Branch: MAIN
Changes since 1.31: +46 -4 lines
File MIME type: application/xml
#31877 - Add table with important groups users could/should be made member of

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/1.0 -->
6
7 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-finalise.xml,v 1.31 2004/10/02 21:53:56 cam Exp $ -->
8
9 <sections>
10 <section>
11 <title>User Administration</title>
12 <subsection>
13 <title>Adding a User for Daily Use</title>
14 <body>
15
16 <p>
17 Working as root on a Unix/Linux system is <e>dangerous</e> and should be avoided
18 as much as possible. Therefore it is <e>strongly</e> recommended to add a user
19 for day-to-day use.
20 </p>
21
22 <p>
23 The groups the user is member of define what activities the user can perform.
24 The following table lists a number of important groups you might wish to use:
25 </p>
26
27 <table>
28 <tr>
29 <th>Group</th>
30 <th>Description</th>
31 </tr>
32 <tr>
33 <ti>audio</ti>
34 <ti>be able to access the audio devices</ti>
35 </tr>
36 <tr>
37 <ti>cdrom</ti>
38 <ti>be able to access cdrom devices</ti>
39 </tr>
40 <tr>
41 <ti>floppy</ti>
42 <ti>be able to access floppy devices</ti>
43 </tr>
44 <tr>
45 <ti>games</ti>
46 <ti>be able to play games</ti>
47 </tr>
48 <tr>
49 <ti>usb</ti>
50 <ti>be able to access USB devices</ti>
51 </tr>
52 <tr>
53 <ti>video</ti>
54 <ti>
55 be able to access video capturing hardware and doing hardware
56 acceleration
57 </ti>
58 </tr>
59 <tr>
60 <ti>wheel</ti>
61 <ti>be able to use <c>su</c></ti>
62 </tr>
63 </table>
64
65 <p>
66 For instance, to create a user called <c>john</c> who is member of the
67 <c>wheel</c>, <c>users</c> and <c>audio</c> groups, log in as root first
68 (only root can create users) and run <c>useradd</c>:
69 </p>
70
71 <pre caption="Adding a user for day-to-day use">
72 Login: <i>root</i>
73 Password: <comment>(Your root password)</comment>
74
75 # <i>useradd john -m -G users,wheel,audio,tty -s /bin/bash</i>
76 # <i>passwd john</i>
77 Password: <comment>(Enter the password for john)</comment>
78 Re-enter password: <comment>(Re-enter the password to verify)</comment>
79 </pre>
80
81 <p>
82 If a user ever needs to perform some task as root, they can use <c>su -</c>
83 to temporarily receive root privileges. Another way is to use the <c>sudo</c>
84 package which is, if correctly configured, very secure.
85 </p>
86
87 </body>
88 </subsection>
89 </section>
90 <section>
91 <title>Optional: Install GRP Packages</title>
92 <body>
93
94 <impo>
95 This part is for GRP users only. Other users should skip this part and continue
96 with <uri link="?part=1&amp;chap=12">Where to go from here?</uri>.
97 </impo>
98
99 <p>
100 Now that your system is booted, log on as the user you created (for instance,
101 <c>john</c>) and use <c>su -</c> to gain root privileges:
102 </p>
103
104 <pre caption="Gaining root privileges">
105 $ <i>su -</i>
106 Password: <comment>(Enter your root password)</comment>
107 </pre>
108
109 <p>
110 Now we need to change the Portage configuration to look for the prebuilt
111 binaries from the second CD (Gentoo Packages CD). First mount this CD:
112 </p>
113
114 <pre caption="Mount the Packages CD">
115 <comment>(Put the Gentoo Packages CD in the CD tray)</comment>
116 # <i>mount /mnt/cdrom</i>
117 </pre>
118
119 <p>
120 Now configure Portage to use <path>/mnt/cdrom</path> for its prebuilt packages:
121 </p>
122
123 <pre caption="Configuring Portage to use /mnt/cdrom">
124 # <i>ls /mnt/cdrom</i>
125
126 <comment>(If there is a /mnt/cdrom/packages directory:)</comment>
127 # <i>export PKGDIR="/mnt/cdrom/packages"</i>
128
129 <comment>(Otherwise:)</comment>
130 # <i>export PKGDIR="/mnt/cdrom"</i>
131 </pre>
132
133 <p>
134 Now install the packages you want. The Packages CD contains several prebuilt
135 binaries, for instance KDE:
136 </p>
137
138 <pre caption="Installing KDE">
139 # <i>emerge --usepkg kde</i>
140 </pre>
141
142 <p>
143 Be sure to install the binaries now. When you do an <c>emerge --sync</c> to
144 update Portage (as you will learn later), the prebuilt binaries might not match
145 against the ebuilds in your updated Portage. You can try to circumvent this by
146 using <c>emerge --usepkgonly</c> instead of <c>emerge --usepkg</c>.
147 </p>
148
149 <p>
150 Congratulations, your system is now fully equiped! Continue with <uri
151 link="?part=1&amp;chap=12">Where to go from here?</uri> to learn more about
152 Gentoo.
153 </p>
154
155 </body>
156 </section>
157 </sections>

  ViewVC Help
Powered by ViewVC 1.1.20