免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: happymood
打印 上一主题 下一主题

[samba] samba的问题 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2008-07-12 10:44 |只看该作者
原帖由 happymood 于 2008-7-12 01:55 发表

writeable = yes
        comment = share
        path = /home/jing
        writeable = yes
        comment = share
        path = /root
        workgroup = ggyy
        server string = WORKGROUP
        password server = 123
        security = SERVER
        guest ok = yes
        guest account = adm
        comment = /home/jing
        browseable = no
        writeable = yes


上面这端, 是global小节吗?
里面怎么有2个path?
把你的完成的smb.conf发出来, 我感觉你的global不对。
你可以用 testparm测试一下你的smb.conf 看看有啥问题

论坛徽章:
0
12 [报告]
发表于 2008-07-12 10:59 |只看该作者
原帖由 刘世伟 于 2008-7-12 10:44 发表


上面这端, 是global小节吗?
里面怎么有2个path?
把你的完成的smb.conf发出来, 我感觉你的global不对。
你可以用 testparm测试一下你的smb.conf 看看有啥问题

      [global]
        writeable = yes
        comment = share
        path = /home/jing
        writeable = yes
        comment = share
        path = /root
        workgroup = ggyy
        server string = WORKGROUP
        password server = 123
        security = share
        guest ok = yes
        guest account = adm
        browseable = yes
        writeable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
;   comment = Network Logon Service
;   path = /home/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
;    path = /home/profiles
;    browseable = no
;    guest ok = yes


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[root]
[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
# Set public = yes to allow user 'guest account' to print
        printable = yes

# This one is useful for people to share files
;[tmp]
;   comment = Temporary file space
;   path = /tmp
;   read only = no
;   public = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
;   comment = Public Stuff
;   path = /home/samba
;   public = yes
;   read only = yes
;   write list = @staff

# Other examples.
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
;   comment = Fred's Printer
;   valid users = fred
;   path = /homes/fred
;   printer = freds_printer
;   public = no
;   writable = no
;   printable = yes

# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
;   comment = Fred's Service
;   path = /usr/somewhere/private
;   valid users = fred
;   public = no
;   writable = yes
;   printable = no

# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %u option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
;  comment = PC Directories
;  path = /usr/pc/%m
;  public = no
;  writable = yes

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
;   path = /usr/somewhere/else/public
;   public = yes
;   only guest = yes
;   writable = yes
;   printable = no

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
;   comment = Mary's and Fred's stuff
;   path = /usr/somewhere/shared
;   valid users = mary fred
;   public = no
;   writable = yes
;   printable = no
;   create mask = 0765


        guest ok = yes
        writeable = yes


[jing]
        path = /home/jing
        writeable = yes
        comment = share
"/etc/samba/smb.conf" 128L, 3437C written
[root@ora-db ~]# less /etc/samba/smb.conf
       [global]
        writeable = yes
        comment = share
        path = /home/jing
        writeable = yes
        comment = share
        path = /root
        workgroup = ggyy
        server string = WORKGROUP
        password server = 123
        security = share
        guest ok = yes
        guest account = adm
        browseable = yes
        writeable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
;   comment = Network Logon Service
;   path = /home/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
;    path = /home/profiles
;    browseable = no
;    guest ok = yes


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[root]
[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
# Set public = yes to allow user 'guest account' to print
        printable = yes

# This one is useful for people to share files
;[tmp]
;   comment = Temporary file space
;   path = /tmp
;   read only = no
;   public = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
;   comment = Public Stuff
;   path = /home/samba
;   public = yes
;   read only = yes
;   write list = @staff

# Other examples.
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
;   comment = Fred's Printer
;   valid users = fred
;   path = /homes/fred
;   printer = freds_printer
;   public = no
;   writable = no
;   printable = yes

# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
;   comment = Fred's Service
;   path = /usr/somewhere/private
;   valid users = fred
;   public = no
;   writable = yes
;   printable = no

# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %u option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
;  comment = PC Directories
;  path = /usr/pc/%m
;  public = no
;  writable = yes

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
;   path = /usr/somewhere/else/public
;   public = yes
;   only guest = yes
;   writable = yes
;   printable = no

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
;   comment = Mary's and Fred's stuff
;   path = /usr/somewhere/shared
;   valid users = mary fred
;   public = no
;   writable = yes
;   printable = no
;   create mask = 0765


        guest ok = yes
        writeable = yes


[jing]
        path = /home/jing
        writeable = yes
        comment = share
(END)

论坛徽章:
0
13 [报告]
发表于 2008-07-12 11:04 |只看该作者
原帖由 刘世伟 于 2008-7-12 10:44 发表


上面这端, 是global小节吗?
里面怎么有2个path?
把你的完成的smb.conf发出来, 我感觉你的global不对。
你可以用 testparm测试一下你的smb.conf 看看有啥问题

Tks
OK了,谢谢!

论坛徽章:
0
14 [报告]
发表于 2008-07-12 11:18 |只看该作者
原帖由 happymood 于 2008-7-12 11:04 发表

Tks
OK了,谢谢!



我觉得问题应该在global小节, 清理一下就行了。

建议使用webmin来管理 samba,  然后看看webmin怎么修改的smb.conf

论坛徽章:
0
15 [报告]
发表于 2008-07-12 11:42 |只看该作者
原帖由 刘世伟 于 2008-7-12 11:18 发表



我觉得问题应该在global小节, 清理一下就行了。

建议使用webmin来管理 samba,  然后看看webmin怎么修改的smb.conf

好的, 谢谢
我是不是要送一点分给你,伟同学,

论坛徽章:
0
16 [报告]
发表于 2008-07-12 12:03 |只看该作者
你的分也不多, 就算了吧。 哈哈。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP