If there are no DNS server in local network, windows share will fail to login SAMBA and fail to retrive data.
That is because of /etc/hosts and /etc/nsswitch.conf settings error.
Please follow bellow settings.
1. /etc/hosts
127.0.0.1 localhost
2. /etc/nsswitch.conf
1 #
2 # /etc/nsswitch.conf
3 #
4 # An example Name Service Switch config file. This file should be
5 # sorted with the most-used services at the beginning.
6 #
7 # The entry '[NOTFOUND=return]' means that the search for an
8 # entry should stop if the search in the previous entry turned
9 # up nothing. Note that if the search failed due to some other reason
10 # (like no NIS server responding) then the search continues with the
11 # next entry.
12 #
13 # Legal entries are:
14 #
15 # nisplus or nis+ Use NIS+ (NIS version 3)
16 # nis or yp Use NIS (NIS version 2), also called YP
17 # dns Use DNS (Domain Name Service)
18 # files Use the local files
19 # db Use the local database (.db) files
20 # compat Use NIS on compat mode
21 # [NOTFOUND=return] Stop searching if not found so far
22 #
23
24 # To use db, put the "db" in front of "files" for entries you want to be
25 # looked up first in the databases
26 #
27 # Example:
28 #passwd: db files nisplus nis
29 #shadow: db files nisplus nis
30 #group: db files nisplus nis
31
32 passwd: files nisplus nis
33 shadow: files nisplus nis
34 group: files nisplus nis
35
36 #hosts: db files nisplus nis dns
37 hosts: files nisplus nis dns
38
39 services: nisplus [NOTFOUND=return] files
40 networks: nisplus [NOTFOUND=return] files
41 protocols: nisplus [NOTFOUND=return] files
42 rpc: nisplus [NOTFOUND=return] files
43 ethers: nisplus [NOTFOUND=return] files
44 netmasks: nisplus [NOTFOUND=return] files
45 bootparams: nisplus [NOTFOUND=return] files
46
47 netgroup: nisplus
48
49 publickey: nisplus
50
51 automount: files nisplus
52 aliases: files nisplus
53
2010年3月17日 星期三
Samba without DNS server in local network
訂閱:
張貼留言 (Atom)
0 意見:
張貼留言