samba使用小结
samba使用总结1、安装#rpm -qa | grep samba#yum install samba2、配置cat /etc/samba/smb.conf[global]work
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