1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

Formatting fixes before publication.

This commit is contained in:
John Terpstra 2005-07-05 22:53:29 +00:00 committed by Gerald W. Carter
parent 3515962eb8
commit c1a463a3ca
14 changed files with 72 additions and 59 deletions

View File

@ -1576,10 +1576,10 @@ are examples recently taken from the mailing list.
<para> <para>
Set the ownership to whatever public user and group you want Set the ownership to whatever public user and group you want
<screen> <screen>
&prompt;find `directory_name' -type d -exec chown user.group {}\; &prompt;find `directory_name' -type d -exec chown user:group {}\;
&prompt;find `directory_name' -type d -exec chmod 1775 {}\; &prompt;find `directory_name' -type d -exec chmod 1775 {}\;
&prompt;find `directory_name' -type f -exec chmod 0775 {}\; &prompt;find `directory_name' -type f -exec chmod 0775 {}\;
&prompt;find `directory_name' -type f -exec chown user.group {}\; &prompt;find `directory_name' -type f -exec chown user:group {}\;
</screen> </screen>
</para> </para>
@ -1593,7 +1593,7 @@ are examples recently taken from the mailing list.
<para> <para>
Directory is <replaceable>/foodbar</replaceable>: Directory is <replaceable>/foodbar</replaceable>:
<screen> <screen>
&prompt;<userinput>chown jack.engr /foodbar</userinput> &prompt;<userinput>chown jack:engr /foodbar</userinput>
</screen> </screen>
</para> </para>

View File

@ -416,7 +416,8 @@ See the documentation in the <ulink url="http://support.microsoft.com/default.as
#!/bin/bash #!/bin/bash
IFS="-" IFS="-"
RESULT=$(smbstatus -S -u $1 2> /dev/null | awk 'NF > 6 {print $1}' | sort | uniq -d) RESULT=$(smbstatus -S -u $1 2> /dev/null | awk 'NF \
> 6 {print $1}' | sort | uniq -d)
if [ "X${RESULT}" == X ]; then if [ "X${RESULT}" == X ]; then
exit 0 exit 0

View File

@ -4430,7 +4430,7 @@ directly to the <command>pstoraster</command> stage).
</para> </para>
<para> <para>
From CUPS 1.1.16 onward, you can use the CUPS PostScript driver for Windows NT/200x/XP From CUPS 1.1.16 and later releases, you can use the CUPS PostScript driver for Windows NT/200x/XP
clients (which is tagged in the download area of <filename>http://www.cups.org/</filename> as the clients (which is tagged in the download area of <filename>http://www.cups.org/</filename> as the
<filename>cups-samba-1.1.16.tar.gz</filename> package). It does <emphasis>not</emphasis> work for Windows <filename>cups-samba-1.1.16.tar.gz</filename> package). It does <emphasis>not</emphasis> work for Windows
9x/Me clients, but it guarantees: 9x/Me clients, but it guarantees:
@ -4871,7 +4871,7 @@ cupsomatic</link> show how CUPS handles print jobs.
<figure id="cups2"> <figure id="cups2">
<title>Filtering Chain with cupsomatic</title> <title>Filtering Chain with cupsomatic</title>
<imagefile>cups2</imagefile> <imagefile scale="70">cups2</imagefile>
</figure> </figure>
</sect1> </sect1>
@ -4923,14 +4923,12 @@ cupsomatic</link> show how CUPS handles print jobs.
message while PPD file is present. What might the problem be? message while PPD file is present. What might the problem be?
</para> </para>
<para>Have you enabled printer sharing on CUPS? This means, <para>
do you have a <parameter>&lt;Location Have you enabled printer sharing on CUPS? This means, do you have a <literal>&lt;Location
/printers&gt;....&lt;/Location&gt;</parameter> section in CUPS /printers&gt;....&lt;/Location&gt;</literal> section in CUPS server's <filename>cupsd.conf</filename> that
server's <filename>cupsd.conf</filename> that does not deny access to does not deny access to the host you run <quote>cupsaddsmb</quote> from? It <emphasis>could</emphasis> be an
the host you run <quote>cupsaddsmb</quote> from? It <emphasis>could</emphasis> be issue if you use cupsaddsmb remotely, or if you use it with a <option>-h</option> parameter:
an issue if you use cupsaddsmb remotely, or if you use it with a <userinput>cupsaddsmb -H sambaserver -h cupsserver -v printername</userinput>.
<option>-h</option> parameter: <userinput>cupsaddsmb -H
sambaserver -h cupsserver -v printername</userinput>.
</para> </para>
<para>Is your <parameter>TempDir</parameter> directive in <para>Is your <parameter>TempDir</parameter> directive in
@ -5227,7 +5225,7 @@ Printing Overview diagram</link>.
<figure id="a_small"> <figure id="a_small">
<title>CUPS Printing Overview.</title> <title>CUPS Printing Overview.</title>
<imagefile>a_small</imagefile> <imagefile scale="60">a_small</imagefile>
</figure> </figure>
</sect1> </sect1>

