歡迎您光臨本站 註冊首頁

一個老外給我們做的LINUX PDC,他剛走,我們登陸域就出錯!大家都過來看看?

錯誤的提示是客戶登陸LINUX域出現一些信息如下:
Windows 不能定位您的漫遊強制配置文件在伺服器上的副本,嘗試用您的本地配置文件讓您登錄。當您註銷時,對此配置文件的更改將不會被複制到伺服器。此問題的可能原因包括網路問題或安全許可權不足。如果此問題持續出現,請與您的網路管理員聯繫。


詳細信息 - 找不到網路路徑。


以下是這個老外配置的/etc/samba/smb.conf
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================


workgroup = IPCGROUP
netbios name = IPCGROUP_SRV
server string = Samba Server

#hosts allow = 192.168.1. 192.168.2. 127.

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   printcap name = /etc/printcap
   load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
;   printing = cups

# This option tells cups that the data has already been rasterized
cups options = raw

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used


# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# all log information in one file
#   log file = /var/log/samba/smbd.log

# Put a capping on the size of the log files (in Kb).
   max log size = 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
   security = user
# Use password server option only with security = server
;   password server = <NT-Server-Name>

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
;  password level = 8
;  username level = 8

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
;  encrypt passwords = yes
;  smb passwd file = /etc/samba/smbpasswd

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
#        the encrypted SMB passwords. They allow the Unix password
#        to be kept in sync with the SMB password.
;  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*

# Unix users can map to different SMB User names
;  username map = /etc/samba/smbusers

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /etc/samba/smb.conf.%m

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
#interfaces = 192.168.254.100/24 127.0.0.1

# Configure remote browse list synchronisation here
#  request announcement to, or browse list sync from:
#        a specific host or from / to a whole subnet (see below)
;   remote browse sync = 192.168.3.25 192.168.5.255
# Cause this host to announce itself to local subnets here
remote announce = 192.168.1.255 192.168.2.255 192.168.253.255

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
;   local master = no

os level = 33
domain master = yes
preferred master = yes
domain logons = yes
wins support = yes

admin users = Administrator
printer admin = Administrator
guest account = Guest
add user script = /usr/sbin/smbldap-useradd -m '%u'
delete user script = /usr/sbin/smbldap-userdel -r '%u'
add group script = /usr/sbin/smbldap-groupadd -p '%g'
delete group script = /usr/sbin/smbldap-groupdel '%g'
add user to group script = /usr/sbin/smbldap-groupmod -m '%u' '%g'
delete user from group script = /usr/sbin/smbldap-groupmod -x '%u' '%g'
set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
add machine script = /usr/sbin/smbldap-useradd -w '%m'
#add share command = /usr/lib/samba/bin/addshare.pl
#delete share command = /usr/lib/samba/bin/delshare.pl
#change share command = /usr/lib/samba/bin/chgshare.pl
force unknown acl user = yes

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
;        logon script = %m.bat
# run a specific logon batch file per username
;        logon script = %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
#        %L substitutes for this servers netbios name, %U is username
#        You must uncomment the share below
logon path = \\%L\Profiles\%U

# All NetBIOS names must be resolved to IP Addresses
# 'Name Resolve Order' allows the named resolution mechanism to be specified
# the default order is "host lmhosts wins bcast". "host" means use the unix
# system gethostbyname() function call that will use either /etc/hosts OR
# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
# and the /etc/resolv.conf file. "host" therefore is system configuration
# dependant. This parameter is most often of use to prevent DNS lookups
# in order to resolve NetBIOS names to IP Addresses. Use with care!
# The example below excludes use of name resolution for machines that are NOT
# on the local network segment
# - OR - are not deliberately to be known via lmhosts or via WINS.
name resolve order = wins lmhosts host bcast

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
#        Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one        WINS Server on the network. The default is NO.
wins proxy = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no

# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
preserve case = yes
short preserve case = yes
# Default case is normally upper case for all DOS files
default case = lower
# Be very careful with case sensitivity - it can break things!
case sensitive = no

passdb backend = ldapsam:ldap://127.0.0.1 smbpasswd
ldap ssl = no
ldap admin dn = uid=Administrator,ou=Users,dc=ipcgroup,dc=local
ldap suffix = dc=ipcgroup,dc=local
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
ldap group suffix = ou=Groups
ldap passwd sync = Yes
#ldap filter="(&(uid=%u)(objectClass=sambaAccount))"

unix charset = UTF-8
dos charset = UTF-8
display charset = UTF-8

