How can I have NCP shares automatically mounted by my SUSE LINUX system?
Articles and Tips: qna
01 Aug 2005
Q.
How can I have NCP shares automatically mounted by my SUSE LINUX system?
A.
Mount NCP shares via the ncpfs package. Unfortunately, just adding the shares to the /etc/fstab file does not work because the system attempts to mount the shares prior to bringing up the network. You can get around this in three ways:
If the server has Native File Access, you can mount the shares as Samba shares instead of native NCP shares. Just add them to /etc/fstab or /etc/samba/smbfstab to have them mounted in any version of SUSE LINUX.
For all versions of SUSE LINUX, you can add the NCP shares to the /etc/fstab file and then create a script, based on /etc/rc.d/smbfs, that mounts the shares after networking has been started.
For SUSE LINUX Professional, you can use the PAM module pam_mount to have NCP shares mounted for a user when the user logs in and then have the shares unmounted when the user logs out. This method is especially flexible because each user can have a different set of shares defined.
* Originally published in Novell Connection Magazine
Disclaimer
The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.