File System


Mounting NCPFS

To check the installation type

ipx_configure --auto_interface=on --auto_primary=on

....wait for 10 seconds and type

slist

You should be able to see a list of your Netware servers. Now we are ready to share files from the Netware server.

Suppose we need to access HTML files from directory \home\htmldocs on volume VOL1: on the server MYDOM_NW, I recommend that you create a new user (say) 'EXPORT' with password 'EXP123' on this server to whom you grant appropriate access rights to this directory using SYSCON or NWADMIN.

On the Linux machine create a new directory /mnt/MYDOM_NW. Now type the command

ncpmount -S MYDOM_NW -U EXPORT -P EXP123 /mnt/MYDOM_NW

to mount the netware file system. Typing the command

ls /mnt/MYDOM_NW/vol1/home/htmldocs

will show you a list of all the files in MYDOM_NW/VOL1:\HOME\HTMLDOCS (using Netware file notation). If you have any problems please read the IPX HOWTO at http://sunsite.unc.edu/mdw/HOWTO/IPX-HOWTO.html for more insights into the IPX system.

SMBFS

To share the files on the Windows server you will need support for SMB (smbfs).

You will need to download the SMB filesystem utilities from ftp://sunsite.unc.edu/pub/Linux/system/filesystems/smbfs/smbfs.tgz (currently smbfs-2.0.1) from Sunsite. Mounting SMBFS

In our example let us assume that the WinNT server is called 'MYDOM_NT' and is sharing its directory C:\PUB\HTMLDOCS with a share name of 'HTMLDOCS' without a password. On the Linux machine create a new directory /mnt/MYDOM_NT. Now type the command

smbmount //MYDOM_NT/HTMLDOCS /mnt/MYDOM_NT -n

to mount the SMB (windows share) file system. If this does not work try

smbmount //MYDOM_NT/COMMON /mnt/MYDOM_NT -n -I 172.16.0.3

Typing the command

ls /mnt/MYDOM_NT

will show you a list of all the files in bsol;bsol;MYDOM_NT\PUB\HTML­ DOCS (using Windows file notation).

13.3. NFS

First you will need a kernel with the NFS file system either compiled in or available as a module.

Suppose you have a Unix host running NFS with the name MYDOM_UNIX and an IP address of 172.16.0.4. You can check the directories that are being exported (shared) by this host by typing the command

showmount -e 172.16.0.4

Once we know the exported directories you can mount them by entering a appropriate mount command. I recommend that you create a subdirectory under '/mnt' (say) 'MYDOM_UNIX' and use that as your mount point.

mount -o rsize=1024,wsize=1024 172.16.0.4:/pub/htmldocs /mnt/MYDOM_UNIX

The rsize and wsize may have to be changed depending on your environ­ ment.

If you have any problems please read the NFS HOWTO at http://sunsite.unc.edu/mdw/HOWTO/NFS-HOWTO.html for more insights into the NFS system. To access the mounted directories in your HTML pages you have two methods:

· Create a link in DocumentRoot (/usr/local/etc/httpd/htdocs) to refer to the mounted directory as

ln -s /mnt/MYDOM_NW/vol1/home/htmldocs netware or

ln -s /mnt/MYDOM_NT winNT or

ln -s /mnt/MYDOM_UNIX unix

· to edit the file srm.conf in your /usr/local/etc/httpd/conf directory and add a new alias. # Alias fakename realname Alias /icons/ /usr/local/etc/httpd/icons/

# alias for netware server Alias /netware/ /mnt/MYDOM_NW/vol1/home/htmldocs/ Alias /winNT/ /mnt/MYDOM_NT/ Alias /unix/ /mnt/MYDOM_UNIX

And restart your HTTPd. You can access the documents on the netware server by referring to them as http://linux.mydomain/netware/index.htm for the netware files and similar notations for the others.


This document was generated on 23 May 2000 using the texi2html translator version 1.52.