Changes between Version 18 and Version 19 of Cookbook
- Timestamp:
- Feb 15, 2010, 9:11:17 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Cookbook
v18 v19 2 2 [[PageOutline]] 3 3 4 This page provides a quick cookbook to setup a simple Samba Server on eComstation & OS/2. 4 This 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. 5 5 6 6 == Prerequsites for all Samba installations (both manual and WPI: == … … 24 24 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. 25 25 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. 27 27 28 28 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. 29 29 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. 31 31 32 32 5. Remove the old {{{%UNIXROOT%\etc\pwd.db}}} and {{{%UNIXROOT%\etc\spwd.db}}} files. … … 38 38 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] 39 39 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}}}.'' 41 41 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}}}.'' 43 43 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. 46 45 47 {{{smbpasswd -a psmedley}}} (enter password). 46 To add a user called 'root' run: 48 47 49 ''Note: Currently users can only be renamed from a Windows client.'' 48 {{{smbpasswd -a root}}} (enter password). 50 49 51 ''Note: The smbusers.exe [wiki:"Scripts and utilities" utility] perform both steps!'' 50 To add the user 'guest' run: 52 51 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. 54 61 55 62 == SWAT: ==