### user authentication Mode###
#smbtree
#hostname
Note: NETBIOS names are restricted to 16 characters, however 15 characters are configurable
linuxcbt1.linuxcbt.internal=FQDN
#smbtree --help
#smbtree -U administrator
#redesk
#grep -i administrator /etc/passwd
#cd /etc/sfw/private
#tail /etc/passwd
#smbpasswd -a unixcbt
Note: smbpasswd - a unixcbt -create permitted samba user in /etc/sfw/private/smbpasswd
#ls -ltr
# cat smbpasswd
#rdesk 192.168,1,15 to windows
login as unixcbt
#ls -ltra ~unixcbt
#which smbpasswd
#smbpasswd -a root
#cat smbpasswd
login from windows to root
#smbpasswd -x root
#smbpasswd -e root
#smbapssed -d root
#cat smbpasswd
#ls -ltr
#cd /var/samba/log
#ls -ltr
#tail log.smbd
modify the log file directive in smb.conf
log file=/var/samba/log/log.%m
#/etc/init.d/samba stop&& /etc/init.d/samba start
#ls -ltr
#cat log.linuxcbtwin2
per machine log
#ps -ef|grep smbd
转载于:https://blog.51cto.com/johnnyxing/285573