Chapter 10. File Access
10.2.2. Using NCPFS to Access Novell File Servers
Using the ncpfs package and kernel module, it’s possible to mount file resources from Netware servers
using the Netware Core Protocol, which is the same protocol that is used by for example Windows
computers accessing Netware file servers.
Note: There are currently two ways to access Novell File Servers via NCPFS - either via the ncpfs
package and kernel module, or via Novell’s Client for Linux. The latter is described in Section 10.2.3.
Since a NCP mount is per user, not per host as with NFS, every user must mount their own resources at
login, most often using their password. The procedure used is much like the one used when accessing
Windows file servers, described in Section 10.1.
10.2.2.1. Requirements
The package ncpfs must be installed on the ThinLinc server. The programs ncpmount and ncpumount
must be setuid root. This is accomplised by executing the following command:
# chmod u+s,a+x /usr/bin/ncpmount /usr/bin/ncpumount
On SuSE, the permissions of ncpmount and ncpumount are reset each time SuSEconfig is run. To avoid
this, add the following to /etc/permissions.local and run SuSEconfig:
/usr/bin/ncpmount root.root 4755
/usr/bin/ncpumount root.root 4755
The ThinLinc server must be configured to use LDAP for authentication as described in Section 9.3. The
commands used for mounting resources from Netware servers, described below, use the values in
/etc/ldap.conf to find what LDAP server to ask for needed information.
We assume that the Netware servers we will mount resources from operate in an IP environment, and
that DNS names exist for all Netware servers. If the latter is not true, aliases for the Netware servers need
to be added to /etc/hosts.
When using NCP to access the Netware file servers, the permissions are decided by the Netware server.
However, the permissions that are showed on the Linux side are not mapped to the effective permission.
Therefore, even though a file may look readable/writable when listing it from the Linux side, it may very
well not be readable/writable when trying, because the Netware file server denies it.
10.2.2.2. Mounting and Unmounting shares
10.2.2.2.1. Using tl-mount-ncp
tl-mount-ncp is a small wrapper for ncpmount which adds:
• Automatic submission of password using the ThinLinc Single Sign-On mechanism.
• Automatic creation of mountpoint directory if it does not exist.
114
Komentarze do niniejszej Instrukcji