| 24 | | 3.) Unzip ftp://ftp.netlabs.org/pub/gcc/alpha/baselayout.zip to the %UNIXROOT% drive. Among other directories this creates the required /etc directory. |
| 25 | | |
| 26 | | 4.) Edit {{{%UNIXROOT%\etc\master.passwd}}} and add the users that you need. You might want to add user pcguest (See step 6 why). |
| 27 | | |
| 28 | | 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. |
| 29 | | |
| 30 | | 5.) Remove the old {{{%UNIXROOT%\etc\pwd.db}}} and {{{%UNIXROOT%\etc\spwd.db}}} files. |
| 31 | | |
| 32 | | 6.) Run {{{%UNIXROOT%\usr\sbin\pwd_mkdb.exe %UNIXROOT%\etc\master.passwd}}}. This creates new pwd.db and swd.db files. |
| 33 | | |
| 34 | | 7.) Edit smb.conf which should be put into %ETC%\samba\* |
| 35 | | |
| 36 | | Note %ETC% path is not necessarily the same as %UNIXROOT%\etc! |
| 37 | | |
| 38 | | 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 |
| 39 | | |
| 40 | | 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. |
| 41 | | To add a user called 'psmedley' run: |
| 42 | | |
| 43 | | {{{smbpasswd -a psmedley}}} (enter password). |
| 44 | | |
| 45 | | Note: Currently users cannot be renamed. |
| 46 | | |
| 47 | | Note: The UserAddPM.EXE and UserDelPM.EXE utilities perform both steps! |
| 48 | | |
| 49 | | 9.) Start nmbd.exe and start smbd.exe. |
| 50 | | |
| 51 | | |
| 52 | | [[BR]]'''[wiki:"Currently tested clients:"]'''[[BR]] |
| 53 | | |
| 54 | | |
| 55 | | '''Known Issues''' |
| 56 | | Look at http://svn.netlabs.org/samba/report/1 [[BR]] |
| 57 | | |
| 58 | | '''Samba scripts and utilities''' contributed by Herwig Bauernfeind:[[BR]][[BR]] |
| 59 | | '''smb_init-*.zip package:'''[[BR]] |
| 60 | | - smb.cmd - extended port of *nix shell script to start/stop/restart Samba.[[BR]][[BR]] |
| 61 | | '''findsmb-*.zip package:'''[[BR]] |
| 62 | | - findsmb.cmd - port of *nix script to find SMB machines on the current or a given subnet[[BR]][[BR]] |
| 63 | | '''sharescripts-*.zip package:'''[[BR]] |
| 64 | | - addshare.cmd - external command script to add Samba shares from a client (tested with WinXP only)[[BR]] |
| 65 | | - delshare.cmd - external command script to remove Samba shares from a client (tested with WinXP only)[[BR]] |
| 66 | | - changeshare.cmd - external command script to modify Samba shares from a client (tested with WinXP only)[[BR]][[BR]] |
| 67 | | |
| 68 | | All these packages can be found at ftp://ftp.netlabs.org/pub/samba/contrib [[BR]] |
| 69 | | Additional/later scripts and utilities for Samba can also be found here: http://members.aon.at/herwig.bauernfeind/samba/index.html [[BR]] |
| 70 | | [[BR]] |
| | 24 | === Useful Samba [wiki:"Scripts and utilities" scripts and utilities] === |