samba useful commands
Check whether the config file smb.conf is correct
# testparm
List connected users and locked files
# smbstatus
List the shares of a host
# smbclient -L <host> -N
Lookup NetBIOS names
# nmblookup -S <host>
Mount a remote shared filesystem
# mount -t smbfs -o fmask=644,dmask=755,uid=,guest //<host>/<share> /mnt
Send a WinPopup message
# echo "message" | smbclient -M <NetBIOS_name>
Leave a Reply