patch for smbmount man page

Bill Hawes (whawes@star.net)
Wed, 14 Jan 1998 11:20:03 -0500


This is a multi-part message in MIME format.
--------------3DB7D5D0248D98286F7C7ED3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi Volker,

I've attached a patch with a few changes for the smbmount and smbmnt man
pages. It now mentions that the bug fix workaround flags can be added to
the file mode argument if needed, and refers to the smbfs.txt file for
the current information.

Regards,
Bill
--------------3DB7D5D0248D98286F7C7ED3
Content-Type: text/plain; charset=us-ascii; name="samba_docs18-patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="samba_docs18-patch"

--- samba-1.9.18/docs/smbmount.8.old Wed Jan 7 14:13:56 1998
+++ samba-1.9.18/docs/smbmount.8 Wed Jan 14 11:45:19 1998
@@ -9,24 +9,36 @@

.SH DESCRIPTION
.B smbmount
-is a stripped down smbclient program. It only contains the mount
-command that itself calls the
-.B smbmnt(8)
+is a stripped-down version of the
+.BI smbclient (1)
+program used to mount smbfs shares. It implements only the mount command,
+which then calls the
+.BI smbmnt (8)
program to do the actual mount.
.B smbmount
-itself accepts nearly the same options as
-.B smbclient(1)
-does. See the smbclient manpage for details.
+itself accepts most of the options that
+.B smbclient
+does. See the
+.BI smbclient (1)
+manpage for details.

-To mount an smb file system I suggest to use the option
+To mount an smb file system, I suggest using the option
.B -c
-for smbclient. For example, use
+for smbmount to pass the mount command. For example, use

smbmount "\\\\server\\tmp" -c 'mount /mnt -u 123 -g 456'

to mount the tmp share of server on /mnt, giving it a local uid 123
and a local gid 456.

+The arguments supplied to the mount command are passed directly to the
+.B smbmnt
+utility for processing.
+Refer to the
+.BI smbmnt (8)
+manpage for details.
+
.SH SEE ALSO
-.B smbmnt(8), smbclient(1)
+.BI smbmnt (8),
+.BI smbclient (1)

--- samba-1.9.18/docs/smbmnt.8.old Wed Jan 7 14:13:56 1998
+++ samba-1.9.18/docs/smbmnt.8 Wed Jan 14 11:47:33 1998
@@ -20,24 +20,35 @@

.SH DESCRIPTION
.B smbmnt
-is a little helper application for the smbmount program. smbmnt is
-meant to be installed setuid root to enable normal users to mount
-their smb shares. Smbmnt checks whether the user calling it has write
-permissions on the mount point and then mounts the directory.
+is a helper application used by the
+.BI smbmount (8)
+program to do the actual mounting.
+.B smbmnt
+is meant to be installed setuid root so that normal users can mount
+their smb shares. It checks whether the user has write permissions
+on the mount point and then mounts the directory.

+The
+.B smbmnt
+program is normally invoked by a mount command to
+.BI smbmount ,
+and the command line arguments are passed directly to
+.B smbmnt.
+
+.SH OPTIONS
.B -u
.I uid,
.B -g
.I gid
.RS 3
A Lan Manager server does not tell us anything about the owner of a
-file. Unix requires that each file has an owner and a group it belongs
+file, but Unix requires that each file have an owner and a group it belongs
to. With
.B -u
and
.B -g
you can tell smbmount which id's it should assign to the files in the
-mounted direcory.
+mounted directory.

The defaults for these values are the current uid and gid.
.RE
@@ -52,19 +63,33 @@
and
.B -g,
these options are also used to bridge differences in concepts between
-Lan Manager and unix. Lan Manager does not know anything about file
-permissions. So smbmount has to be told which permissions it should
-assign to the mounted files and direcories. The values have to be
-given as octal numbers. The default values are taken from the current
-umask, where the file mode is the current umask, and the dir mode adds
-execute permissions where the file mode gives read permissions.
+Lan Manager and Unix. Lan Manager does not know anything about file
+permissions, so
+.B smbmnt
+must be told which permissions it should assign to the mounted files
+and directories.
+
+The values must be given as octal numbers. The default values are taken
+from the current umask, where the file mode is the current umask,
+and the dir mode adds execute permissions where the file mode gives
+read permissions.

Note that these permissions can differ from the rights the server
-gives to us. If you do not have write permissions on the server, you
-can very well choose a file mode that tells that you have. This
-certainly cannot override the restrictions imposed by the server.
-.RE
+gives to us. If you do not have write permissions on the server,
+you should choose a file mode that matches your actual permissions.
+This certainly cannot override the restrictions imposed by the server.

+In addition to specifying the file mode, the
+.B -f
+argument can be used to specify certain bug-fix workarounds.
+This allows bug fixes to be enabled on a per mount-point basis,
+rather than being compiled into the kernel.
+The required bug fixes are specified by prepending an (octal) value
+to the file mode.
+For information on the available bug workarounds, refer to the
+.B smbfs.txt
+file in the Linux kernel Documentation directory.
+.RE

.SH SEE ALSO
.B smbmount(8)

--------------3DB7D5D0248D98286F7C7ED3--