aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/changingowner.xml
blob: b909b520718054dce7c21cefd3f972600d4f4648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<sect1 id="ch06-changingowner">
<title>Changing ownership</title>
<?dbhtml filename="changingowner.html" dir="chapter06"?>

<para>The first thing we'll do, now that we're <emphasis>root</emphasis>,
is change the ownership of the files and directories installed in chapter 5
to root -- because when later we don't delete the
<filename class="directory">/static</filename> directory and start adding
new users, one of these users might end up owning the statically linked
programs, which is not a good idea.</para>

<para>Run the following command to make root the owner of all the statically
linked programs:</para>

<para><screen><userinput>chown -R 0:0 /static</userinput></screen></para>

<para>The command uses "0:0" instead of "root:root", because there is no way
to resolve the name "root", as glibc hasn't been installed yet.</para>

</sect1>