LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 821|回复: 1

samba共享 guest可以访问 有写目录guest无权访问,xp上无法更改用户名

[复制链接]
发表于 2006-10-18 16:40:39 | 显示全部楼层 |阅读模式
samba共享 guest可以访问 有写目录guest无权访问,xp上无法更改用户名

-----------------------我的smb.conf---------------------------------------
[global]
   workgroup = WORKGROUP
   netbios name = fileserver
   server string = Simlife Server
   hosts allow = 192.168.1.
;   printcap name = /etc/printcap
;   load printers = yes
;   printing = cups
; cups options = raw
guest account = guest
log file = /var/log/samba/%m.log
#   log file = /var/log/samba/smbd.log
   max log size = 50
   security = share
;   security = user
;   password server = <NT-Server-Name>
;  password level = 8
;  username level = 8
;  encrypt passwords = yes
;  smb passwd file = /etc/samba/smbpasswd
;  unix password sync = Yes
;  passwd program = /usr/bin/passwd %u
;  passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
;  username map = /etc/samba/smbusers
;   include = /etc/samba/smb.conf.%m
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
;   interfaces = 192.168.12.2/24 192.168.13.2/24
;   remote browse sync = 192.168.3.25 192.168.5.255
;   remote announce = 192.168.1.255 192.168.2.44
;   local master = no
;   os level = 33
;   domain master = yes
;   preferred master = yes
;   domain logons = yes
;   logon script = %m.bat
;   logon script = %U.bat
;   logon path = \\%L\Profiles\%U
; name resolve order = wins lmhosts bcast
;   wins support = yes
;   wins server = w.x.y.z
;   wins proxy = yes
   dns proxy = no
;  preserve case = no
;  short preserve case = no
;  default case = lower
;  case sensitive = no
dos charset = gb2313
unix charset = GB18030
#============================ Share Definitions ==============================
[SIMLIFE]
   comment = Simlife Share
   path = /usr/local/home/everything
   valid users = readman appman
   public = no
   writable = yes
   printable = no
   create mode = 0664
   directory mode = 0775

[YUNYING]
   comment = Simlife Share
   path = /usr/local/home/everything/optdoc
   valid users = readman appman yunying
   public = no
   writable = yes
   printable = no
   create mode = 0664
   directory mode = 0775
[ARTSWORK]
   comment = Simlife Share
   path = /usr/local/home/everything/artpro
   valid users = readman appman arts
   public = no
   writable = yes
   printable = no
   create mode = 0664
   directory mode = 0775
[BREW]
   comment = Simlife Share
   path = /usr/local/home/everything/brewpro
   valid users = readman appman brewpro
   public = no
   writable = yes
   printable = no
   create mode = 0664
   directory mode = 0775
[MUSICWORK]
   comment = Simlife Share
   path = /usr/local/home/everything/musicwork
   valid users = readman appman musicwork
   public = no
   writable = yes
   printable = no
   create mode = 0664
   directory mode = 0775
[GAMEDEV]
   comment = Simlife Share
   path = /usr/local/home/everything/gamepro
   valid users = readman appman yancp
   public = no
   writable = yes
   printable = no
   create mode = 0664
   directory mode = 0775
[FANYI]
   comment = Simlife Share
   path = /usr/local/home/fanyi
   valid users = fanyi
   public = no
   writable = yes
   printable = no
   create mode = 0664
   directory mode = 0775
[常用软件库]
        path = /var/ftp
        public = yes
        only guest = yes
        writable = no
        read only = yes
 楼主| 发表于 2006-10-19 09:10:41 | 显示全部楼层
怎么没人知道啊
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表