#============================ Share Definitions ==============================
   idmap uid = 16777216-33554431
   idmap gid = 16777216-33554431
   template shell = /bin/false
   winbind use default domain = no


   comment = Home Directories
   browseable = no
   writable = yes

# Un-comment the following and create the netlogon directory for Domain Logons

   comment = The Domain Logon Service
   path = /var/samba/netlogon
   guest ok = no
   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

    path = /home/%U/profiles
    writeable = yes
    browseable = yes
    create mode = 0600
    directory mode = 0700
    force user = %U
    valid users = %U admin
    guest ok = no

# ----- IPC Shared Directory

   comment = Public file space (temporary)
   path = /home/public
   writeable = yes
   force user = %U
   valid users = %U
   guest ok = yes


  path=/home/share
  browseable = no
  valid users = @mgm_president
  read only = no
  create mask = 664
  directory mask = 775
  force group = mgm_president
  nt acl support = yes
  guest ok = no


  path=/home/share/mgm
  browseable = no
  valid users = @mgm_adm @mgm_president
  read only = no
  create mask = 664
  directory mask = 775
  force group = mgm_adm
  nt acl support = yes
  guest ok = no


  path=/home/share/gen
  browseable = no
  valid users = @dept_gen
  read only = no
  create mask = 664
  directory mask = 775
  force group = dept_gen
  nt acl support = yes
  guest ok = no


  path=/home/share/med
  browseable = no
  valid users = @dept_med
  read only = no
  create mask = 664
  directory mask = 775
  force group = dept_med
  nt acl support = yes
  guest ok = no


  path=/home/share/food
  browseable = no
  valid users = @dept_food
  read only = no
  create mask = 664
  directory mask = 775
  force group = dept_food
  nt acl support = yes
  guest ok = no


  path=/home/share/afg
  browseable = no
  valid users = @dept_afg
  read only = no
  create mask = 664
  directory mask = 775
  force group = dept_afg
  nt acl support = yes
  guest ok = no


  path=/home/share/g9525
  browseable = no
  valid users = @dept_9525
  read only = no
  create mask = 664
  directory mask = 775
  force group = dept_9525
  nt acl support = yes
  guest ok = no
《解決方案》

各位看貼的,知道的,回個話阿,真得是沒人知道嗎
《解決方案》

fu le
《解決方案》

路過,學習一下!
《解決方案》

根據在純windows 下的經驗
我會檢查user 在登錄后
對/home/%U/profiles 的讀寫許可權
大概可能是acl 許可權出錯的原因
《解決方案》

我看了,應該沒有問題呀.你把SMB重啟試試.
《解決方案》

關於profile的配置好象有點問題, 但我現在手上沒有那份文檔,我也說不好錯在哪了。 你先用testparm -v 測試一下你的smb.conf , 別外, 好象隨smb來的還有幾個與PDC相關的管理文件, 你可以試試。

不過, 友情提示, 我只做成過WINNT 的PDC, WIN2000的DC沒做成。 不知道是什麼原因。

樓主小心。
《解決方案》

