/[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.44 - (show annotations) (download) (as text)
Tue Mar 14 19:29:29 2006 UTC (8 years, 9 months ago) by neysx
Branch: MAIN
Changes since 1.43: +2 -2 lines
File MIME type: application/xml
#126195 bump license version in comment, **no content change**

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.43 2006/01/23 14:33:40 neysx Exp $ -->
8
9 <sections>
10
11 <version>2.2</version>
12 <date>2006-01-23</date>
13
14 <section>
15 <title>User Administration</title>
16 <subsection>
17 <title>Adding a User for Daily Use</title>
18 <body>
19
20 <p>
21 Working as root on a Unix/Linux system is <e>dangerous</e> and should be avoided
22 as much as possible. Therefore it is <e>strongly</e> recommended to add a user
23 for day-to-day use.
24 </p>
25
26 <p>
27 The groups the user is member of define what activities the user can perform.
28 The following table lists a number of important groups you might wish to use:
29 </p>
30
31 <table>
32 <tr>
33 <th>Group</th>
34 <th>Description</th>
35 </tr>
36 <tr>
37 <ti>audio</ti>
38 <ti>be able to access the audio devices</ti>
39 </tr>
40 <tr>
41 <ti>cdrom</ti>
42 <ti>be able to directly access optical devices</ti>
43 </tr>
44 <tr>
45 <ti>floppy</ti>
46 <ti>be able to directly access floppy devices</ti>
47 </tr>
48 <tr>
49 <ti>games</ti>
50 <ti>be able to play games</ti>
51 </tr>
52 <tr>
53 <ti>portage</ti>
54 <ti>be able to use <c>emerge --pretend</c> as a normal user</ti>
55 </tr>
56 <tr>
57 <ti>usb</ti>
58 <ti>be able to access USB devices</ti>
59 </tr>
60 <tr>
61 <ti>plugdev</ti>
62 <ti>
63 Be able to mount and use pluggable devices such as cameras and USB sticks
64 </ti>
65 </tr>
66 <tr>
67 <ti>video</ti>
68 <ti>
69 be able to access video capturing hardware and doing hardware
70 acceleration
71 </ti>
72 </tr>
73 <tr>
74 <ti>wheel</ti>
75 <ti>be able to use <c>su</c></ti>
76 </tr>
77 </table>
78
79 <p>
80 For instance, to create a user called <c>john</c> who is member of the
81 <c>wheel</c>, <c>users</c> and <c>audio</c> groups, log in as root first
82 (only root can create users) and run <c>useradd</c>:
83 </p>
84
85 <pre caption="Adding a user for day-to-day use">
86 Login: <i>root</i>
87 Password: <comment>(Your root password)</comment>
88
89 # <i>useradd -m -G users,wheel,audio -s /bin/bash john</i>
90 # <i>passwd john</i>
91 Password: <comment>(Enter the password for john)</comment>
92 Re-enter password: <comment>(Re-enter the password to verify)</comment>
93 </pre>
94
95 <p>
96 If a user ever needs to perform some task as root, they can use <c>su -</c>
97 to temporarily receive root privileges. Another way is to use the <c>sudo</c>
98 package which is, if correctly configured, very secure.
99 </p>
100
101 </body>
102 </subsection>
103 </section>
104 </sections>

  ViewVC Help
Powered by ViewVC 1.1.20