Changes between Version 16 and Version 17 of Cookbook


Ignore:
Timestamp:
Apr 24, 2009, 8:13:26 AM (16 years ago)
Author:
Herwig Bauernfeind
Comment:

Rework the cookbook.

Legend:

Unmodified
Added
Removed
Modified
  • Cookbook

    v16 v17  
    33This page provides a quick cookbook to setup a simple Samba Server on eComstation & OS/2.
    44
    5 == Prerequsites: ==
     5== Prerequsites for all Samba installations (both manual and WPI: ==
    66
    77 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).
     
    1111 3. Samba must be installed on a partition that supports long filenames, such as HPFS(386), JFS or FAT32. Samba cannot be installed on FAT16.
    1212
    13  4. {{{SET UNIXROOT=x:}}} where {{{x:}}} is the drive that has a {{{/etc/}}} path. It is recommended to set {{{UNIXROOT=x:\MPTN}}} (where x: is your bootdrive), because %UNIXROOT%\etc and %ETC% point to the same directory and all the stuff is in one place then. In addition {{{SET TMPDIR=x:\tmp}}} where {{{x:\tmp}}} is any valid directory to put temporary files on.
     13When you downloaded the WPI version the installer will complete all further steps for you. In addition the WPI package comes with [wiki:"Scripts and utilities" scripts and external commands] preconfigured.
    1414
    15 The next 2 steps are '''not required''', in case you install a recent WPI package:[[BR]]
    16 
    17  5. 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.
    18 
    19  6. Get the current [ftp://ftp.netlabs.org/pub/gcc/libc-0_6_3-csd3.wpi kLibc runtime]. It is recommended that you install the libc*.dll files using this package, even if they are already present on your system.
    20 
    21 
    22 When you downloaded the .zip file you have to procede with the manual setup. When you downloaded the WarpIn version the installer will completes all further steps for you. In addition the WarpIN package comes with [wiki:"Scripts and utilities" scripts and external commands] preconfigured.
     15''Note: Most important, there is no need to install baselayout.zip and there is no need to set {{{%UNIXROOT%}}} and {{{%TMPDIR%}}} anymore, when using the WPI. Do not do that!! ''
    2316
    2417''Note: Only older builds (3.0.9 and older) rely on Security/2. Newer builds (after 3.0.9) use libc's user/group functions to determine if a user is valid or not.''
    2518
    26 == Manual setup: ==
     19== Further steps and prerequsisites only required for manual installation (don't do this in case you install a recent WPI): ==
    2720
    28  1. Edit {{{%UNIXROOT%\etc\master.passwd}}} and add the users that you need. You might want to add user pcguest (See step 4 why). Look here for [wiki:MasterPasswdSyntax syntax of master.passwd (and group)]!
     21When you downloaded the .zip file you have to procede the manual setup with the following steps:
    2922
    30  2. Remove the old {{{%UNIXROOT%\etc\pwd.db}}} and {{{%UNIXROOT%\etc\spwd.db}}} files.
     23 1. {{{SET UNIXROOT=x:}}} where {{{x:}}} is the drive that has a {{{/etc/}}} path. It is recommended to set {{{UNIXROOT=x:\MPTN}}} (where x: is your bootdrive), because %UNIXROOT%\etc and %ETC% point to the same directory and all the stuff is in one place then. In addition {{{SET TMPDIR=x:\tmp}}} where {{{x:\tmp}}} is any valid directory to put temporary files on.
    3124
    32  3. Run {{{%UNIXROOT%\usr\sbin\pwd_mkdb.exe %UNIXROOT%\etc\master.passwd}}}. This creates new pwd.db and swd.db files.
     25 2. 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.
    3326
    34  4. In {{{%ETC%}}} directory create {{{%ETC%\samba}}} directory, in {{{%ETC%\samba}}} create {{{%ETC%\samba\private}}}, {{{%ETC%\samba\pid}}} and {{{%ETC%\samba\lock}}} directories.
     27 3. Get the current [ftp://ftp.netlabs.org/pub/gcc/libc-0_6_3-csd3.wpi kLibc runtime]. It is recommended that you install the libc*.dll files using this package, even if they are already present on your system.
    3528
    36  5. 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]
     29 4. Edit {{{%UNIXROOT%\etc\master.passwd}}} and add the users that you need. You might want to add user pcguest (See step 4 why). Look here for [wiki:MasterPasswdSyntax syntax of master.passwd (and group)]!
    3730
    38 ''Note: The {{{%ETC%}}} path is not necessarily the same as {{{%UNIXROOT%\etc}}}.''
     31 5. Remove the old {{{%UNIXROOT%\etc\pwd.db}}} and {{{%UNIXROOT%\etc\spwd.db}}} files.
     32
     33 6. Run {{{%UNIXROOT%\usr\sbin\pwd_mkdb.exe %UNIXROOT%\etc\master.passwd}}}. This creates new pwd.db and swd.db files.
     34
     35 7. In {{{%ETC%}}} directory create {{{%ETC%\samba}}} directory, in {{{%ETC%\samba}}} create {{{%ETC%\samba\private}}}, {{{%ETC%\samba\pid}}} and {{{%ETC%\samba\lock}}} directories.
     36
     37 8. 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]
     38
     39''Note: The {{{%ETC%}}} path is not necessarily the same as {{{%UNIXROOT%\etc}}}, but it is recommended to make these two point to the same directory. You can achieve that by setting {{{SET UNIXROOT=x:\MPTN}}}.''
    3940
    4041''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.''
    4142
    42  6. 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.
     43 12. 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.
    4344To add a user called 'psmedley' run:
    4445
     
    4950''Note: The smbusers.exe [wiki:"Scripts and utilities" utility] perform both steps!''
    5051
    51  7. Start nmbd.exe and start smbd.exe.
     52 13. Start nmbd.exe and start smbd.exe.
    5253
    5354== SWAT: ==