View File

@ -250,7 +250,8 @@ This can be done using <command>vipw</command> or another <quote>adduser</quote>
that is normally used to create new UNIX accounts. The following is an example for that is normally used to create new UNIX accounts. The following is an example for
a Linux-based Samba server: a Linux-based Samba server:
<screen> <screen>
&rootprompt;<userinput>/usr/sbin/useradd -g machines -d /var/lib/nobody -c <replaceable>"machine nickname"</replaceable> \ &rootprompt;<userinput>/usr/sbin/useradd -g machines -d /var/lib/nobody \
-c <replaceable>"machine nickname"</replaceable> \
-s /bin/false <replaceable>machine_name</replaceable>$ </userinput> -s /bin/false <replaceable>machine_name</replaceable>$ </userinput>
&rootprompt;<userinput>passwd -l <replaceable>machine_name</replaceable>$</userinput> &rootprompt;<userinput>passwd -l <replaceable>machine_name</replaceable>$</userinput>
@ -382,16 +383,9 @@ this platform.
</para> </para>
<para> <para>
Further information about these tools may be obtained from the following locations: Further information about these tools may be obtained from Knowledge Base articles
</para> <ulink url="http://support.microsoft.com/default.aspx?scid=kb;en-us;173673">173673</ulink>, and
<ulink url="http://support.microsoft.com/default.aspx?scid=kb;en-us;172540">172540</ulink>
<para>
<simplelist>
<member><ulink noescape="1" url="http://support.microsoft.com/default.aspx?scid=kb;en-us;173673">Knowledge
Base article 173673</ulink></member>
<member><ulink noescape="1" url="http://support.microsoft.com/default.aspx?scid=kb;en-us;172540">Knowledge
Base article 172540</ulink></member>
</simplelist>
</para> </para>
<para> <para>
@ -546,7 +540,7 @@ with the version of Windows.
<para> <para>
<indexterm><primary></primary></indexterm> <indexterm><primary></primary></indexterm>
Joining a Samba client to a domain is documented in the next section<link linkend="domain-member-server"></link>. Joining a Samba client to a domain is documented in <link linkend="domain-member-server">the next section</link>.
</para> </para>
</sect3> </sect3>

View File

@ -849,7 +849,7 @@ manually before putting it into active service.
</sect2> </sect2>
<sect2> <sect2>
<title>Adding <emphasis>Domain Users</emphasis> to the <literal>Power Users</literal> Group</title> <title>Adding Domain Users to the Workstation Power Users Group</title>
<para><quote> <para><quote>
What must I do to add domain users to the Power Users group? What must I do to add domain users to the Power Users group?

View File

