wiki:WikiStart

Version 61 (modified by guest, 16 years ago) (diff)

--

Samba Server for OS/2 & eComStation

New - 12th December, 2007
URL for Samba Server 3.0.28 is ftp://ftp.netlabs.org/pub/samba/server/samba-3.0.28-os2-20071212.zip
New - 26th November, 2007
WarpIN-Installation package for Samba Server 3.0.27a URL is ftp://ftp.netlabs.org/pub/samba/server/samba-3.0.27a-os2-20071126-v1.wpi
New - 29th November, 2007
URL for Samba Client 3.0.27a is ftp://ftp.netlabs.org/pub/samba/client/ndpsmb-3.0.27a-20071129.ZIP

The 3.0.2x builds do not currently rely on Security/2, instead they use libc's user/group functions to determine if a user is valid or not.

How to get going with Samba Server for OS/2:

1.) Uninstall TCPBEUI (NETBIOS over TCPI/IP) using MPTS.

2.) SET UNIXROOT=x: where x: is the drive that has a /etc/ path.

Steps 1 and 2 are also the prerequisites for using the WarpIN installation package. Whereas the installer completes all further steps for you, you have to continue at step 3 in case you want to procede manually. In addition the WarpIN package comes with scripts and external commands preconfigured.

3.) Unzip ftp://ftp.netlabs.org/pub/gcc/alpha/baselayout.zip to the %UNIXROOT% drive. Among other directories this creates the required /etc directory.

4.) Edit %UNIXROOT%\etc\master.passwd and add the users that you need. You might want to add user pcguest (See step 6 why).

Note the syntax of master.passwd - first field before the colon is username, second is password (leave this blank), third is usernumber which must be unique - others aren't important right now.

5.) Remove the old %UNIXROOT%\etc\pwd.db and %UNIXROOT%\etc\spwd.db files.

6.) Run %UNIXROOT%\usr\sbin\pwd_mkdb.exe %UNIXROOT%\etc\master.passwd. This creates new pwd.db and swd.db files.

7.) Edit smb.conf which should be put into %ETC%\samba\*

Note %ETC% path is not necessarily the same as %UNIXROOT%\etc!

Note that the default config file smb.conf has provision for a guest account pcguest this user must be either added to master.passwd, the guest access commented out of smb.conf; or the user changed to a user that does exist in master.passwd

8.) Now Samba requires the users to be added using smbpasswd.exe, too. You have to add all users twice: First to etc\master.passwd (see step 3), then using smbpasswd.exe. To add a user called 'psmedley' run:

smbpasswd -a psmedley (enter password).

Note: Currently users cannot be renamed.

Note: The UserAddPM.EXE and UserDelPM.EXE utilities perform both steps!

9.) Start nmbd.exe and start smbd.exe.


Currently tested clients:

Known Issues Look at http://svn.netlabs.org/samba/report/1

Samba scripts and utilities contributed by Herwig Bauernfeind:

smb_init-*.zip package:

  • smb.cmd - extended port of *nix shell script to start/stop/restart Samba.

findsmb-*.zip package:

  • findsmb.cmd - port of *nix script to find SMB machines on the current or a given subnet

sharescripts-*.zip package:

  • addshare.cmd - external command script to add Samba shares from a client (tested with WinXP only)
  • delshare.cmd - external command script to remove Samba shares from a client (tested with WinXP only)
  • changeshare.cmd - external command script to modify Samba shares from a client (tested with WinXP only)

All these packages can be found at ftp://ftp.netlabs.org/pub/samba/contrib
Additional/later scripts and utilities for Samba can also be found here: http://members.aon.at/herwig.bauernfeind/samba/index.html

Thanks for testing!

Attachments (7)

Download all attachments as: .zip