net view /workgroup:workgroupname |
Force a browser election on the server. |
net view \\serverIP |
Test browseability on the client. Deduce whether failure to appear
on network neighborhood is due to quirky Windows Explorer. |
net use * \serverIP\sharename |
From client, access a share regardless of browseability. |
net use lpt8: \\serverIP\printcapPrinterName |
Anything copied to lpt8: is routed to the Samba printer |
net use |
Show all Samba resources used by the Win client. |
smbclient '//serverIP/sharename' -Uusername |
From a Linux box or the server, access a share regardless of browseability. |
smbclient -NL serverIP |
From Linux box, browse all browseable server resources. |
ping serverIP |
Test connectivity to rule out connectivity causes. |
tail -f log.nmb |
Watch nmbd log entries in real time. |
tail -f log.smb |
Watch smbd log entries in real time. |
testparm |
-
Test smb.conf for legality of entries
-
View Global Defaults
-
View all settings for Samba server
|
SWAT |
-
Current Settings
-
Default Settings
-
Available Settings
-
Primary Synonyms
-
One Click HTML Help
-
View Connection, Share and File Activity
WARNING: Never go in as root unless you really want to change something.
Even then, always back up before going in as root.
WARNING: SWAT can be a security problem, especially as root. |
man smb.conf |
Ultimate authority on substitution chars, commands, etc. |
/etc/rc.d/init.d/smb restart |
Restart Samba. Although not all smb.conf changes require a restart
to be effective, restart always to start from a known state. |
Tiny smb.conf |
Verify that Samba itself is working. Create a tiny setup whose every
line serves to reproduce a problem and/or exploit differences. |
Change workgroup name |
Reproduce browser timing problems on a Windows client. The client "remembers"
workgroup names between sessions. |
Make new share |
New share can reproduce the symptom, or fail to exhibit the symptom.
One of each enables exploitation of differences. |
Make your own log file |
Use preexec= and postexec=, with substitution variables and echo commands.
May need to use root preexec= and root postexec=. |
Make your own print command= |
Find out what Windows is sending to the printer. |