Netware File Server

Instructions

Use the scripts novell and novell-off to mount and unmount shares.

Guides

http://www.linuxdoc.org/HOWTO/IPX-HOWTO.html or
http://www.ibiblio.org/mdw/HOWTO/IPX-HOWTO-4.html.
http://file://localhost/windows/D/Webs/Control/Domains/UCLA.html (ftp instructions)

Hints

28 December 2005 -- mount the volume

On spello and sigillo, you can use the /usr/local/bin/novell script to connect and novell-off to unmount. Note that the script now mounts directly under the monalisa and steen directories, so access is simpler.

  ncpmount -S sscnw601 -u steen -U steen.comstudies.sscnet /mnt/novell -V DATA/COMSTUD/Users

The format for the .nwclient script should be correct, but it's not working. After failing to connect, giving the error "Invalid password (-669) in nds login" and "Login denied", all subsequent attempts also fail for that user, even after unloading the modules and reloading them. User root can still mount the shares, as can steen using sudo.  See man .nwclient for details; it's really safer to use the /usr/local/bin/novell script anyway.

9 August 2003 -- backing up to the file server

Backing up to the novell file server is erratic -- this is still on nssvol -- both in cp and rsync. Copying a file at a time works pretty well, using this syntax:

cp --preserve=timestamps /home/steen/grain/Research/Experiments/LarissaCohen/Cohen/2003-07-30-test.mp3 .

When the connection gives an io error message, unmount and remount:

ncpumount /mnt/novell
source .novell

In addition, this rsync job internally on the netware volume seems to be working:

steen@sigillo:/novell/nssvol/comstud/Users/steen/Experimental-data/Mona_Lisa/Backup$ rsync -aru --size-only ../../../../monalisa/ .

Note the -aur switch -- the a is for archive, which implies preserving ownership, permissions, and timestamp, and the u is for update only. The r is recursive.


Software

To establish Linux as a client to Netware, the Novell file server, you need ncpfs, which uses the IPX protocol. Shares are mounted with the ncpmount command. Issue:

just install ncpfs ipx

The ncpfs project site is http://www.freshmeat.net/projects/ncpfs/

