What this document covers:
Please note that every bit of this information is available in the docs/ directory of the Samba distribution. I am attempting to make life easier for those new to installing Samba, but not new to Unix, and possibly the MS world.
What this document does *not* cover:
After you have built the source, and installed it somewhere (/usr/local/samba) you will need to edit the file /usr/local/samba/lib/smb.conf. This file contains all of the relevant information pertaining to your site's setup. There are multiple sections to this, indicated with a [ section ].
First, the [global] section:
[global] # The default items Samba comes with work okay, remember to modify: guest account = pcguest (I suggest nobody for security reasons) printing = bsd (or: sysv, aix) [homes] # This section creates the default shares of: \\machinename\usernameThe rest of the smb.conf file is self-explanitory.
encrypt passwords = yes smb passwd file = /etc/smbpasswd # or wherever
It simply will not work. To create this file, after you have set the option within your smb.conf file, but before you have restarted the smb server:
cat /etc/passwd | mksmbpasswd.sh > /tmp/smbpass.tmpThen, remove all system users, such as:
smbpasswd usernameOnce this is set up, the user will be able to login to your domain and proceed as permitted.
Actual Execution:
[global] os level = 34 (or whatever number, up to 255)
Very simple:
[global] interfaces = 192.168.2.10/24 192.168.3.10/24Or:
interfaces = 192.168.2.10/255.255.255.0 192.168.3.10/255.255.255.0
share modes = yes
locking = yes
However, if users are simply launching applications from the server, or retrieving data such as MS Office modules (Book Shelf, Encarta, etc) instead of housing all of the executables on the local PC, Samba will perform very well. There are a number of methods to install various applications both on the server and on the PC, please familiarize yourself with these before attempting to load the entire thing on the server.
Some potential applications:
File Sharing
Program Installation base
Launching programs directly from the server
An example:
[OFFICE] path = /path/to/office comment = "Microsoft Office Version X.x" read only = no available = yes share modes = yes (to allow real file share modes) locking = yes (to perform actual locking) . . .Accessing this volume would look like:
\\server\OFFICE\office\msoffice.exeThe above would launch the Office toolbar.
/etc/inetd.conf netbios-ssn stream tcp nowait root /usr/local/sbin/tcpd /usr/local/samba/bin/smb d netbios-ns dgram udp wait root /usr/local/sbin/tcpd /usr/local/samba/bin/nmbd /etc/services netbios-ns 137/udp netbios-ssn 139/tcp
[global] password server = Your_Windows_NT_Server_NameIs in the smb.conf file, it will redirect access authentication to the NT domain controller. Samba will perform the domain logon process using either the redirect method, or the passwd method.
[global]
security = user (Or) security = server
...
[netlogon]
path = /data/dos/netlogon
writeable = no
guest ok = yes
domain logons = yes
logon script = %U.bat (%U is a var for the username)
Tip: Be sure to edit the .bat files with an editor capable of generating the
MSDOS cr/lf combos, otherwise things will become odd quickly.