忘記說了,在WINDOWS端用adminitrator帳號登陸就好使,能夠保存adminstrator的所有屬性,並且也不出現出錯提示
下面是我的帳號列表:
# ls
administrator  d_kui       h_mitamura  l_ming     m_mizobuchi  share    w_weiting   z_jian     z_zhicheng
a_jin          f_jian      h_nagase    l_mingyue  p_cheng      w_jie    x_zhonghua  z_jindi
b_lin          g_haili     l_chuan     l_shenshi  public       w_peng   y_okamura   z_jingke
c_jing         g_yuan      l_dandan    l_shifeng  p_xiaowen    w_ti     z_bowen     z_kuipeng
cvsroot        g_yuanyuan  l_lansong   l_shuyan   r_zhenwei    w_wanan  z_chao      z_shifeng
# pwd
/home# ls -al
鎬葷敤閲?62552
drwx------   8 g_haili Domain Users     4096  6鏈?11 10:07 .
drwxr-xr-x  43 root    root             4096  6鏈? 8 17:09 ..
-rwxr--r--   1 g_haili Domain Users     1084 2005-08-24  2007-07-16.key
-rw-r--r--   1 g_haili Domain Users      304 2005-02-22  .bash_logout
-rw-r--r--   1 g_haili Domain Users      191 2005-02-22  .bash_profile
-rw-r--r--   1 g_haili Domain Users      124 2005-02-22  .bashrc
-rw-r--r--   1 g_haili Domain Users     5619 2005-02-22  .canna
-rw-r--r--   1 g_haili Domain Users      383 2005-02-26  .emacs
drwxr-xr-x   2 g_haili Domain Users     4096  6鏈? 7 19:33 FlashGet
-rw-r--r--   1 g_haili Domain Users      120 2005-09-05  .gtkrc
-rwxr--r--   1 g_haili Domain Users    36352  5鏈?12 16:29 iptables浣跨敤瀹炰緥.doc
-rwxr--r--   1 g_haili Domain Users    29696  5鏈?12 16:40 iptables鎬庝箞鐢╥ptable瀹屾垚絝彛鏄犲皠.doc
-rwxr--r--   1 g_haili Domain Users 12178984  2鏈?16 09:55 kav5.0.388_personalzh.exe
drwxr-xr-x   3 g_haili Domain Users     4096  5鏈?31 12:12 .kde
-rwxr--r--   1 g_haili Domain Users  6499269  6鏈?10 14:52 kugoo.exe
-rwxr--r--   1 g_haili Domain Users  5778944  6鏈?10 08:36 ldapbrowser26.msi
-rwxr--r--   1 g_haili Domain Users    30720  5鏈?12 16:39 linux鏈嶅姟鍣ㄤ笂璁劇疆VPN.doc
-rwxr--r--   1 g_haili Domain Users 33831916 2005-08-11  Nero-6.6.0.13(1).exe
-rwxr--r--   1 g_haili Domain Users   819406  6鏈? 9 20:44 phpldapadmin-0.9.7.1.tar.tar
drwxrwxr-x   3 g_haili Domain Users     4096  6鏈?12 12:21 profiles
-rwxr--r--   1 g_haili Domain Users  4573072  6鏈?10 08:29 R90698.EXE
drwxr-xr-x   2 g_haili Domain Users     4096  6鏈? 7 19:35 Remote Administrator
-rw-r--r--   1 root    root            12480  6鏈?11 10:07 smb.conf
drwxr-xr-x   2 g_haili Domain Users     4096  5鏈?31 12:12 .xemacs
-rw-r--r--   1 g_haili Domain Users      658 2005-08-22  .zshrc
drwxr-xr-x   2 g_haili Domain Users     4096  6鏈? 9 12:44 鏂板緩鏂囦歡澶?
-rwxr--r--   1 g_haili Domain Users    32256  5鏈?12 16:54 鑷繁鏁寸悊鐨刅PN甯歌闂鍘熷洜涓庤В鍐?doc
-rwxr--r--   1 g_haili Domain Users    36352  5鏈?12 16:27 闃茬伀澧欎箣鍩虹綃囷紙iptable錛?doc
# pwd
/home/g_haili
#

#
所以我想應該是許可權的問題
# pwd
/home/g_haili/profiles
#
《解決方案》

# testprns
Usage: testprns printername
# testparm m
Load smb config files from m
params.c:OpenConfFile() - Unable to open configuration file "m":
        No such file or directory
Error loading services.
# testparm
Load smb config files from /etc/samba/smb.conf
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions

# Global parameters

        dos charset = UTF-8
        display charset = UTF-8
        workgroup = IPCGROUP
        netbios name = IPCGROUP_SRV
        server string = Samba Server
        passdb backend = ldapsam:ldap://127.0.0.1, smbpasswd
        guest account = Guest
        log file = /var/log/samba/%m.log
        max log size = 50
        name resolve order = wins lmhosts host bcast
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = /etc/printcap
        add user script = /usr/sbin/smbldap-useradd -m '%u'
        delete user script = /usr/sbin/smbldap-userdel -r '%u'
        add group script = /usr/sbin/smbldap-groupadd -p '%g'
        delete group script = /usr/sbin/smbldap-groupdel '%g'
        add user to group script = /usr/sbin/smbldap-groupmod -m '%u' '%g'
        delete user from group script = /usr/sbin/smbldap-groupmod -x '%u' '%g'
        set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
        add machine script = /usr/sbin/smbldap-useradd -w '%m'
        logon path = \\%L\Profiles\%U
        domain logons = Yes
        os level = 33
        preferred master = Yes
        domain master = Yes
        dns proxy = No
        wins proxy = Yes
        wins support = Yes
        ldap admin dn = uid=Administrator,ou=Users,dc=ipcgroup,dc=local
        ldap group suffix = ou=Groups
        ldap machine suffix = ou=Computers
        ldap passwd sync = Yes
        ldap suffix = dc=ipcgroup,dc=local
        ldap ssl = no
        ldap user suffix = ou=Users
        remote announce = 192.168.1.255 192.168.2.255 192.168.253.255
        idmap uid = 16777216-33554431
        idmap gid = 16777216-33554431
        admin users = Administrator
        printer admin = Administrator
        force unknown acl user = Yes
        cups options = raw
        case sensitive = No


        comment = Home Directories
        read only = No
        browseable = No


        comment = The Domain Logon Service
        path = /var/samba/netlogon
        share modes = No


        path = /home/%U/profiles
        valid users = %U, admin
        force user = %U
        read only = No
        create mask = 0600
        directory mask = 0700


        comment = Public file space (temporary)
        path = /home/public
        valid users = %U
        force user = %U
        read only = No
        guest ok = Yes


        path = /home/share
        valid users = @mgm_president
        force group = mgm_president
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No


        path = /home/share/mgm
        valid users = @mgm_adm, @mgm_president
        force group = mgm_adm
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No


        path = /home/share/gen
        valid users = @dept_gen
        force group = dept_gen
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No


        path = /home/share/med
        valid users = @dept_med
        force group = dept_med
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No


        path = /home/share/food
        valid users = @dept_food
        force group = dept_food
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No


        path = /home/share/afg
        valid users = @dept_afg
        force group = dept_afg
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No


        path = /home/share/g9525
        valid users = @dept_9525
        force group = dept_9525
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No
#
《解決方案》

