ITPub博客

首页 > Linux操作系统 > Linux操作系统 > gentoo samba 配置

gentoo samba 配置

原创 Linux操作系统 作者:ilsyx 时间:2011-08-17 15:12:39 0 删除 编辑

1.配置文件

 # cat /etc/samba/smb.conf
[global]
       workgroup = MYGROUP
       netbios name = SAMBA
       server string = samba server %v
       map to guest = Bad User
       log file = /var/log/samba/log.%m
       max log size = 2000
       socket ptions = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
       preferred master = No
       local master = No
       null passwords = true
#       dns proxy = No
#       security = User
#   printcap name = cups
#   load printers = yes
#   printing = cups


# Share

#[aMule]
#       path = /home/oracle/.aMule/Incoming
#       valid users = oracle
#       read nly = No
#       create mask = 0644
#       directory mask = 0755
#       writable = yes
#[hda2]
#       path = /mnt/d
#       valid users = oracle
#       read nly = No
#       create mask = 0644
#       directory mask = 0755

#[public]

#   path = /sda3/.aMule/Incoming
#   public = yes
#   only guest = no
                                         
#[sda5]
#       path = /mnt/sda5
#       valid users = oracle
#       read nly = No
#       create mask = 0644
#       directory mask = 0755
##       writable = yes

[data]

       path = /data/share
       valid users = xiaoy,oracle
       read nly = yes
       create mask = 0644
       directory mask = 0755
       writable = yes
[home]
#至下生效
       path = /home
       valid users = oracle
       read nly = YES
       create mask = 0644
       directory mask = 0755
       writable = yes
       browseable= no
#[mnt]
#       path = /mnt
#       valid users = oracle
#       read nly = yes
#       create mask = 0644
#       directory mask = 0755
#       writable = yes


2.添加用户

#smbpasswd -a oracle

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11780477/viewspace-705127/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-06-12

  • 博文量
    194
  • 访问量
    596450