Professional Documents
Culture Documents
From: http://www.troubleshooters.com/tpromag/199910/199910.htm Note: If accessing from Win98, the following W!" nee#s to be put in the registr$: %nable&lain'e(t&asswor# &ut it in: )*%+,-!./-,0/.)IN%12$stem1.urrent.ontrol2et12er3ices14( 14N%'25& -et6s assume $ou ha3e a networ7 in place an# $our Win#ows an# -inu( bo( can ping each other. If $ou63e ne3er set up 2amba, create this proof of concept smb.conf after backing up your existing /etc/smb.conf: encrypt passwords=yes workgroup=Seaside netbios name=LinuxBox [homes] Italici8e# workgroupname shoul# be replace# with the wor7group name from $our Win#ows bo(6s networ7ing properties:I#entification tab:Wor7group fiel#. 5se the same case as on that fiel#. Italici8e# servername shoul# be replace# with $our -inu( bo(6s name, as re3eale# b$ the hostname comman#, less an$ #omain name suffi(es. 5se the same case as re3eale# b$ hostname. For instance, if hostname #ispla$e# myserver.mydomain.cxm, $ou woul# simpl$ replace servername with myserver. Ne(t set $ourself up as a user on the 2amba ser3er. -et6s sa$ $ou use username m$ui# on the Win#ows bo(. )ere6s what $ou #o: useradd myuid passwd myuid smbpasswd -a myuid /ll passwor#s shoul# be the same as the one on the Win#ows &.. While the$ can be #ifferent, on a first tr$ it6s best to 7eep all passwor#s for m$ui# the same. Now restart 2amba. 'he comman# is slightl$ #ifferent on #ifferent -inu( #istros. )ere6s a partial list: rcsmb start starts the ser3ice rcsmb stop stops the ser3ice Now start Win#ows %(plorer, an# browse from Networ7 Neighborhoo# to 9%ntire Networ79 to groupname to servername to $our username, an# browse. +ou6ll notice $ou6re actuall$ browsing $our 5ni( bo(6s home #irector$. 'his is the result of the :homes; share $ou place# in smb.conf.
'he prece#ing pro3e# 2amba is running an# browseable, at least from the -inu( bo( itself. Note that if a share that shoul# be browseable an# is not, an# if the following test succee#s, $ou probabl$ ha3e a browsabilit$ problem in smb.conf. 0a7e sure the share has a browseable=yes, an# use testparm to ma7e sure that the global section has or #efaults to browse list=yes. It6s also han#$ to place browseable=yes in the global section. If, after the abo3e reme#iation attempts, either of the pre3ious smbclient tests is still failing, continue on to !ther 2er3er 'ests. !therwise, .ontinue on to oes 2amba Wor7 on the Win#ows .lientA.
%t er Server Tests
If both the pre3ious tests wor7e# correctl$, the problem is not on $our -inu( bo( or 2amba setup. It6s either in $our networ7 or $our Win#ows bo(. )owe3er, if the$ #on6t wor7, the problem is on $our -inu( bo(, so $ou6ll nee# more tests: tests $our /etc/smb.conf for errors, an# #ispla$s such errors an# warnings. Fi( all errors an# testparm warnings before further troubleshooting. .hec7s for a running smb#. Without one, 2amba #oesn6t wor7. If no smb# is foun#, restart samba ps a( B grep as #escribe# in the 2amba in 10 0inutes article. If it won6t restart correctl$, troubleshoot CthatC smb# problem before continuing. .hec7s for a running nmb#. Without one, 2amba #oesn6t wor7. If no nmb# is foun#, restart samba ps a( B grep as #escribe# in the 2amba in 10 0inutes article. If it won6t restart correctl$, troubleshoot CthatC nmb# problem before continuing. ping the ser3er6s 5suall$ a loss of networ7 connecti3it$ will not pre3ent local 2amba usage, but this is too eas$ a test I& a##ress to ignore. Fi( this connecti3it$ problem before continuing. !nce smbclient can browse an# access shares on the -inu( bo(, it6s time to troubleshoot from Win#ows.
os level=), local master=yes domain master=yes 5suall$ a browser election is won within G0 secon#s of the e3ent starting it. +ou can real?time witness the winning of a browser election b$ 3iewing the output of the this comman#: tail -% log.nmb Note that log.nmb is in #ifferent places in #ifferent #istros. !n "e# )at H it6s in /3ar/log/samba.
"*+,-%S*S.txt
'his article6s purpose was prett$ much to e(plain preliminar$ 2amba troubleshooting in #i3i#e an# con=uer terms. )owe3er, the correct wa$ in the 2amba worl# is to follow /n#rew 'ri#gell6s pre#efine# #iagnostic locate# in file I/IN!2I2.t(t, which is a3ailable in the #istribution #ocumentation. !n "e# )at H it6s at /usr/#oc/samba?<.0.G/#ocs/te(t#ocs/ I/IN!2I2.t(t. Follow this ten step pre#efine# #iagnostic, an# #o not continue past a step that fails. If $ou get stumpe# an# nee# tech support, be sure to sen# them the results $ou obtaine# in this pre#efine# #iagnostic.
.iner Testing
'he testing in this article an# in I/IN!2I2.t(t helps $ou narrow the problem to the nearest subs$stem within two minutes. !ften other steps are necessar$ to further narrow it. '$picall$ these in3ol3e e#iting smb.conf an# restarting samba. &lease 7eep in min# that the easiest, =uic7est an# most reliable tests in3ol3e small smb.conf files, not a <00 line whopper. "emember stan#ar# 'roubleshooting tactics such as #i3i#e an# con=uer, fin#ing commonalities, an# e(ploiting #ifferences. If it6s a li3e ser3er that cannot be restarte# or e(perimente# with, tr$ to repro#uce the problem on a #ifferent machine an# troubleshoot it there.