wiki:WikiStart

Version 40 (modified by guest, 17 years ago) ( diff )

--

Samba Server for OS/2 & eComStation

New - 22nd August, 2007
URL for Samba Server 3.0.25c is ftp://ftp.netlabs.org/pub/samba/server/samba-3.0.25c-os2-20070822.zip
New - 04th September, 2007
URL for Samba Client 3.0.25c is ftp://ftp.netlabs.org/incoming/ndpsmb-3.0.25c-20070904.ZIP
WARNING: This build has a known memory leak!

The 3.0.24/25 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:

1.) SET UNIXROOT=x: where x: is the drive that has a /etc/ path. If it does not exist it will be created with step 2.

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

3.) 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.

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

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

6.) 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

7.) 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 can neither be renamed or removed (known bug).

Currently tested clients:

  • Windows 2000 running in Svista
  • Windows XP Home
  • Windows XP Pro (in VPC guest and natively)
  • Mandrake Linux 2006
  • eCS v1.2 with IBM LAN Client (EA's work correctly with builds >= 20070226)
  • eCS v2 beta with Netdrive 3.04 and Samba Client v3.0.9 (EA's partially work with builds later than 20070226 build)

Known Issues

  1. EA's not working correctly with Netlabs Samba client v3.0.9 (Bug in Samba client not Samba server)

Samba scripts contributed by Herwig Bauernfeind:

smb_init-*.zip package:

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

initgroups-*.zip package:

  • group - basic group file for Samba
  • initgroups.cmd - creates well-known NT groups with appropriate RIDs for Samba
  • delgroups.cmd - deletes well-known NT groups from 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/less tested stuff 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

Note: See TracWiki for help on using the wiki.