ITeye博客

samba使用总结

pcpig · 2013-09-10 14:17 · 问题整理,工作总结 · 开源软件 · Markdown

1、安装 #rpm -qa | grep samba #yum install samba

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


[global]
workgroup = workgroup
server string = samba server
security = user
map to guest = bad user

[resources]
comment = public stuff
path = /opt/share/resources
public = yes
only guest = yes
writable = yes
guest ok = yes

#[porject]
#path = /opt/Porject
#public = no
#only guest = no
#writable = yes

3、启动 service smb start

4、加入开机自动启动 chkconfig --level 3 smb on

评论(1)

  1. #1 楼 · pcpig · 2013-09-12 17:34

    如果不能写的话,尝试修改一下配置文件

    cat  /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
    

评论功能维护中,当前仅展示历史评论。