LinuxSir.cn,穿越时空的Linuxsir!

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

高手们请进来帮忙解决一下(Thruth在不在?)

[复制链接]
发表于 2007-6-28 21:31:43 | 显示全部楼层 |阅读模式
我在openSUSE 10.2里用samba做了一个域控制器,刚开始都能正常使用。但当服务器重新动后客户端就进不去了,说是找不到域控制器,我在终端下再认真检查了smb.conf文件,没发现问题。只好启动了yast2里的samba服务器,运行完成后问题居然解决了(客户端能正常加进域了),之后就发现每次服务器重新启动后都必须重新运行一下yast2里的samba服务器,请问哪位大哥知道这是怎样的一回事?有没有解决的办法呀?

smb.conf 的配置如下:

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2006-11-27
[global]
        workgroup = WS
        printing = cups
        printcap name = cups
        printcap cache time = 750
        cups options = raw
        map to guest = Bad User
        include = /etc/samba/dhcp.conf
        logon path = \\%L\profiles\.msprofile
        logon home = \\%L\%U\.9xprofile
        logon drive = P:
        usershare allow guests = Yes
        add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
        domain logons = Yes
        domain master = Yes
        local master = Yes
        log file = /var/log/smb.log
        log level = 2
        os level = 65
        preferred master = Yes
        security = user
        netbios name = WS2
        usershare max shares = 100
[homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        browseable = No
        read only = No
        inherit acls = Yes
[profiles]
        comment = Network Profiles Service
        path = %H
        read only = No
        store dos attributes = Yes
        create mask = 0600
        directory mask = 0700
[users]
        comment = All users
        path = /home
        read only = No
        inherit acls = Yes
        veto files = /aquota.user/groups/shares/
[groups]
        comment = All groups
        path = /home/groups
        read only = No
        inherit acls = Yes
[printers]
        comment = All Printers
        path = /var/tmp
        printable = Yes
        create mask = 0600
        browseable = No
[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @ntadmin root
        force group = ntadmin
        create mask = 0664
        directory mask = 0775

[netlogon]
        comment = Network Logon Service
        path = /var/lib/samba/netlogon
        write list = root
发表于 2007-6-28 22:00:00 | 显示全部楼层
HI~

启动 bash
#yast2 samba-server &
然后设置的时候要设置 在系统启动时就 启动samba服务。

基本问题就解决了(如果按照你的描述。不过我没看你的conf)  :)
回复 支持 反对

使用道具 举报

发表于 2007-6-29 00:21:42 | 显示全部楼层
也可以在yast2 runlevel
解决吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-29 01:08:36 | 显示全部楼层
谢谢你们两位。不过我想请教一下:出现这种情况的原因是什么呢?是samba的问题还是suse的问题?我仔细检查过在运行yast2里samba服务器前后的共享情况是一至的,也就是说运行前后共享出来的内容是一样的。没办法,我只好明天再认真去分析一下samba日志了,看能不能找出问题的根本原因。

我的smb服务器在系统启动时已自动运行了,只是必须要手动运行yast2里的samba服务器了之后PDC才能正常工作。
回复 支持 反对

使用道具 举报

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

本版积分规则

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