smb

smbclient (mount, Windows XP, SFS, file sharing)

Since I always use some GUIs, I don't really remember anymore how to connect to a Windows machine via the command line. smbclient -L windowshost shows you the shares that are available. Often, you you cannot browse them without a login/password for that windows machine, therefore you need to type smbclient -L windowshost -U username And occasionally the netbios name doesn't work either and you need to replace it by the IP address.

Restricting Samba access on SuSE 10.1 to one IP

When you allow Samba access to your SuSE 10.1 machine by using the YaST firewall setup tool, three changes are made to /etc/sysconfig/SuSEfirewall2:

  1. FW_SERVICES_EXT_TCP="" is changed into FW_SERVICES_EXT_TCP="microsoft-ds netbios-ssn"
  2. FW_SERVICES_EXT_UDP="" is changed into FW_SERVICES_EXT_UDP="netbios-dgm netbios-ns"
  3. FW_ALLOW_FW_BROADCAST_EXT="" is changed into FW_ALLOW_FW_BROADCAST_EXT="netbios-ns netbios-dgm"

The respective portnumbers for the serveices are:

Pages