Dell Wyse Enhanced Ubuntu Linux T50 Manual de usuario Pagina 122

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 220
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 121
Chapter 10. File Access
# chmod u+s /usr/bin/smbmnt /usr/bin/smbumount
# chmod u+s /sbin/mount.cifs /sbin/umount.cifs
10.1.3. Mounting and Unmounting Shares
10.1.3.1. Using tl-mount-cifs
tl-mount-cifs is a small wrapper for smbmount and mount.cifs , which adds:
1. Automatically selects which file system implementation to use. cifsfs is used if the command
mount.cifs is available. Otherwise, smbfs is tried.
2. Automatically submits password, using the ThinLinc Single Sign-On mechanism.
3. Automatically creates mount point directory, if it does not exist.
4. Can optionally fetch the service and drive letter corresponding to the users home directory specified
in Active Directory.
5. Will automatically use the options specified in Hiveconf (as explained below).
The syntax for tl-mount-cifs resembles smbmount/mount.cifs :
tl-mount-cifs [-r] [--verbose] [-o options] service mount-point
tl-mount-cifs [-r] [--verbose] [-o options] --homedir [mount-point]
The -r option removes the mount point if the mount fails. The --verbose option executes both
tl-mount-cifs and the actual mount command with debugging information. Additional mount options can
be specified using the -o options option. Refer to the smbmount/mount.cifs documentation for more
information. If the --homedir option is specified, it is not necessary to specify the service to mount.
Instead, the service corresponding to the users home directory will be fetched automatically from Active
Directory. This requires that the Samba net command is available. When --homedir is used, the
mount-point argument is optional. If omitted, the service will be mounted on a directory in the users
home directory corresponding to the drive letter specified in Active Directory (without the trailing colon).
The Hiveconf parameter /utils/tl-mount-cifs/cifsmount_args specifies default arguments for
the tl-mount-cifs command. This Hiveconf parameter is normally found in
/opt/thinlinc/etc/conf.d/tl-mount-cifs.hconf. The default value of this parameter is "-o
dir_mode=0700", which makes CIFS mounts user-private. This option is however only recognized by
mount.cifs .
Example 1: User "john" has a home directory on the CIFS file server \\alabama, shared as "john$", which
should be mounted on /home/john/winshares/home. To do this, he runs the following command:
$ tl-mount-cifs -r //alabama/john$ ~/winshares/home
112
Vista de pagina 121
1 2 ... 117 118 119 120 121 122 123 124 125 126 127 ... 219 220

Comentarios a estos manuales

Sin comentarios