| 1 | '''How to get going with Samba Server for OS/2:''' |
| 2 | |
| 3 | 1.) Uninstall TCPBEUI (NETBIOS over TCPI/IP) using MPTS. |
| 4 | |
| 5 | 2.) {{{SET UNIXROOT=x:}}} where x: is the drive that has a /etc/ path. |
| 6 | |
| 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. |
| 9 | |
| 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. |
| 11 | |
| 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). |
| 13 | |
| 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. |
| 15 | |
| 16 | 5.) Remove the old {{{%UNIXROOT%\etc\pwd.db}}} and {{{%UNIXROOT%\etc\spwd.db}}} files. |
| 17 | |
| 18 | 6.) Run {{{%UNIXROOT%\usr\sbin\pwd_mkdb.exe %UNIXROOT%\etc\master.passwd}}}. This creates new pwd.db and swd.db files. |
| 19 | |
| 20 | 7.) Edit smb.conf which should be put into %ETC%\samba\* |
| 21 | |
| 22 | Note %ETC% path is not necessarily the same as %UNIXROOT%\etc! |
| 23 | |
| 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 |
| 25 | |
| 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. |
| 27 | To add a user called 'psmedley' run: |
| 28 | |
| 29 | {{{smbpasswd -a psmedley}}} (enter password). |
| 30 | |
| 31 | Note: Currently users cannot be renamed. |
| 32 | |
| 33 | Note: The UserAddPM.EXE and UserDelPM.EXE utilities perform both steps! |
| 34 | |
| 35 | 9.) Start nmbd.exe and start smbd.exe. |