applied Alex's so-it's-ids.patch

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1941 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Gerard Beekmans 2002-05-29 23:13:57 +00:00
parent c4eeb6f378
commit 159c2d2da3
7 changed files with 30 additions and 28 deletions

View File

@ -9,16 +9,16 @@ because we use pidof from sysvinit instead.</para></sect3>
<sect3><title>Descriptions</title> <sect3><title>Descriptions</title>
<sect4><title>fuser</title> <sect4><title>fuser</title>
<para>fuser displays the PIDs of processes using the specified files or file <para>fuser displays the PIDs of processes that use the specified
systems.</para></sect4> files or file systems.</para></sect4>
<sect4><title>killall</title> <sect4><title>killall</title>
<para>killall sends a signal to all processes running any of the specified <para>killall sends a signal to all processes running any of the specified
commands.</para></sect4> commands.</para></sect4>
<sect4><title>pidof</title> <sect4><title>pidof</title>
<para>pidof finds the process id's (pids) of the named programs and <para>pidof displays the process identifiers (PIDs) of the named
prints those id's on standard output.</para></sect4> programs.</para></sect4>
<sect4><title>pstree</title> <sect4><title>pstree</title>
<para>pstree shows running processes as a tree.</para></sect4> <para>pstree shows running processes as a tree.</para></sect4>

View File

@ -107,9 +107,9 @@ files.</para></sect4>
<para>sg executes command as a different group ID.</para></sect4> <para>sg executes command as a different group ID.</para></sect4>
<sect4><title>su</title> <sect4><title>su</title>
<para>su changes the effective user id and group id to that of a given user. <para>su changes the effective user and group IDs to that of a given user.
This replaces the su programs that's installed from the (This program replaces the su program installed from the
Sh-utils package.</para></sect4> Sh-utils package.)</para></sect4>
<sect4><title>useradd</title> <sect4><title>useradd</title>
<para>useradd creates a new user or update default new user <para>useradd creates a new user or update default new user

View File

@ -47,11 +47,11 @@ integer numbers.</para></sect4>
host.</para></sect4> host.</para></sect4>
<sect4><title>hostname</title> <sect4><title>hostname</title>
<para>hostname sets or prints the name of the current host system.</para></sect4> <para>hostname prints or sets the name of the current host system.</para></sect4>
<sect4><title>id</title> <sect4><title>id</title>
<para>id prints the real and effective UIDs and GIDs of a user or the current <para>id prints the effective user and group IDs of the current
user.</para></sect4> user or a given user.</para></sect4>
<sect4><title>logname</title> <sect4><title>logname</title>
<para>logname prints the current user's login name.</para></sect4> <para>logname prints the current user's login name.</para></sect4>
@ -91,7 +91,7 @@ increment.</para></sect4>
<para>stty changes and prints terminal line settings.</para></sect4> <para>stty changes and prints terminal line settings.</para></sect4>
<sect4><title>su</title> <sect4><title>su</title>
<para>su runs a shell with substitute user and group ID's.</para></sect4> <para>su runs a shell with substitute user and group IDs.</para></sect4>
<sect4><title>tee</title> <sect4><title>tee</title>
<para>tee reads from standard input and writes to standard output and <para>tee reads from standard input and writes to standard output and
@ -121,10 +121,12 @@ current host.</para></sect4>
<para>who shows who is logged on.</para></sect4> <para>who shows who is logged on.</para></sect4>
<sect4><title>whoami</title> <sect4><title>whoami</title>
<para>whoami prints the user's effective userid.</para></sect4> <para>whoami prints the user name associated with the current
effective user ID.</para></sect4>
<sect4><title>yes</title> <sect4><title>yes</title>
<para>yes outputs a string repeatedly until killed.</para></sect4> <para>yes outputs 'y' or a given string repeatedly,
until killed.</para></sect4>
</sect3> </sect3>

View File

@ -41,8 +41,8 @@ file /var/log/btmp, which contains all the bad login attempts.</para></sect4>
used to allow or disallow other users to write to his terminal.</para></sect4> used to allow or disallow other users to write to his terminal.</para></sect4>
<sect4><title>pidof</title> <sect4><title>pidof</title>
<para>pidof finds the process id's (pids) of the named programs and prints <para>pidof displays the process identifiers (PIDs) of the named
those id's on standard output.</para></sect4> programs.</para></sect4>
<sect4><title>poweroff</title> <sect4><title>poweroff</title>
<para>poweroff is equivalent to shutdown -h -p now. It halts the computer and <para>poweroff is equivalent to shutdown -h -p now. It halts the computer and

View File

@ -19,9 +19,9 @@ it hasn't been installed yet.</para>
<para><userinput>sed 's/root/0' login/Makefile.backup &gt; <para><userinput>sed 's/root/0' login/Makefile.backup &gt;
login/Makefile:</userinput> This sed command replaces all occurrences of login/Makefile:</userinput> This sed command replaces all occurrences of
<filename>root</filename> in <filename>login/Makefile.backup</filename> <filename>root</filename> in <filename>login/Makefile.backup</filename>
with 0. This is because we don't have glibc on the LFS system yet, so with 0. This is necessary because we don't have glibc on the LFS system yet, so
usernames can't be resolved to their user id's. Therefore, we replace user names can't be resolved to their user IDs. Therefore, we replace
the username root with user id 0.</para> the user name "root" with user ID 0.</para>
<para><userinput>--enable-add-ons:</userinput> This enables the add-on that <para><userinput>--enable-add-ons:</userinput> This enables the add-on that
we install with Glibc: linuxthreads</para> we install with Glibc: linuxthreads</para>

View File

@ -2,15 +2,15 @@
<title>Creating passwd and group files</title> <title>Creating passwd and group files</title>
<?dbhtml filename="pwdgroup.html" dir="chapter06"?> <?dbhtml filename="pwdgroup.html" dir="chapter06"?>
<para>In order for the user and group root to be recognized and to be able to <para>In order for the user and the group "root" to be recognized and to be
login, there needs to be an entry in the /etc/passwd and /etc/group file. able to login, there need to be entries in the /etc/passwd and /etc/group file.
Besides the group root, a couple of other groups are recommended and needed by Besides the group "root", a couple of other groups are recommended or needed
packages. The groups created below aren't part of any standard. by some packages. The groups created below aren't part of any standard.
The LSB only recommends a group bin with GID 1 to be present besides The LSB only recommends a group "bin" with GID 1 to be present besides
group root. Other group names and GID's can be chosen by the user. Well "root". Other group names and GIDs can be chosen by the user.
written packages don't depend on GID numbers but just use the group Well-written packages don't depend on GID numbers, but use the group's
name, so it doesn't matter which GID a group has. Since there name; so it doesn't matter which GID a group has. Since there
aren't any standards for groups the groups created here are the groups the aren't any standards for groups, the groups created here are the groups the
MAKEDEV script (the script that creates the device files in the /dev MAKEDEV script (the script that creates the device files in the /dev
directory) mentions.</para> directory) mentions.</para>

View File

@ -76,7 +76,7 @@ This is used after the configuration file of a service was modified, when
the service doesn't need to be restarted.</para></listitem> the service doesn't need to be restarted.</para></listitem>
<listitem><para><emphasis>status</emphasis>: Tells if the service <listitem><para><emphasis>status</emphasis>: Tells if the service
is running and with which PID's.</para></listitem> is running and with which PIDs.</para></listitem>
</itemizedlist> </itemizedlist>