Changes between Version 1 and Version 2 of Cookbook


Ignore:
Timestamp:
Jan 26, 2008, 6:55:36 PM (17 years ago)
Author:
guest
Comment:

Restructured cookbook

Legend:

Unmodified
Added
Removed
Modified
  • Cookbook

    v1 v2  
    1 '''How to get going with Samba Server for OS/2:'''
     1= How to get going with the Samba Server for eComStation & OS/2 =
    22
    3 1.) Uninstall TCPBEUI (NETBIOS over TCPI/IP) using MPTS.
     3This page provides a quick cookbook to setup a simple Samba Server on eComstation & OS/2.
    44
    5 2.) {{{SET UNIXROOT=x:}}} where x: is the drive that has a /etc/ path.
     5== Prerequsites: ==
    66
    7 Steps 1 and 2 are also the prerequisites for using the WarpIN installation package.
    8 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.
     7 1. Make sure you have a 32bit TCP/IP stack (this is TCP/IP Version 4.1, 4.2x and 4.3x, '''not''' Version 4.0x or earlier).
    98
    10 3.) Unzip ftp://ftp.netlabs.org/pub/gcc/alpha/baselayout.zip to the %UNIXROOT% drive. Among other directories this creates the required /etc directory.
     9 2. Uninstall TCPBEUI (NETBIOS over TCPI/IP) using MPTS. Samba works directly with TCP/IP and occupies the same port number as TCPBEUI, therefore you cannot use TCPBEUI and Samba together.
    1110
    12 4.) Edit {{{%UNIXROOT%\etc\master.passwd}}} and add the users that you need. You might want to add user pcguest (See step 6 why).
     11 3. {{{SET UNIXROOT=x:}}} where {{{x:}}} is the drive that has a {{{/etc/}}} path.
    1312
    14 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.
     13These prerequisites are also valid when using the WarpIN installation package.
     14Whereas 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 [wiki:"Scripts and utilities" scripts and external commands] preconfigured.
    1515
    16 5.) Remove the old {{{%UNIXROOT%\etc\pwd.db}}} and {{{%UNIXROOT%\etc\spwd.db}}} files.
     16== Setup: ==
    1717
    18 6.) Run {{{%UNIXROOT%\usr\sbin\pwd_mkdb.exe %UNIXROOT%\etc\master.passwd}}}. This creates new pwd.db and swd.db files.
     18 1. Unzip ftp://ftp.netlabs.org/pub/gcc/alpha/baselayout.zip to the {{{%UNIXROOT%}}} drive or directory. Among other directories, this creates the required {{{/etc}}} directory as mentioned in prerequisites step 3.
    1919
    20 7.) Edit smb.conf which should be put into %ETC%\samba\*
     20 2. Edit {{{%UNIXROOT%\etc\master.passwd}}} and add the users that you need. You might want to add user pcguest (See step 4 why).
    2121
    22 Note %ETC% path is not necessarily the same as %UNIXROOT%\etc!
     22''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.''
    2323
    24 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
     24 3. Remove the old {{{%UNIXROOT%\etc\pwd.db}}} and {{{%UNIXROOT%\etc\spwd.db}}} files.
    2525
    26 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.
     26 4. Run {{{%UNIXROOT%\usr\sbin\pwd_mkdb.exe %UNIXROOT%\etc\master.passwd}}}. This creates new pwd.db and swd.db files.
     27
     28 5. In {{{%ETC%}}} directory create {{{%ETC%\samba}}} directory, in {{{%ETC%\samba create {{{%ETC%\samba\private}}}, {{{%ETC%\samba\pid}}} and {{{%ETC%\samba\lock}}} directories.
     29
     30 6. Edit smb.conf which should be put into {{{%ETC%\samba\}}}. A sample smb.conf comes with the .zip package of Samba. A complete reference for the smb.conf file can be found [http://us1.samba.org/samba/docs/man/manpages-3/smb.conf.5.html here]
     31
     32''Note: The {{{%ETC%}}} path is not necessarily the same as {{{%UNIXROOT%\etc}}}.''
     33
     34''Note: 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.''
     35
     36 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.
    2737To add a user called 'psmedley' run:
    2838
    2939{{{smbpasswd -a psmedley}}} (enter password).
    3040
    31 Note: Currently users cannot be renamed.
     41''Note: Currently users cannot be renamed.''
    3242
    33 Note: The UserAddPM.EXE and UserDelPM.EXE utilities perform both steps!
     43''Note: The UserAddPM.EXE and UserDelPM.EXE [wiki:"Scripts and utilities" utilities] perform both steps!''
    3444
    35 9.) Start nmbd.exe and start smbd.exe.
     45 8. Start nmbd.exe and start smbd.exe.