/[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.46 - (show annotations) (download) (as text)
Sat Oct 28 09:17:54 2006 UTC (7 years, 8 months ago) by neysx
Branch: MAIN
Changes since 1.45: +6 -1 lines
File MIME type: application/xml
Moved chapter abstracts into shared chapters
No content change, hence no bump

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.45 2006/08/30 22:52:28 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>7.0</version>
17 <date>2006-08-30</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 </sections>

  ViewVC Help
Powered by ViewVC 1.1.20