by Ras
18. June 2012 17:31
Notes about Samba Client and Server on Solaris
### Samba client##
1. smbtree -network neighborhood text utility, enumerates workgroups, hosts, shares
smbtree -b - relies upon broadcasts for resolutions workgroups/hosts
smbtree -D - echoes discovered workgroups using broadcast/master browser
2. smbclient - allows to connect to the share
smbclient service_name(//hostname/sharename)
smbclient -U username //hostname/sharename - connect with username
smbclient -L servername - enumerates the shares of the server
smbclient -A ./.smbpasswd //servername/sharename
.smbpasswd includes:
username=unixcbt
password=abc123
smbtar -faciliates backups of remote shares
smbtar -s servername -x sharename -t sharename.tar
### samba server ###
smbd - files & print sharing
SMB - TCP 139
CIFS - TCP 445
nmbd - handles netbios names using primarily UDP connectivity
UDP 137 & 138
/etc/passwd
/etc/sfw/smbpasswd - handles translation of windows auth to unix
/etc/sfw/smbusers - translation between unix & windows users