ncpfs-devel (you don't need this, unless you want to compile)

Get gnlogin, the GTK graphical frontend to ncpmount (not available in Debian). Available, however, is ipxripd, a RIP/SAP daemon program for Linux. "It makes your Linux computer act as an IPX router."

Note also that Novell 5.1 has a package that allows all platforms to connect over TCP/IP/ -- see letter (below).

Setting up easy mounting
1 Feb 2002

In order to load netware easily, I set up the following arrangement. (see the guide at http://www.linuxdoc.org/HOWTO/IPX-HOWTO-9.html#ss9.4)

1. I created a local mount point for the file server:

md /mnt/novell

2. I permitted the programs to be run by users (these are Debian locations of these programs):

# chmod 4755 /usr/sbin/ipx_configure
# chmod 4755 /usr/bin/ncpmount

3. I created a file called /home/steen/.nwclient with this content:

EFFNET/steen.comstudies.sscnet password

and then set the permissions to nothing for all but root:

# chmod 0600 .nwclient

4. I created another file called .novell with this content:

ipx_configure --auto_interface=on --auto_primary=on ncpmount nfs

5. To run it, you type source .novell -- I made an icon that does this, but I couldn't make the icon work. However, the console command works fine.

6. To unmount the file server:

# ncpumount nfs

Note that this is done by user steen and is specific to this user.

Note that it takes almost a minute for the connection to come to life. To wake it up, try slist and just wait. When it comes up, run source .novell again.

Note that I haven't set this up for root yet.

Second installation

I followed the installation of ncpfs above, but got an error message relating to the library. I had to add a symbolic link to make it work, but figured out how to do it (see details under narrative complications below).

Then it appears that the netware server has been reconfigured, cutting out the nssvol. In Windows, I get this:

Your current context is ComStudies.sscnet
User: steen Context: ComStudies.sscnet
Your current tree is: SSCNET
You are attached to server EFF007.
You are attached to server EFFNET.

The directory structure is now

Sscnet
sscnet
ComStudies

and then the folders:

Effnet_NSS (before just Effnet, with Nssvol under it)
comstud
Users
Steen

So the structure has been changed! It turns out that this string is what works now:

ncpmount -S effnet -u steen -U steen.comstudies.sscnet nfs -P <password>

In order to load netware easily, I set up the following arrangement.(see guide and detailed guide):

1. Create a local mount point for the file server:

md /home/steen/nfs

2. Permit the programs to be run by users:

# cd usr/bin
# chmod 4755 ipx_configure
# chmod 4755 ncpmount

3. Create a file called /home/steen/.nwclient with this content (note the peculiar syntax):

EFFNET/steen.comstudies.sscnet password

and then set the permissions to nothing for all but root:

# chmod 0600 .nwclient

4. I created a new file called .novell with this content:

ipx_configure --auto_interface=on --auto_primary=on
ncpmount nfs

5. To run it

source .novell

-- I made an icon that does this, but I couldn't make the icon work. However, the console command works fine.

6. To unmount the file server:

# ncpumount nfs

Note that this is done by user steen and is specific to this user.

Note that this is a sluggist connection. To wake it up, try slist, but don't assume that it will fail because slist fails. Try the script, then slist, then the script again... I've found no rhyme or reason in how it works, but once the connection is established, it works fine.

Note that I haven't set this up for root yet -- in fact, this system may not work for root, as it likely picks user name from login name.

Get gnlogin, the GTK graphical frontend to ncpmount! See also overview and Mars.

The ncpmount delays seem to be resolved by waiting half a minute -- then it goes right through. So there's some latency there that you can play with. Ideally you'd write a script -- check out the LFS scripts to remind yourself how it's done.

Narrative complications of the second installation

After installing the rpm, I tried to run ncpmount, getting an error message about not finding libncp.so.2.3.

The find command seems to be like this (I can't find my earlier notes):

find / -name -mount string* -print | less

Don't forget to use wildcards.

So you found these --

/usr/lib/libncp.so.2
/usr/lib/libncp.so.2.3.0

you may need to set up a symlink from

/usr/lib/libncp.so.2.3.0 to /usr/lib/libncp.so.2.3

I think this is done by

cp /usr/lib/libncp.so.2.3.0 /usr/lib/libncp.so.2.3

The proper way to do it is this:

ln -sf /usr/lib/libncp.so.2.3.0 /usr/lib/libncp.so.2.3

I'm not finding my notes -- unfortunately I've not been thorough enough.
Basically, you need to know how to check which library a program is
looking for, and where they are trying to find it -- the program to use is
ldd.

So in the case of slink, you want to see what it looks for using ldd.
First find slist using this command

find / -name slist* -mount -print | less

/usr/bin/slist
/usr/share/man/man1/slist.1.gz
/usr/include/g++/slist
/usr/include/g++/slist.h

Then run ldd against slist to find what libraries it uses. No, that makes
no sense:

gubbio:/ # ldd --help

Usage: ldd [OPTION]... FILE...
--help print this help and exit
--version print version information and exit
-d, --data-relocs process data relocations
-r, --function-relocs process data and function relocations
-v, --verbose print all information
Report bugs using the `glibcbug' script to <bugs@gnu.org>.

Then see what libraries are in the default path -- that's in:

gubbio:/etc # more ld.so.conf
/usr/lib
/lib-aout
/usr/X11R6/lib
/usr/X11R6/lib/Xaw95
/usr/X11R6/lib/Xaw3d
/usr/i486-linux/lib
/usr/i486-linux-libc5/lib=libc5
/usr/i486-linux-libc6/lib=libc6
/usr/i486-linuxaout/lib
/usr/i386-suse-linux/lib
/usr/local/lib
/usr/openwin/lib
/opt/kde/lib
/opt/kde2/lib
/opt/gnome/lib

Now /usr/lib is included, so that's not the problem. Next, set up a symlink:

/usr/lib/libncp.so.2.3.0 to /usr/lib/libncp.so.2.3

How do you do that?

ln -sf /usr/lib/libncp.so.2.3.0 /usr/lib/libncp.so.2.3

Now that worked! Here's the result:

lrwxrwxrwx 1 15 Jan 31 20:50 libncp.so.2 -> libncp.so.2.3.0*
lrwxrwxrwx 1 24 Jan 31 21:18 libncp.so.2.3 -> /usr/lib/libncp.so.2.3.0*
-rwxr-xr-x 1 225588 Oct 24 20:01 libncp.so.2.3.0*

Note that it's only the last one that's a real file; the other two are symbolic links. I just created the second -- and slist now works!

gubbio:/usr/lib # slist
Known NetWare File Servers Network Node Address
--------------------------------------------------------------------------
EFF007 0EFF007A 000000000001
EFF002 0EFF002A 000000000001
EFFDEPT 0EFF400A 000000000001
EFFSTUDENT 00EFFABC 000000000001
EFF4001 EFF4001A 000000000001
EFFAPPS 0EFF7001 000000000001
EFF009 0EFF009A 000000000001
EFF004 0EFF004A 000000000001
EFFNET 0EFF4012 000000000001
116FS01 00116A01 000000000001

However, I'm still getting errors:

gubbio:/# ncpmount -S effapps -V nssvol -u steen -U steen.comstudies.sscnet /mnt/nfs
Logging into EFFAPPS as STEEN.COMSTUDIES.SSCNET
Password:
Cannot access path "nssvol": No such file or directory

I then cut out the -V nssvol and tried just this:

gubbio:/ # ncpmount -S effapps -u steen -U steen.comstudies.sscnet /mnt/nfs
Logging into EFFAPPS as STEEN.COMSTUDIES.SSCNET

Password:

That gave no error message -- however, nothing visible is mounted. When I
try it again, I'm told that it's worked:

gubbio:/mnt/nfs # ncpmount -S effapps -V nssvol -u steen -U
steen.comstudies.sscnet /mnt/nfs
You already have mounted server EFFAPPS
as user STEEN.COMSTUDIES.SSCNET
on mount point /mnt/nfs

I then note that the directory was created by steen:

gubbio:/mnt/nfs # l
total 5
drwxr-xr-x 1 steen root 512 Jan 1 1986 ./
drwxr-xr-x 5 root root 4096 Jan 31 20:45 ../

The date is wrong and I may not have user access. So I delete it and
create it as root. I verify that this is done:

gubbio:/mnt # l
total 20
drwxr-xr-x 5 root root 4096 Jan 31 21:33 ./
drwxr-xr-x 19 root root 4096 Jan 31 12:06 ../
drwxr-xr-x 4 root root 4096 Dec 29 21:52 hde/
drwxr-xr-x 2 root root 4096 Dec 23 15:37 lfs/
drwxr-xr-x 2 root root 4096 Jan 31 21:33 nfs/

and also inside the directory:

gubbio:/mnt/nfs # l
total 8
drwxr-xr-x 2 root root 4096 Jan 31 21:33 ./
drwxr-xr-x 5 root root 4096 Jan 31 21:33 ../

The result is this:

gubbio:/mnt # l
total 17
drwxr-xr-x 5 root root 4096 Jan 31 21:33 ./
drwxr-xr-x 19 root root 4096 Jan 31 12:06 ../
drwxr-xr-x 4 root root 4096 Dec 29 21:52 hde/
drwxr-xr-x 2 root root 4096 Dec 23 15:37 lfs/
drwxr-xr-x 1 steen root 512 Jan 1 1986 nfs/

It's changed the ownership of the nfs directory -- and the date. So it's
being done by ncpfs! Inside is the same story:

gubbio:/mnt/nfs # l
total 5
drwxr-xr-x 1 steen root 512 Jan 1 1986 ./
drwxr-xr-x 5 root root 4096 Jan 31 21:33 ../

And that's all I get -- no access. Very peculiar -- is the problem the
volume? I use ncpumount /mnt/nfs to release it.

Then I try a variant:

gubbio:/mnt # ncpmount -S effnet -u steen -U steen.comstudies.sscnet /mnt/nfs -P password

gubbio:/mnt # l
total 17
drwxr-xr-x 5 root root 4096 Jan 31 21:33 ./
drwxr-xr-x 19 root root 4096 Jan 31 14:09 ../
drwxr-xr-x 4 root root 4096 Dec 29 21:52 hde/
drwxr-xr-x 2 root root 4096 Dec 23 15:37 lfs/
drwxr-xr-x 1 steen root 512 Jan 1 1986 nfs/

gubbio:/mnt # cd nfs

gubbio:/mnt/nfs # l
total 6
drwxr-xr-x 1 steen root 512 Jan 1 1986 ./
drwxr-xr-x 5 root root 4096 Jan 31 21:33 ../
drwxr-xr-x 1 steen root 512 Jan 1 1986 nssvol/
drwxr-xr-x 1 steen root 512 Jan 1 1986 sys/

There it is -- and it's still called nssvol! But I now have to log in to effnet instead of effapps. No volume seems to be required.

I managed to make it all work. I can now listen to mp3 files through the file server -- which means I can do it from anywhere.

(It turns out xmms (X Multimedia System) is a pure clone of winamp -- all the same features.)

First installation

All this installed fine in early December 2001; I used the RPMs and the online update.

You then need to verify that IPX is configured, by giving the command

ipx_configure --auto_interface=on --auto_primary=on

This will allow you to see the Netware File Servers on your network with the command slist:

Known NetWare File Servers

Network Node Address
--------------------------------------------------------------------------
EFFSTUDENT 00EFFABC 000000000001
EFF4001 EFF4001A 000000000001
EFF007 0EFF007A 000000000001
EFFDEPT 0EFF400A 000000000001
EFF002 0EFF002A 000000000001
EFFNET 0EFF4012 000000000001
EFF004 0EFF004A 000000000001
EFF9B 09F94184 000000000001
EFF009 0EFF009A 000000000001
116FS01 00116A01 000000000001
EFFAPPS 0EFF7001 000000000001

Next, define a mount point for the server; this should simply be a directory:

# md /mnt/nfs

You then need to mount the server on your file system. This can be done in two ways: through the command

# ncpmount <see -help for parameters>

or by adding a line to /etc/fstab, the file that defines the location and types of various types of storage drives. If ncpfs is installed, ncpmount should be present.

Syntax

The tough part was discovering the syntax.
You need to provide the following:

  1. ncpmount

  2. -S server name (I tried effapps, effnet, and effdept)

  3. -u user name (steen)

  4. -U context (steen.comstudies.sscnet)

  5. -P password (-C keeps it lowercase)

  6. /mnt/nfs (the mounting directory

Note that in Windows, I get the following information:

NDS
Tree: sscnet
Context: ComStudies.sscnet

.CN = steen
.OU = ComStudies
.O = sscnet

The directory structure:

Effnet
Nssvol
ComStud
Users
Steen

The resulting string:

ncpmount -S effapps -V nssvol -u steen -U steen.comstudies.sscnet /mnt/nfs -P <password>

This finally worked fine on 14 December 2001, and I found the remote files on the mount point.

 

Novell Native File Access
Date: Fri, 1 Feb 2002 17:50:09 -0800 (PST)
From: Francis F Steen <steen@commstds.ucla.edu>
To: "Gaang-Jau (G.J.) Chen" <gjchen@ssc.ucla.edu>
Cc: Mike Franks <franks@ssc.ucla.edu>, LEW@ssc.ucla.edu,
Tim Groeling <groeling@commstds.ucla.edu>, Jane Bitar <jbitar@ucla.edu>
Subject: Netware upgrade request

Dear G.J.,

On Fri, 1 Feb 2002, Gaang-Jau (G.J.) Chen wrote:

> The server you attached to is running Netware 5.0. The detail part about
> Mac access, especially OS X system, I don't know, we just have to try it out.

Novell doesn't beat around the bush on this: there is unfortunately no support for OSX under Netware 5.0. It looks like we need two things to fly:

1. A netware 5.1 upgrade of the server we're attached to

2. A copy of Novell Native File Access for Macintosh

This latter "implements the AppleTalk Filing Protocol (AFP) 3.0 protocol over TCP/IP" according to their flyer.

Any chance you'll upgrade to 5.1? Please keep us posted. The Novell Native File Access Pack (NFAP), which is free as part of NetWare 6, can be purchased for NetWare 5.1 at a list price of $299 per server, and it's free if you subscribe to NetWare maintenance or upgrade protection (see promo).

"NFAP allows Windows, Macintosh, Unix and Linux desktops to access NetWare files and storage using standard Internet protocols - without having to visit the client computer. It is also manageable through NDS/ eDirectory." Network Fusion.

Best wishes,
Francis



 

 

top
Debate
Evolution
CogSci

Maintained by Francis F. Steen, Communication Studies, University of California Los Angeles


CogWeb