Changes between Version 18 and Version 19 of Cookbook


Ignore:
Timestamp:
Feb 15, 2010, 9:11:17 AM (15 years ago)
Author:
Herwig Bauernfeind
Comment:

Clarify, fix structure and add several bits of information

Legend:

Unmodified
Added
Removed
Modified
  • Cookbook

    v18 v19  
    22[[PageOutline]]
    33
    4 This page provides a quick cookbook to setup a simple Samba Server on eComstation & OS/2.
     4This page provides a quick cookbook to setup a simple Samba Server on eComstation & OS/2. However it is strongly recommended to read the [http://samba.org/samba/docs/man/Samba-HOWTO-Collection/ Samba HOWTO-Collection] before attempting to install Samba manually. Although it is at Samba 3.2 level, more than 95% also apply to our Samba 3.0 and Samba 3.3 ports.
    55
    66== Prerequsites for all Samba installations (both manual and WPI: ==
     
    2424 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.
    2525
    26  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.
     26 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. All other directories are not required by Samba.
    2727
    2828 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.
    2929
    30  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)]!
     30 4. Edit {{{%UNIXROOT%\etc\master.passwd}}} and add the users that you need. You have to add at least a user named "root" and a user named "guest" (See step 4 why). Look here for [wiki:MasterPasswdSyntax syntax of master.passwd (and group)]! Please note that you can leave the password field in master.passwd empty or set it to * as the password in this file is never used.
    3131
    3232 5. Remove the old {{{%UNIXROOT%\etc\pwd.db}}} and {{{%UNIXROOT%\etc\spwd.db}}} files.
     
    3838 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]
    3939
    40 ''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}}}.''
     40 ''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}}}.''
    4141
    42 ''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.''
     42 ''Note: In older Samba builds 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}}}.''
    4343
    44  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.
    45 To add a user called 'psmedley' run:
     44 9. Now Samba '''requires the users to be added using smbpasswd.exe, too'''. You have to add all users twice: First to {{{%UNIXROOT%\etc\master.passwd}}} (see step 3), then using smbpasswd.exe.
    4645
    47 {{{smbpasswd -a psmedley}}} (enter password).
     46 To add a user called 'root' run:
    4847
    49 ''Note: Currently users can only be renamed from a Windows client.''
     48 {{{smbpasswd -a root}}} (enter password).
    5049
    51 ''Note: The smbusers.exe [wiki:"Scripts and utilities" utility] perform both steps!''
     50 To add the user 'guest' run:
    5251
    53  13. Start nmbd.exe and start smbd.exe.
     52 {{{smbpasswd -a guest -n}}} The guest account does not have a password.
     53
     54 ''Note: In case either 'root' or 'guest' account is missing you will run into several problems. Samba relies upon these 2 accounts to be present.''
     55
     56 ''Note: Currently users can only be renamed from a Windows client.''
     57
     58 ''Note: The smbusers.exe [wiki:"Scripts and utilities" utility] perform both steps!''
     59
     60  10. Start nmbd.exe and start smbd.exe.
    5461
    5562== SWAT: ==