CentOS下面配置 Samba

来源:互联网 发布:linux 一键安装 编辑:程序博客网 时间:2024/05/16 09:20

#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.confrlimit_max: rlimit_max (1024) below minimum Windows limit (16384)Processing section "[homes]"Processing section "[printers]"Loaded services file OK.Server role: ROLE_STANDALONEPress enter to see a dump of your service definitions


原创粉丝点击