1999-10-15 09:59:48 +00:00
|
|
|
.\" $FreeBSD$
|
2000-12-11 15:20:31 +00:00
|
|
|
.Dd October 14, 1999
|
1999-10-15 09:59:48 +00:00
|
|
|
.Dt MOUNT_NWFS 8
|
2001-07-10 11:04:34 +00:00
|
|
|
.Os
|
1999-10-15 09:59:48 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm mount_nwfs
|
|
|
|
.Nd mount NetWare volume from a NetWare file server
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 16:52:27 +00:00
|
|
|
.Nm
|
1999-10-15 09:59:48 +00:00
|
|
|
.Op Fl Chv
|
2000-01-15 09:06:37 +00:00
|
|
|
.Fl S Ar server
|
|
|
|
.Fl U Ar user
|
|
|
|
.Op Fl connection\ options
|
|
|
|
.Fl V Ar volume
|
1999-10-15 09:59:48 +00:00
|
|
|
.Op Fl M Ar mode
|
|
|
|
.Op Fl c Ar case
|
|
|
|
.Op Fl d Ar mode
|
|
|
|
.Op Fl f Ar mode
|
|
|
|
.Op Fl g Ar gid
|
|
|
|
.Op Fl l Ar locale
|
|
|
|
.Op Fl n Ar os2
|
|
|
|
.Op Fl u Ar uid
|
|
|
|
.Op Fl w Ar scheme
|
|
|
|
.Ar node
|
2000-11-20 16:52:27 +00:00
|
|
|
.Nm
|
1999-10-15 09:59:48 +00:00
|
|
|
.Op Fl options
|
2000-01-15 09:06:37 +00:00
|
|
|
.Ar /server:user/volume[/path]
|
1999-10-15 09:59:48 +00:00
|
|
|
.Ar node
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2002-07-06 19:34:18 +00:00
|
|
|
utility allows to mount volume from a NetWare server.
|
2000-03-01 11:27:47 +00:00
|
|
|
It may use either
|
1999-10-15 09:59:48 +00:00
|
|
|
existing connection or create new: if no usable connection was found
|
2000-03-01 11:27:47 +00:00
|
|
|
it will try to establish a new one.
|
|
|
|
Connection has count of references to it,
|
|
|
|
so when last mount will be dismounted connection will be closed.
|
|
|
|
It is
|
1999-10-15 09:59:48 +00:00
|
|
|
possible to create connection without any mounts (but use it for them) with
|
|
|
|
.Xr ncplogin 1 .
|
|
|
|
.Pp
|
2000-03-01 11:27:47 +00:00
|
|
|
Note two forms of command line.
|
|
|
|
In the first form, server and user specified
|
2001-07-15 07:53:42 +00:00
|
|
|
via
|
1999-10-15 09:59:48 +00:00
|
|
|
.Fl S
|
|
|
|
and
|
|
|
|
.Fl U
|
2000-03-01 11:27:47 +00:00
|
|
|
options respectively.
|
|
|
|
In the second form server and user specified in
|
1999-10-15 09:59:48 +00:00
|
|
|
.Ar special
|
2001-07-15 07:53:42 +00:00
|
|
|
part of
|
1999-10-15 09:59:48 +00:00
|
|
|
.Xr mount 8
|
|
|
|
command line arguments (the
|
|
|
|
.Fl S ,
|
|
|
|
.Fl U
|
|
|
|
and
|
|
|
|
.Fl V
|
2000-12-14 11:52:05 +00:00
|
|
|
options aren't used in this case).
|
|
|
|
This allows use of
|
2000-01-15 09:06:37 +00:00
|
|
|
.Xr fstab 5
|
|
|
|
file (see
|
|
|
|
.Sx EXAMPLES
|
|
|
|
below).
|
1999-10-15 09:59:48 +00:00
|
|
|
.Pp
|
|
|
|
The options are:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl S Ar server
|
2000-03-01 11:27:47 +00:00
|
|
|
Name of NetWare server to connect.
|
|
|
|
For native IP you will need also
|
1999-10-15 09:59:48 +00:00
|
|
|
.Fl A
|
|
|
|
option.
|
|
|
|
.It Fl U Ar user
|
2000-01-15 09:06:37 +00:00
|
|
|
Name of user used in login sequence.
|
2001-02-01 16:38:02 +00:00
|
|
|
.It Fl connection\ options
|
1999-10-15 09:59:48 +00:00
|
|
|
See
|
|
|
|
.Xr ncplogin 1
|
|
|
|
for details.
|
|
|
|
.It Fl V Ar volume
|
2000-03-01 11:27:47 +00:00
|
|
|
Volume name to mount.
|
|
|
|
Volume name can also be specified after all options and
|
1999-10-15 09:59:48 +00:00
|
|
|
before
|
|
|
|
.Ar mount-point .
|
|
|
|
.It Ar node
|
|
|
|
Path to mount volume.
|
|
|
|
.It Fl c Ar case
|
2000-01-15 09:06:37 +00:00
|
|
|
Select a
|
2001-07-15 07:53:42 +00:00
|
|
|
.Ar case
|
1999-10-15 09:59:48 +00:00
|
|
|
option which affects on name representation.
|
2001-07-15 07:53:42 +00:00
|
|
|
.Ar Case
|
1999-10-15 09:59:48 +00:00
|
|
|
can be one of the following:
|
2000-03-02 13:14:16 +00:00
|
|
|
.Bl -tag -width "ValueXX"
|
|
|
|
.It Em Value
|
|
|
|
.Em Meaning
|
|
|
|
.It l
|
2001-07-15 07:53:42 +00:00
|
|
|
All existing file names converted to lower case.
|
2000-03-02 13:14:16 +00:00
|
|
|
Newly created file gets a lower case under OS2 name space.
|
|
|
|
This is the default when mounting volumes with DOS name space.
|
|
|
|
.It L
|
2002-08-21 18:11:48 +00:00
|
|
|
Same as 'l' but file system tries to be case insensitive.
|
2000-03-02 13:14:16 +00:00
|
|
|
May not work well.
|
|
|
|
.It n
|
2001-07-15 07:53:42 +00:00
|
|
|
No case conversion is performed.
|
2001-02-01 16:38:02 +00:00
|
|
|
.Em Warning !
|
2000-03-02 13:14:16 +00:00
|
|
|
Use this option with DOS name space only as a last resort,
|
|
|
|
because creating a lower case name in the DOS name space
|
|
|
|
can lead to unpredictable results.
|
|
|
|
This is the default when mounting volumes with OS2 name space.
|
|
|
|
.It u
|
|
|
|
All existing file names converted to upper case.
|
|
|
|
Newly created file gets an upper case under OS2 name space.
|
|
|
|
.It U
|
2002-08-21 18:11:48 +00:00
|
|
|
Same as 'u' but file system tries to be case insensitive.
|
2000-03-02 13:14:16 +00:00
|
|
|
May not work well.
|
|
|
|
.El
|
2000-01-15 09:06:37 +00:00
|
|
|
.It Fl f Ar mode , Fl d Ar mode
|
|
|
|
Specify permissions that should be assigned to files and directories.
|
2000-03-01 11:27:47 +00:00
|
|
|
The values must be specified as octal numbers.
|
|
|
|
Default value for the file mode
|
2000-01-15 09:06:37 +00:00
|
|
|
is taken from mount point, default value for the dir mode adds execute
|
|
|
|
permission where the file mode gives read permission.
|
2000-12-14 11:52:05 +00:00
|
|
|
.Pp
|
1999-10-15 09:59:48 +00:00
|
|
|
Note that these permissions can differ from the rights granted by NetWare
|
2001-07-15 07:53:42 +00:00
|
|
|
server.
|
1999-10-15 09:59:48 +00:00
|
|
|
.It Fl n Ar namespace
|
2000-01-15 09:06:37 +00:00
|
|
|
Don't use
|
1999-10-15 09:59:48 +00:00
|
|
|
.Ar namespace .
|
|
|
|
Currently only
|
|
|
|
.Ar OS2
|
|
|
|
can be here.
|
|
|
|
.It Fl v
|
2000-01-15 09:06:37 +00:00
|
|
|
Print version number.
|
|
|
|
.It Fl u Ar uid , Fl g Ar gid
|
2000-03-01 11:27:47 +00:00
|
|
|
User id and group id assigned to files.
|
|
|
|
The default is owner and group id from
|
1999-10-15 09:59:48 +00:00
|
|
|
directory where volume is mounted.
|
|
|
|
.It Fl l Ar locale
|
2000-03-01 11:27:47 +00:00
|
|
|
Set the locale for case conversion.
|
|
|
|
By default
|
1999-10-15 09:59:48 +00:00
|
|
|
.Nm
|
|
|
|
tries to use an environment variable
|
2000-01-15 09:06:37 +00:00
|
|
|
.Ev LC_* .
|
1999-10-15 09:59:48 +00:00
|
|
|
.It Fl w Ar scheme
|
2000-01-15 09:06:37 +00:00
|
|
|
Select a
|
2001-07-15 07:53:42 +00:00
|
|
|
.Ar scheme
|
2000-01-15 09:06:37 +00:00
|
|
|
used to convert file names between NetWare and
|
2000-01-23 01:30:05 +00:00
|
|
|
.Fx .
|
2002-04-20 05:35:02 +00:00
|
|
|
Supported conversion schemes are:
|
2002-05-29 16:47:55 +00:00
|
|
|
.Bl -tag -width ".Cm koi2cp866"
|
|
|
|
.It Cm asis
|
2002-04-20 05:35:02 +00:00
|
|
|
Characters passed as is without any alteration.
|
2002-05-29 16:47:55 +00:00
|
|
|
.It Cm koi2cp866
|
2002-04-20 05:35:02 +00:00
|
|
|
koi8-r <-> CP866
|
2002-05-29 16:47:55 +00:00
|
|
|
.It Cm se
|
2002-04-20 05:35:02 +00:00
|
|
|
Suits for setups used in Sweden.
|
|
|
|
.El
|
1999-10-15 09:59:48 +00:00
|
|
|
.It Fl M Ar mode
|
2001-07-15 07:53:42 +00:00
|
|
|
See
|
|
|
|
.Xr ncplogin 1
|
2000-03-01 11:27:47 +00:00
|
|
|
for details.
|
|
|
|
If this option is omitted, connection permissions
|
2000-01-15 09:06:37 +00:00
|
|
|
assumed the same as directory mode
|
2001-02-01 16:38:02 +00:00
|
|
|
.Pq Fl d
|
|
|
|
option.
|
1999-10-15 09:59:48 +00:00
|
|
|
.El
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /var/log/wtmp -compact
|
|
|
|
.It Pa ~/.nwfsrc
|
2000-03-01 11:27:47 +00:00
|
|
|
keeps static parameters for connections and other information.
|
|
|
|
See
|
1999-11-14 13:48:31 +00:00
|
|
|
.Pa /usr/share/examples/nwclient/dot.nwfsrc
|
1999-10-15 09:59:48 +00:00
|
|
|
for details.
|
2000-01-15 09:06:37 +00:00
|
|
|
.El
|
1999-10-15 09:59:48 +00:00
|
|
|
.Sh NOTES
|
|
|
|
Before any NCP connection can be established kernel must be configured
|
|
|
|
for IPX support, IPXrouted and KLD nwfs.ko should be loaded.
|
|
|
|
.Sh EXAMPLES
|
|
|
|
Next examples illustrates how to connect to NetWare server
|
2000-01-15 09:06:37 +00:00
|
|
|
.Em nwserv
|
1999-10-15 09:59:48 +00:00
|
|
|
as user
|
2000-01-15 09:06:37 +00:00
|
|
|
.Em GUEST
|
1999-10-15 09:59:48 +00:00
|
|
|
and mount volumes
|
2000-01-15 09:06:37 +00:00
|
|
|
.Em SYS
|
1999-10-15 09:59:48 +00:00
|
|
|
and
|
2000-01-15 09:06:37 +00:00
|
|
|
.Em VOL1 :
|
1999-10-15 09:59:48 +00:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
mount_nwfs -S nwserv -U guest -V sys /nw/s1/sys
|
|
|
|
mount_nwfs /nwserv:guest/sys /nw/s1/sys
|
|
|
|
mount -t nwfs /nwserv:guest/vol1 /nw/s1/vol1
|
|
|
|
mount -t nwfs /nwserv:boris/sys/home/boris /home/boris/nw/home
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
The last example mounts only subdirectory on a volume and equivalent
|
|
|
|
to NetWare 'map root' command.
|
|
|
|
.Pp
|
2000-01-15 09:06:37 +00:00
|
|
|
It is possible to use
|
|
|
|
.Xr fstab 5
|
|
|
|
for nwfs mounts:
|
1999-10-15 09:59:48 +00:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
/nwserv:guest/sys /nw/s1/sys nwfs rw,noauto 0 0
|
|
|
|
/nwserv:guest/vol1 /nw/s1/vol2 nwfs rw,noauto 0 0
|
|
|
|
.Ed
|
2000-12-14 11:52:05 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility first appeared in
|
|
|
|
.Fx 4.0 .
|
1999-10-15 09:59:48 +00:00
|
|
|
.Sh BUGS
|
|
|
|
to number a few
|
|
|
|
.Sh CREDITS
|
2000-01-15 09:06:37 +00:00
|
|
|
In development of NetWare client for
|
2000-01-23 01:30:05 +00:00
|
|
|
.Fx ,
|
2000-01-15 09:06:37 +00:00
|
|
|
the following sources were used:
|
1999-10-15 09:59:48 +00:00
|
|
|
.Pp
|
|
|
|
Documentation from NetWare NDK.
|
|
|
|
.Pp
|
2000-01-15 09:06:37 +00:00
|
|
|
Ncpfs for Linux - written by
|
2000-12-14 11:52:05 +00:00
|
|
|
.An Volker Lendecke Aq lendecke@math.uni\-goettingen.de .
|
2001-08-14 10:01:54 +00:00
|
|
|
He granted me permission to publish parts of his code under
|
|
|
|
.Bx Ns -style
|
|
|
|
license,
|
1999-10-15 09:59:48 +00:00
|
|
|
.Pp
|
2000-01-15 09:06:37 +00:00
|
|
|
"Interrupt List" from
|
|
|
|
.An Ralf Brown ,
|
1999-10-15 09:59:48 +00:00
|
|
|
.Pp
|
2000-01-15 09:06:37 +00:00
|
|
|
Many files from
|
|
|
|
.Pa /sys
|
|
|
|
directory.
|
|
|
|
.Sh AUTHORS
|
1999-10-15 09:59:48 +00:00
|
|
|
.An Boris Popov Aq bp@butya.kz ,
|
|
|
|
.Aq rbp@chat.ru
|