Chapter 10. File Access
• Automatic translation of the username into a NDS distinguished name
• Ability to automatically lookup where (on what server and path) a users home directory resides using
LDAP lookups in eDirectory.
The tl-mount-ncp has two main syntaxes:
• tl-mount-ncp --homedir <mountpoint> will mount the Novell home directory of the current user (as
specified in the USER environment variable) after looking up the location of the home directory from
the ndsHomeDirectory attribute in eDirectory.
For example, if a user named john is logged in via ThinLinc and executes
tl-mount-ncp --homedir /home/john/novell/home
his Netware homedirectory will be mounted on /home/john/novell/home.
• tl-mount-ncp <server>/<path> <mountpoint> will mount the Netware resource at <server>/path on
<mountpoint>
For example, the command
tl-mount-ncp ALABAMA/DATA/common /home/john/novell/common
will mount the directory /DATA/common on the Netware file server ALABAMA on
/home/john/novell/common, using the current user’s username and password.
If extra parameters need to be added to the ncpmount command line used by tl-mount-ncp, they can
either be added on the tl-mount-ncp commandline using the --ncpmount_args parameter, or in Hiveconf,
as the parameter /utils/tl-mount-ncp/ncpmount_args . The latter is the preferred way, since it
provides a systemwide way to specify the parameters. By default, the parameter has a value that makes
filenames with swedish characters work as expected. The Hiveconf parameter is found in
/opt/thinlinc/etc/conf.d/tl-mount-ncp.hconf. You can see the ncpmount command line
used by using the --verbose flag to ncpmount when testing functionality.
10.2.2.2.2. Using tl-umount-all-ncp
The tl-umount-all-ncp command is a utility that unmounts the current user’s mounted NCP shares (all
NCP mounts below the user’s home directory). It requires no arguments. The optional argument -a will
unmount all NCP shares on the host.
10.2.2.2.3. Mounting Shares at Login
Often, it’s convenient to automatically mount NCP resources for all users upon login. This can be
accomplished by creating a script in /opt/thinlinc/etc/xstartup.d. It can be named anything.
The script should contain something like:
#!/bin/sh
/opt/thinlinc/bin/tl-mount-ncp --homedir ~/novell/home
/opt/thinlinc/bin/tl-mount-ncp ALABAMA/DATA/common ~/novell/common
115
Comentarios a estos manuales