Installing OS-9 Samba File Manager
Using OS-9 Samba File Manager
The smbmount utility
|Installing OS-9 Samba FM|
Installation is simple. Just unpack the given archive into directory you like
using unzip utility. If you don't have it, download it
for free from the os9archive.
[Back to top]
|Using Samba FM|
You need to load the following modules into memory:
load -d samba smbdrv smbmount smbprint smbagnt
[Back to top]
|The smbmount utility|
Because the SMB protocol requires some authentication information,
the standard OS-9/NFS mount program cannot be used. Instead
the special smbmount utility is supplied.
Function: mount/unmount remote Samba file system, or display current mount information.
mount-point is the device name you want to mount the filesystem over. It's the same as in the normal OS-9/NFS mount command.
resource is the name of the service you want to use on the server. It takes the form //server/service%user - where server is the name of the Samba server offering the desired service, service is the name of the service offered, and user means user name as in -U option. Thus to connect to the root directory until the service "Disk_C" on the Samba server "NT", you would use the following resource name:
//NT/Disk_CTo make smbmount more friendly, only one leading '/' is required. The %user part can be also omitted.
Currently smbmount uses gethostbyname() to find the IP address of the desired host. It is thus not really compatible with Samba conventions, where the Netbios name of the server is not necessarily the same as the hostname. In environments which enforce a Netbios name that's different than the hostname, you should use -I and -c to simulate appropriate behaviour.
The example session can look like this:
** ------------------------------------- ** Mount remote resource to device pc0 ** Display directory for that tree ** Display a C source file ** Copy remote file onto local device ** Change the current working directory ** to be inside the mounted volume ** Unmount device ** Mount remote printer (empty password) ** Print file ** ------------------------------------- smbmount /pc0 /server/resource -P=pword dir /pc0 -e list /pc0/file.c copy /pc0/file.c /h0/file2.c chd /pc0/some_dir smbmount /pc0 -u smbmount /lp0 /server/laser -p -n list sometext.c>/lp0
[Back to top]
Samba servers support such concept as "browsing" available resources.
Any client can view resource names server supplies to all outside world.
OS-9 Samba File Manager installation archive includes a small Microware's
mshell script smbview
implementing this feature. It accepts only one command line argument -
(except if the server is running Windows NT and the server administrator has
closed guest account with a password - you also must supply your
password as a second argument) and displays all available resources on given
smbstat script walks through all mounted Samba devices and displays mount information as smbmount -i does.
smbsetime script syncronizes your computer's clock with the shared clock on given Samba server. Server name is required as command line argument.
smbjobs script displays remote print job list. Server name and printer name (its share name) are required as command line arguments.
smbpasswd script changes user password on the Windows NT server. Take into account, because this feature is based on Windows NT domain technology, the password should be changed on the Primary Domain Controller (PDC) of your network, not on the server you have access for resources on (consult with your network administrator in case of troubles). Server name (PDC name) should be the first command line argument. The second argument includes user name, old and new passwords and must have the form
Note: these scripts are not completely functional programs for daily application and use. They were written in the assumption, that will be used only as the simple examples for more best understanding of the OS-9 Samba File Manager internal structures and hidden features.
[Back to top]