@ -172,10 +172,10 @@ on Server Types and Security Modes</link>.
<para> <para>
<indexterm><primary>SessionSetupAndX</primary></indexterm> <indexterm><primary>SessionSetupAndX</primary></indexterm>
<indexterm><primary>/etc/passwd</primary></indexterm> <indexterm><primary>/etc/passwd</primary></indexterm>
For example, if an incoming SessionSetupAndX request is owned by the user For example, when the user <literal>BERYLIUM\WambatW</literal> tries to open a
<constant>BERYLIUM\WambatW</constant>, a system call will be made to look up connection to a Samba server the incoming SessionSetupAndX request will make a
the user <constant>WambatW</constant> in the <filename>/etc/passwd</filename> system call to look up the user <literal>WambatW</literal> in the
file. <filename>/etc/passwd</filename> file.
</para> </para>
<para> <para>
@ -390,9 +390,9 @@ on Server Types and Security Modes</link>.
<para> <para>
<indexterm><primary>RID base</primary></indexterm> <indexterm><primary>RID base</primary></indexterm>
For example, if a user has a UID of 4321, and the algorithmic RID base has a value of 1000, the RID will For example, if a user has a UID of 4321, and the algorithmic RID base has a value of 1000, the RID will
be <constant>1000 + (2 x 4321) = 9642</constant>. Thus, if the domain SID is be <literal>1000 + (2 x 4321) = 9642</literal>. Thus, if the domain SID is
<constant>S-1-5-21-89238497-92787123-12341112</constant>, the resulting SID is <literal>S-1-5-21-89238497-92787123-12341112</literal>, the resulting SID is
<constant>S-1-5-21-89238497-92787123-12341112-9642</constant>. <literal>S-1-5-21-89238497-92787123-12341112-9642</literal>.
</para> </para>
<para> <para>

View File

@ -528,12 +528,11 @@ distributed trusted domains.
<para> <para>
<emphasis>Browsing from a machine in a trusted Windows 200x domain to a Windows 200x member of <emphasis>Browsing from a machine in a trusted Windows 200x domain to a Windows 200x member of
a trusting Samba domain, I get the following error:</emphasis> a trusting Samba domain, I get the following error:</emphasis>
</para>
<screen> <screen>
The system detected a possible attempt to compromise security. Please ensure that The system detected a possible attempt to compromise security. Please
you can contact the server that authenticated you. ensure that you can contact the server that authenticated you.
</screen> </screen>
</para>
<para> <para>
<emphasis>The event logs on the box I'm trying to connect to have entries regarding group <emphasis>The event logs on the box I'm trying to connect to have entries regarding group

View File

@ -491,7 +491,7 @@ and MS DNS.
<term>_ldap._tcp.<emphasis>Site</emphasis>.gc._msdcs.<emphasis>DomainTree</emphasis></term> <term>_ldap._tcp.<emphasis>Site</emphasis>.gc._msdcs.<emphasis>DomainTree</emphasis></term>
<listitem> <listitem>
<para> <para>
Used by MS Windows clients to locate site configuration-dependent global catalog server. Used by Microsoft Windows clients to locate the site configuration-dependent global catalog server.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>

View File

@ -36,7 +36,7 @@ network clients.
<figure id="domain-example"> <figure id="domain-example">
<title>An Example Domain.</title> <title>An Example Domain.</title>
<imagefile scale="50">domain</imagefile> <imagefile scale="40">domain</imagefile>
</figure> </figure>
<para> <para>

View File

@ -230,6 +230,7 @@ Samba-3 introduces a number of new password backend capabilities.
<para> <para>
<indexterm><primary>MySQL-based SAM</primary></indexterm> <indexterm><primary>MySQL-based SAM</primary></indexterm>
<indexterm><primary>database backend</primary></indexterm> <indexterm><primary>database backend</primary></indexterm>
<indexterm><primary>mysqlsam</primary></indexterm>
It is expected that the MySQL-based SAM will be very popular in some corners. It is expected that the MySQL-based SAM will be very popular in some corners.
This database backend will be of considerable interest to sites that want to This database backend will be of considerable interest to sites that want to
leverage existing MySQL technology. leverage existing MySQL technology.
@ -242,7 +243,7 @@ Samba-3 introduces a number of new password backend capabilities.
<para> <para>
<indexterm><primary>PostgreSQL database</primary></indexterm> <indexterm><primary>PostgreSQL database</primary></indexterm>
<indexterm><primary>mysqlsam</primary></indexterm> <indexterm><primary>mysqlsam</primary></indexterm>
Stores user information in a PostgreSQL database. This backend is largely undocumented at Makes use of a PostgreSQL database to store account information. This backend is largely undocumented at
the moment, though its configuration is very similar to that of the mysqlsam backend. the moment, though its configuration is very similar to that of the mysqlsam backend.
</para> </para>
</listitem> </listitem>

View File

