SAMBA.HTM FILE ABOUT CONFIGURING SAMBA
SERVER
UPDATED ON 28/7/03 WITH THE NEW INSTALLATION
later version of Slackware has auto samba startup in rc. files
FIRST READ THE NOTES /USR/DOC/SAMBA-2.2.0a/textdocs now in PDFformat !!!!!
if you have loaded all the linux stuff to the Hdd when youinstalled slakware 2.2.18 in the beginning
on to your HDD at least2Gb space required
command line startup make up a /etc/rc.d/rc.samba bootfile
and put this entry into it
smbd -D
nmbd -D
config file
/etc/samba/smb.conf need to be edited first
then read usr/doc/samba1.9/faq/diagnosis.txt
first make sure on Linux box
/etc/rc.d/rc.inet1 is configured properly for IP address
also check /etc/hosts
/etc/hosts.allow
add both server & client IP addresses
SLAKWARE V7 copy /usr/doc/samba-2.0.7/examples/smb.conf.default
to /etc/smb.conf
copying compiles the file and puts it in the /etc directory
as smb.conf.sample cp to /etc/smb.conf ie keep backup.sample
then edit in joe as required ..
when finished edits run command testparm /etc/smb.conf
to check edits are alright
in /etc/smb.conf remove comment from
[public]
path=/usr/somewhere/else/public
use this as /public public dont have copy/writeto permission..
then mkdir in /usr somewhere/else/public
(you could try and edit the file before compiling)
this now works ok have got directories
/etc /public /fred's from win95 netowrk neighborhood to
linux net1 ..
WINDOWS 3.11
TEST1
testing server
testparm smb.conf
smbclient -L SERVERNAME
testing tcp/ip conection
in windows \networks setup net card drivers
TEST2
you can use ftp/telnet in win3.11 wfw32 extension:
finally got this to work at home 10/2/03 *******
had to enable in /etc/smb.conf
use same name for WORKGROUP
ip of win3.11 pc 199.1.1.9
DNS service = yes
WINS = no
TEST3
test tcp/ip connection is working
using ping in windows3.11
run windows 3.11 shell to dos
from client ping LinxName
from server ping ClientName
TEST 4
nmblookup -B SERVERNAME _SAMBA_
namlookup -B ACLIENT '*'
WINDOWS 95
finally got SAMBA running in WIN95 client D.B.H 9/3/03
SEE HERE FOR CLIENT SETTING*******IN WINDOWS O/S
win/ctrl/networks
tcp/ip properties
enable NE2000 net card ip 192.168.100.11 = net2
enter local (client) host name = net2
enable DNS ip of sambaserver (server) 192.168.100.10
disable WINS
SECURITY LOG ON SET TO share MOST IMPORTANT TO GET THE SAMESETTING'S ON WIN & LINUX
bindings (services) msclient/fileptr share/pwebserv
edit hosts.sam ????
reboot
test connection with dosbox/ping server name
********************************************************
SETTINGS FOR WIN95**************24/7/03
mycomp/networks
access control = share level
id = net1/net2 workgroup
client mocrosoft networks = workgroup quick logon
logon = windows logon
file and printer sharing = enabled
tcp/ip = DNS host = linux box (ie net1/2)
domain = workgroup
dns serverip number = other box
WINS = disable
COMMON LOGONS FOR LINUX AND WINDOWS **********************
logon name and passwd must be same from each machine !!!
root passwd
**************************************************************
SETTINGS FOR WIN98 25/7/2003 D.B.H
**************************************************************
regedit win98 to remove encription on passwds
read windows/network.txt
insert reg Vnetsetup EnablePlainTextPassword 1
now logs on to net2 OK yes!! yes!!
insmod for loaded modules
reboot to restart linux
append /etc/exports file for directories ..
ENABLED AT HOME ON LINUX 2.4.18 NIC = ne 2k io=0x300
NOW WORKING 12/7/2003 D.B.H
SEE HERE FOR LINUXBOX SETTING*************************
first get tcp/ip working
edit rc.inet1 server ip address
edit hosts to include all hosts including selfhost (server)
edit hosts.allow as above
edit exports with directory name's in Linux disk
test with ping clientname
make a cp of smb.conf-sample to /etc/samba/smb.conf
edit /etc/samba/smb.conf this is the file samba reads at boot
dont forget to set to windows networking group like below..
workgroup=WORKGROUP
SECURITY SET LOGON FROM WINDOWS
in smb.conf security = user
security = share whatever in WIN95 MACHINE
server string = Samba (win95showname)
note in win95 dialogue box set viewer to details
to see the above name......
hosts allow = all client ip's
domain logons = yes
WINS comment these out
path settings to directories in linux must be set properly !!
[public]
comment = whatever
path = /public
public = yes
writable = yes
printable = no
# add access to cdrom drive on linux /dev/hda2
# cd-rom must be mounted on linux drive first before read
mount /dev/hdc -t iso9660 /cdrom
[cdrom]
comment=cd in linux
path=/cdrom
public=yes
mkdir /home/samba/public put welcome message here
sharing win95 directorys through Linux samba to win3.11.
dont work on NTFS !!! nt4/5/
edit smb.conf to this
[win95]
comment = mswindows
path = /win95 (access to win95 diectories thro linux)
public = yes
writable = no
browsable = yes
this works ok !! 10/3/2000
disconnect shared network drive in win 3.11 before closing
this way you will be able to use server machine for both
Linux and win95 service from client win 3.11.
leave the browser option on in win 3.11 filemangr/networking
TO MAKE IT EASIER TO LOG ON FROM A WINDOWS MACHINE TO
A LINUX SAMBA SERVER SET root machinename as the
NETWORK LOGON TO WINDOWS NETWORKING
ctrlpan/network/client for msnetworks.. reboot then set in logondialogue box..
THEN YOU WILL BE ABLE TO
GO STRAIGHT INTO THE samba/win95 WITHOUT HAVING TO ENTER APASSWD
try running ms word ms wordpad thro Linux SAMBA SERVER ..
try saving to Linux / win95/personal
notes from 22/11/2001 D.B.H.
SETTING UP ENCRYPTED PASSWORDS..
WIN 95/98/W2K ALL NOW HAVE PASSWD ENCRYPTION ENABLED SOLINUX/SAMBA HAS TO BE SET TO LIKEWISE TO ALLOW LOGGING ON ..
LINUX FIRST EDIT /ETC/LOGIN.DEFS TO INCLUDE MD5 CRYPT ENABLE YES
THEN /ETC/SMB.CONF ENCRYPT PASSWDS = YES
THEN ADD AN ACCOUNT TO LINUX WITH ADDUSER..AND EDIT
WINDOWS FILES XXXX.PWL TO SET UP SAME NETWORK LOGON PASSWD..
ON WINDOWS CLIENT MACHINE..
starting samba
edit /etc/rc.d/rc.samba as follows
echo "STARTING SAMBA SERVER"
smbd -D
nmbd -D
WHEN IT'S ALL WORKING MAKE A BACKUP TO LINUX DISK OF CONFIG FILES
smb.conf
hosts
hosts.allow
export
rc.samba
rc.modules
XII86Config
rc.inet1/2