CentOS下面配置 Samba

#yum -y install samba samba-client samba-common

#cp /etc/samba/smb.conf /etc/samba/smb.conf.default

#vi /etc/samba/smb.conf

workgroup = MYGROUP >> workgroup = WORKGROUP

#smbpasswd -a test

#service smb restart

#smbclient -L IP -U test

如果没有关掉SELinux 报错 "session setup failed: NT_STATUS_LOGON_FAILURE" 

# vi /etc/selinux/config

SELINUX=enforcing >> SELINUX=disabled

#reboot


查看smb.conf 配置文件的合法性使用

#testparm

Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions


你可能感兴趣的:(windows,centos,session,service,File,processing)