@ -304,9 +304,8 @@ with settings shown in <link linkend="simpleprc">the example above</link>:
</para> </para>
<para> <para>
You can easily verify which settings were implicitly added by Samba's You can easily verify which settings were implicitly added by Samba's default behavior. <emphasis>Remember: it
default behavior. <emphasis>Remember: it may may be important in your future dealings with Samba.</emphasis>
be important in your future dealings with Samba.</emphasis>
</para> </para>
<note><para> <note><para>
@ -1253,13 +1252,17 @@ site). See <link linkend="prtdollar">[print\$] Example</link>.
</para> </para>
<example id="prtdollar"> <example id="prtdollar">
<title>[print\$] Example</title> <title>[print$] Example</title>
<smbconfblock> <smbconfblock>
<smbconfsection name="[global]"/> <smbconfsection name="[global]"/>
<smbconfcomment>members of the ntadmin group should be able to add drivers and set</smbconfcomment> <smbconfcomment>members of the ntadmin group should be able to add drivers and set</smbconfcomment>
<smbconfcomment>printer properties. root is implicitly always a 'printer admin'.</smbconfcomment> <smbconfcomment>printer properties. root is implicitly always a 'printer admin'.</smbconfcomment>
<smbconfoption name="printer admin">@ntadmin</smbconfoption> <smbconfoption name="printer admin">@ntadmin</smbconfoption>
<smbconfcomment>...</smbconfcomment>
<smbconfsection name="[printers]"/> <smbconfsection name="[printers]"/>
<smbconfcomment>...</smbconfcomment>
<smbconfsection name="[print$]"/> <smbconfsection name="[print$]"/>
<smbconfoption name="comment">Printer Driver Download Area</smbconfoption> <smbconfoption name="comment">Printer Driver Download Area</smbconfoption>
<smbconfoption name="path">/etc/samba/drivers</smbconfoption> <smbconfoption name="path">/etc/samba/drivers</smbconfoption>
@ -1278,10 +1281,11 @@ Of course, you also need to ensure that the directory named by the
</sect2> </sect2>
<sect2> <sect2>
<title>[print$] Section Parameters</title> <title>[print$] Stanza Parameters</title>
<para> <para>
<indexterm><primary>special section</primary></indexterm> <indexterm><primary>special section</primary></indexterm>
<indexterm><primary>special stanza</primary></indexterm>
<indexterm><primary>potential printer</primary></indexterm> <indexterm><primary>potential printer</primary></indexterm>
<indexterm><primary>driver download</primary></indexterm> <indexterm><primary>driver download</primary></indexterm>
<indexterm><primary>local print driver</primary></indexterm> <indexterm><primary>local print driver</primary></indexterm>
@ -1308,8 +1312,11 @@ The following parameters are frequently needed in this share section:
<varlistentry><term><smbconfoption name="browseable">no </smbconfoption></term> <varlistentry><term><smbconfoption name="browseable">no </smbconfoption></term>
<listitem><para> <listitem><para>
Makes the <smbconfsection name="[print$]"/> share invisible to clients from the Makes the <smbconfsection name="[print$]"/> share invisible to clients from the
<guimenu>Network Neighborhood</guimenu>. However, you can still mount it from any client <guimenu>Network Neighborhood</guimenu>. By excuting from a <command>cmd</command> shell:
using the <command>net use g:\\sambaserver\print$</command> command in a DOS box or the <screen>
&dosprompt; <command>net use g:\\sambaserver\print$</command>
</screen>
you can still mount it from any client. This can also be done from the
<guimenu>Connect network drive menu></guimenu> from Windows Explorer. <guimenu>Connect network drive menu></guimenu> from Windows Explorer.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
@ -3231,13 +3238,12 @@ form of a one-way hash in a file named <filename>/etc/shadow</filename>), with t
authenticate against Samba. Samba does not know the UNIX password. Root access to Samba resources authenticate against Samba. Samba does not know the UNIX password. Root access to Samba resources
requires that a Samba account for root must first be created. This is done with the <command>smbpasswd</command> requires that a Samba account for root must first be created. This is done with the <command>smbpasswd</command>
command as follows: command as follows:
</para> <screen>
<para><screen>
&rootprompt; smbpasswd -a root &rootprompt; smbpasswd -a root
New SMB password: secret New SMB password: secret
Retype new SMB password: secret Retype new SMB password: secret
</screen></para> </screen>
</para>
</sect2> </sect2>
@ -3246,7 +3252,18 @@ Retype new SMB password: secret
<para> <para>
Do not use the existing UNIX print system spool directory for the Samba spool directory. It may seem Do not use the existing UNIX print system spool directory for the Samba spool directory. It may seem
convenient and a savings of space, but it only leads to problems. The two must be separate. convenient and a savings of space, but it only leads to problems. The two must be separate. The UNIX/Linux
system print spool directory (e.g., <filename>/var/spool/cups</filename>) is typically owned by a
non-privileged user such as <literal>cups</literal> or <literal>lp</literal>. Additionally. the permissions on
the spool directory are typically restrictive to the owner and/or group. On the other hand, the Samba
spool directory must be world writable, and should have the 't' bit set to ensure that only a temporary
spool file owner can change or delete the file.
</para>
<para>
Depending on the type of print spooling system in use on the UNIX/Linux host, files that the spool
management application finds and that are not currently part of job queue that it is managing can be deleted.
This may explain the observation that jobs are spooled (by Samba) into this directory and just disappear.
</para> </para>
</sect2> </sect2>

