读书人

samba使用小结

发布时间: 2013-09-16 13:45:21 作者: rapoo

samba使用总结
1、安装
#rpm -qa | grep samba
#yum install samba

2、配置
cat /etc/samba/smb.conf

[global]workgroup = workgroupserver string = samba serversecurity = usermap to guest = bad user[resources]comment = public stuffpath = /opt/share/resourcespublic = yesonly guest = yeswritable = yesguest ok = yes#[Porject]#path = /opt/Porject#public = no#only guest = no#writable = yes


3、启动
service smb start

4、加入开机自动启动
chkconfig --level 3 smb oncat /etc/selinux/config# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of enforcing.# disabled - SELinux is fully disabled.SELINUX=disabled

读书人网 >开源软件

热点推荐