# testprns
Usage: testprns printername
# testparm m
Load smb config files from m
params.c:OpenConfFile() - Unable to open configuration file "m":
        No such file or directory
Error loading services.
# testparm
Load smb config files from /etc/samba/smb.conf
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Processing section ""
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions

# Global parameters

        dos charset = UTF-8
        display charset = UTF-8
        workgroup = IPCGROUP
        netbios name = IPCGROUP_SRV
        server string = Samba Server
        passdb backend = ldapsam:ldap://127.0.0.1, smbpasswd
        guest account = Guest
        log file = /var/log/samba/%m.log
        max log size = 50
        name resolve order = wins lmhosts host bcast
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = /etc/printcap
        add user script = /usr/sbin/smbldap-useradd -m '%u'
        delete user script = /usr/sbin/smbldap-userdel -r '%u'
        add group script = /usr/sbin/smbldap-groupadd -p '%g'
        delete group script = /usr/sbin/smbldap-groupdel '%g'
        add user to group script = /usr/sbin/smbldap-groupmod -m '%u' '%g'
        delete user from group script = /usr/sbin/smbldap-groupmod -x '%u' '%g'
        set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
        add machine script = /usr/sbin/smbldap-useradd -w '%m'
        logon path = \\%L\Profiles\%U
        domain logons = Yes
        os level = 33
        preferred master = Yes
        domain master = Yes
        dns proxy = No
        wins proxy = Yes
        wins support = Yes
        ldap admin dn = uid=Administrator,ou=Users,dc=ipcgroup,dc=local
        ldap group suffix = ou=Groups
        ldap machine suffix = ou=Computers
        ldap passwd sync = Yes
        ldap suffix = dc=ipcgroup,dc=local
        ldap ssl = no
        ldap user suffix = ou=Users
        remote announce = 192.168.1.255 192.168.2.255 192.168.253.255
        idmap uid = 16777216-33554431
        idmap gid = 16777216-33554431
        admin users = Administrator
        printer admin = Administrator
        force unknown acl user = Yes
        cups options = raw
        case sensitive = No


        comment = Home Directories
        read only = No
        browseable = No


        comment = The Domain Logon Service
        path = /var/samba/netlogon
        share modes = No


        path = /home/%U/profiles
        valid users = %U, admin
        force user = %U
        read only = No
        create mask = 0600
        directory mask = 0700


        comment = Public file space (temporary)
        path = /home/public
        valid users = %U
        force user = %U
        read only = No
        guest ok = Yes


        path = /home/share
        valid users = @mgm_president
        force group = mgm_president
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No


        path = /home/share/mgm
        valid users = @mgm_adm, @mgm_president
        force group = mgm_adm
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No


        path = /home/share/gen
        valid users = @dept_gen
        force group = dept_gen
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No


        path = /home/share/med
        valid users = @dept_med
        force group = dept_med
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No


        path = /home/share/food
        valid users = @dept_food
        force group = dept_food
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No


        path = /home/share/afg
        valid users = @dept_afg
        force group = dept_afg
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No


        path = /home/share/g9525
        valid users = @dept_9525
        force group = dept_9525
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No
#

[火星人 ] 一個老外給我們做的LINUX PDC,他剛走,我們登陸域就出錯!大家都過來看看?已經有614次圍觀

http://coctec.com/docs/service/show-post-34636.html