View File

@ -142,7 +142,7 @@ specified <filename>\\%L\%U</filename> for <smbconfoption name="logon home"/>.
</sect3> </sect3>
<sect3> <sect3>
<title>Mixed Windows 9x/Me and Windows NT4/200x User Profiles</title> <title>Mixed Windows Windows 9x/Me and NT4/200x User Profiles</title>
<para> <para>
You can support profiles for Windows 9x and Windows NT clients by setting both the You can support profiles for Windows 9x and Windows NT clients by setting both the

View File

@ -525,8 +525,11 @@ shown in <link linkend="multimodule">the smb.conf with multiple VFS modules</lin
<indexterm><primary>mkdir</primary></indexterm> <indexterm><primary>mkdir</primary></indexterm>
<indexterm><primary>permissions</primary></indexterm> <indexterm><primary>permissions</primary></indexterm>
<indexterm><primary>chmod</primary></indexterm> <indexterm><primary>chmod</primary></indexterm>
Now we need to prepare the directory with something like <command>mkdir -p /data/shadow_share</command> or Now we need to prepare the directory with something like
whatever you want to name your shadow copy enabled Samba share. Make sure you set the permissions such that <screen>
&rootprompt; mkdir -p /data/shadow_share
</screen>
or whatever you want to name your shadow copy enabled Samba share. Make sure you set the permissions such that
you can use it. If in doubt, use <command>chmod 777 /data/shadow_share</command> and tighten the permissions you can use it. If in doubt, use <command>chmod 777 /data/shadow_share</command> and tighten the permissions
once you get things working. once you get things working.
</para></listitem> </para></listitem>
@ -589,7 +592,8 @@ xfs_freeze -f /data/shadow_share/
lvcreate -L10M -s -n $SNAPNAME /dev/shadowvol/sh_test lvcreate -L10M -s -n $SNAPNAME /dev/shadowvol/sh_test
xfs_freeze -u /data/shadow_share/ xfs_freeze -u /data/shadow_share/
mkdir /data/shadow_share/@GMT-$SNAPNAME mkdir /data/shadow_share/@GMT-$SNAPNAME
mount /dev/shadowvol/$SNAPNAME /data/shadow_share/@GMT-$SNAPNAME -onouuid,ro mount /dev/shadowvol/$SNAPNAME \
/data/shadow_share/@GMT-$SNAPNAME -onouuid,ro
</screen> </screen>
Note that the script does not handle other things like remounting snapshots on reboot. Note that the script does not handle other things like remounting snapshots on reboot.
</para></listitem> </para></listitem>

View File

@ -25,7 +25,6 @@
<address><email>jtrostel@snapserver.com</email></address> <address><email>jtrostel@snapserver.com</email></address>
</affiliation> </affiliation>
</author> </author>
&author.jelmer; &author.jelmer;
&author.jht; &author.jht;
<pubdate>June 15, 2005</pubdate> <pubdate>June 15, 2005</pubdate>