Changeset ba0deaad
- Timestamp:
- 07/22/2005 06:47:45 PM (19 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 615b431
- Parents:
- e540c04
- Location:
- postlfs/config
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/config/profile.xml
re540c04 rba0deaad 31 31 32 32 <para>An interactive non-login shell is normally started at the command-line 33 (e.g., <prompt>[prompt]$</prompt><command>/bin/bash</command>) or by the 33 using a shell program (e.g., 34 <prompt>[prompt]$</prompt><command>/bin/bash</command>) or by the 34 35 <command>/bin/su</command> command. An interactive non-login shell is also 35 36 started with a terminal program such as <command>xterm</command> or … … 54 55 <para>For more information see <command>info bash</command> -- 55 56 <emphasis role="strong">Nodes: Bash Startup Files and Interactive 56 Shells.</emphasis></para> 57 Shells</emphasis>.</para> 58 59 <note> 60 <para>Most of the instructions below are used to create files located in 61 the <filename class='directory'>/etc</filename> directory structure which 62 requires you to execute the commands as the 63 <systemitem class='username'>root</systemitem> user. If you elect to create 64 the files in user's home directories instead, you should run the commands 65 as an unprivileged user.</para> 66 </note> 57 67 58 68 <sect2 id="etc-profile-profile"> … … 65 75 <para>Here is a base <filename>/etc/profile</filename>. This file starts by 66 76 setting up some helper functions and some basic parameters. It specifies some 67 < filename>bash</filename> history parameters and, for security purposes,77 <command>bash</command> history parameters and, for security purposes, 68 78 disables keeping a permanent history file for the <systemitem 69 79 class="username">root</systemitem> user. It also sets a 70 80 default user prompt. It then calls small, single purpose scripts in the 71 81 <filename class='directory'>/etc/profile.d</filename> directory to provide most 72 initialization.</para>82 of the initialization.</para> 73 83 74 84 <para>For more information on the escape sequences you can use for your prompt 75 ( e.g.,the <envar>PS1</envar> environment variable) see <command>info85 (i.e., the <envar>PS1</envar> environment variable) see <command>info 76 86 bash</command> -- <emphasis role="strong">Node: Printing a 77 Prompt .</emphasis></para>87 Prompt</emphasis>.</para> 78 88 79 89 <screen role="root"><userinput>cat > /etc/profile << "EOF" … … 152 162 153 163 <para>Now create the <filename class='directory'>/etc/profile.d</filename> 154 directory, where the individual initialization scripts are placed .</para>164 directory, where the individual initialization scripts are placed:</para> 155 165 156 166 <screen role="root"><userinput>install --directory --mode=0755 --owner=root --group=root /etc/profile.d</userinput></screen> … … 168 178 <filename>/etc/dircolors</filename> files to control the colors of file names in a 169 179 directory listing. They control colorized output of things like <command>ls 170 --color</command>. The expla ination of how to initialize these files is at the180 --color</command>. The explanation of how to initialize these files is at the 171 181 end of this section.</para> 172 182 … … 326 336 <envar>PROMPT_COMMAND</envar> is executed as a command prior to issuing 327 337 each primary prompt. The sequence \e is an ESC character. \a is a 328 BEL character. For a reference on xterm escape sequences, see <ulink 329 url="http://rtfm.etla.org/xterm/ctlseq.html"/></para> 338 BEL character. For a reference on <command>xterm</command> escape 339 sequences, see <ulink 340 url="http://rtfm.etla.org/xterm/ctlseq.html"/>.</para> 330 341 331 342 <screen role="root"><userinput>cat > /etc/profile.d/extra-prompt.sh << "EOF" … … 591 602 <para> If you want to use the <filename>dircolors</filename> capability, then 592 603 run the following command. The <filename class="directory">/etc/skel</filename> 593 setup steps s een above also can be used here to provide a604 setup steps shown above also can be used here to provide a 594 605 <filename>~/.dircolors</filename> file when a new user is set up. As before, 595 606 just change the output file name on the following command and assure the … … 606 617 <para>Finally, Ian Macdonald has written an excellent collection of tips and 607 618 tricks to enhance your shell environment. You can read it online at 608 <ulink url="http://www.caliban.org/bash/index.shtml"> 609 http://www.caliban.org/bash/index.shtml</ulink>.</para> 619 <ulink url="http://www.caliban.org/bash/index.shtml"/>.</para> 610 620 611 621 </sect2> -
postlfs/config/users.xml
re540c04 rba0deaad 28 28 </indexterm> 29 29 30 <para>Throughout BLFS, there are many packages thatinstall programs that30 <para>Throughout BLFS, many packages install programs that 31 31 run as daemons or in some way should have a user or group name 32 32 assigned. Generally these names are used to map a user ID (uid) or group 33 33 ID (gid) for system use. Generally the specific uid or gid numbers used 34 by these applications are not significant. The exception , of courseis35 that root has a uid and gid of 0 (zero) that is indeed special. The uid36 values are stored in <filename>/etc/passwd</filename> and the gid values37 are found in <filename>/etc/group</filename>.38 </para>34 by these applications are not significant. The exception of course, is 35 that <systemitem class='username'>root</systemitem> has a uid and gid of 0 36 (zero) that is indeed special. The uid values are stored in 37 <filename>/etc/passwd</filename> and the gid values 38 are found in <filename>/etc/group</filename>.</para> 39 39 40 40 <para>Customarily, Unix systems classify users and groups into two … … 48 48 assigned will always be above these cutoff values.</para> 49 49 50 <para>Additionally, the 51 <ulinkurl='http://refspecs.freestandards.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/usernames.html'>50 <para>Additionally, the <ulink 51 url='http://refspecs.freestandards.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/usernames.html'> 52 52 Linux Standards Base</ulink> recommends that system uid and gid values should be 53 53 below 100.</para>
Note:
See TracChangeset
for help on using the changeset viewer.