LinuxSir.cn,穿越时空的Linuxsir!

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

请大家看看我的samba配置那些地方不对阿

[复制链接]
发表于 2003-5-23 09:59:10 | 显示全部楼层 |阅读模式
首先说一下我的环境,RedHat 7.1
uname -a 结果:
Linux localhost.localdomain 2.3.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown

这个linux是安装在一台win2000的vmware4的虚拟机上,win2000系统的ip为192.96.1.99,linux系统的ip:192.96.1.98,如果我把下面[global]中的workgroup改为win2000所在的win2000的域:mi_domain,则所在网上邻居的mi_domian域里能看见名字为samba的机器,但是访问的时候老时说路径错误

而如果workgroup=samba时候,用网上邻居进入samba这个域,非常的慢?也不知道是不是正常?

下面是我的smb.conf:

# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2003/05/21 22:52:56

# Global parameters
[global]
        client code page = 936
        workgroup = samba
        netbios name = SAMBA
        server string = Samba Server
        security = SHARE
        log file = /var/log/samba/%m.log
        max log size = 500
        guest account = nobody
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        dns proxy = yes
       
[public]
        comment = Public stuff
        path = /home/samba
        public = yes
        writable = yes
        printalbe = no

[share]
        comment = share on lzp
        path = /home/share
        guest ok = Yes


请看看我这个配置那里错了呢?多谢
发表于 2003-5-23 10:05:50 | 显示全部楼层
好象没什么太大毛病,用testparm看看,另外,用vmware自然要慢些..
 楼主| 发表于 2003-5-23 10:18:01 | 显示全部楼层
我用testparm测了一下
他说unknown param printable
我把[public]中的printable去掉了,

下面是新的testparm结果
Load smb config files from /etc/samba/smb.conf
Processing section "[public]"
Processing section "[share]"
Loaded services file OK.
Press enter to see a dump of your service definitions
# Global parameters
[global]
        coding system =
        client code page = 936
        workgroup = SAMBA
        netbios name = SAMBA-LZP
        netbios aliases =
        netbios scope =
        server string = Samba Server
        interfaces =
        bind interfaces only = No
        security = SHARE
        encrypt passwords = No
        update encrypted = No
        allow trusted domains = Yes
        hosts equiv =
        min password length = 5
        map to guest = Never
        null passwords = No
        password server =
        smb passwd file = /etc/samba/smbpasswd
        root directory = /
        passwd program = /bin/passwd
        passwd chat = *new*password* %n\n *new*password* %n\n *changed*
        passwd chat debug = No
        username map =
        password level = 0
        username level = 0
        unix password sync = No
        restrict anonymous = No
        use rhosts = No
        ssl = No
        ssl hosts =
        ssl hosts resign =
        ssl CA certDir =
        ssl CA certFile =
        ssl server cert =
        ssl server key =
        ssl client cert =
        ssl client key =
        ssl require clientcert = No
        ssl require servercert = No
        ssl ciphers =
        ssl version = ssl2or3
        ssl compatibility = No
        debug level = 2
        syslog = 1
        syslog only = No
        log file = /var/log/samba/%m.log
        max log size = 500
        debug timestamp = Yes
        debug hires timestamp = No
        debug pid = No
        debug uid = No
        protocol = NT1
        read bmpx = No
        read raw = Yes
        write raw = Yes
        nt smb support = Yes
        nt pipe support = Yes
        nt acl support = Yes
        announce version = 4.2
        announce as = NT
        max mux = 50
        max xmit = 65535
        name resolve order = lmhosts host wins bcast
        max ttl = 259200
        max wins ttl = 518400
        min wins ttl = 21600
        time server = No
        change notify timeout = 60
        deadtime = 0
        getwd cache = Yes
        keepalive = 300
        lpq cache time = 10
        max disk size = 0
        max open files = 10000
        read prediction = No
        read size = 16384
        shared mem size = 1048576
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        stat cache size = 50
        load printers = Yes
        printcap name = /etc/printcap
        printer driver file = /etc/samba/printers.def
        strip dot = No
        character set =
        mangled stack = 50
        stat cache = Yes
        domain groups =
        domain admin group =
        domain guest group =
        domain admin users =
        domain guest users =
        machine password timeout = 604800
        add user script =
        delete user script =
        logon script =
        logon path = \\%N\%U\profile
        logon drive =
        logon home = \\%N\%U
        domain logons = No
        os level = 20
        lm announce = Auto
        lm interval = 60
        preferred master = No
        local master = Yes
        domain master = No
        browse list = Yes
        dns proxy = Yes
        wins proxy = No
        wins server =
        wins support = No
        wins hook =
        kernel oplocks = Yes
        ole locking compatibility = Yes
        oplock break wait time = 10
        smbrun = /usr/bin/smbrun
        config file =
        auto services =
        lock directory = /var/lock/samba
        default service =
        message command =
        dfree command =
        valid chars =
        remote announce =
        remote browse sync =
        socket address = 0.0.0.0
        homedir map = auto.home
        time offset = 0
        unix realname = No
        NIS homedir = No
        source environment =
        panic action =
        comment =
        path =
        revalidate = No
        username =
        guest account = nobody
        invalid users =
        valid users =
        admin users =
        read list =
        write list =
        force user =
        force group =
        writeable = No
        create mask = 0744
        force create mode = 00
        security mask = -1
        force security mode = -1
        directory mask = 0755
        force directory mode = 00
        directory security mask = -1
        force directory security mode = -1
        inherit permissions = No
        guest only = No
        guest ok = No
        only user = No
        hosts allow =
        hosts deny =
        status = Yes
        max connections = 0
        min print space = 0
        strict sync = No
        sync always = No
        write cache size = 0
        printable = No
        postscript = No
        printing = bsd
        print command = lpr -r -P%p %s
        lpq command = lpq -P%p
        lprm command = lprm -P%p %j
        lppause command =
        lpresume command =
        queuepause command =
        queueresume command =
        printer =
        printer driver = NULL
        printer driver location =
        default case = lower
        case sensitive = No
        preserve case = Yes
        short preserve case = Yes
        mangle case = No
        mangling char = ~
        hide dot files = Yes
        delete veto files = No
        veto files =
        hide files =
        veto oplock files =
        map system = No
        map hidden = No
        map archive = Yes
        mangled names = Yes
        mangled map =
        browseable = Yes
        blocking locks = Yes
        fake oplocks = No
        locking = Yes
        oplocks = Yes
        level2 oplocks = No
        oplock contention limit = 2
        strict locking = No
        share modes = Yes
        copy =
        include =
        preexec =
        preexec close = No
        postexec =
        root preexec =
        root preexec close = No
        root postexec =
        available = Yes
        volume =
        fstype = NTFS
        set directory = No
        wide links = Yes
        follow symlinks = Yes
        dont descend =
        magic script =
        magic output =
        delete readonly = No
        dos filetimes = No
        dos filetime resolution = No
        fake directory create times = No

[public]
        comment = Public stuff
        path = /home/samba
        writeable = Yes
        guest ok = Yes

[share]
        comment = share on lzp
        path = /home/share
        guest ok = Yes
 楼主| 发表于 2003-5-23 10:23:56 | 显示全部楼层
重起后,从 win2000的网上邻居看有samba这个组,但是双击这个组后反映非常的慢,而且进入这个samba组后,并没有samba-lzp这台机器阿????
发表于 2003-5-23 10:54:17 | 显示全部楼层
把netbios name = SAMBA-LZP改为netbios name = ;(不要设置),重起smbd,nmbd看看.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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