passwd: can't get local yp domain: Local domain name not set
I login as root and want to change the password:
# passwd passwd: can't get local yp domain: Local domain name not set Linux version is 2.4.7-10smp. |
What Distribution you are using??
Try to set the local domain name first, in FC it located in /etc/sysconfig/networks and try restart the network Thanks |
edit /etc/nsswitch.conf to reflect
user file nis ( If it is user nis file) then pass file nis and relogin that should fix it Regards Manjunath |
Quote:
cat /etc/nsswitch.conf # # /etc/nsswitch.conf # # An example Name Service Switch config file. This file should be # sorted with the most-used services at the beginning. # # The entry '[NOTFOUND=return]' means that the search for an # entry should stop if the search in the previous entry turned # up nothing. Note that if the search failed due to some other reason # (like no NIS server responding) then the search continues with the # next entry. # # Legal entries are: # # nisplus or nis+ Use NIS+ (NIS version 3) # nis or yp Use NIS (NIS version 2), also called YP # dns Use DNS (Domain Name Service) # files Use the local files # db Use the local database (.db) files # compat Use NIS on compat mode # hesiod Use Hesiod for user lookups # [NOTFOUND=return] Stop searching if not found so far # # To use db, put the "db" in front of "files" for entries you want to be # looked up first in the databases # # Example: #passwd: db files nisplus nis #shadow: db files nisplus nis #group: db files nisplus nis passwd: files nis shadow: files nis group: files nis #hosts: db files nisplus nis dns hosts: files dns # Example - obey only what nisplus tells us... #services: nisplus [NOTFOUND=return] files #networks: nisplus [NOTFOUND=return] files #protocols: nisplus [NOTFOUND=return] files #rpc: nisplus [NOTFOUND=return] files #ethers: nisplus [NOTFOUND=return] files #netmasks: nisplus [NOTFOUND=return] files bootparams: nis [NOTFOUND=return] files ethers: files netmasks: files networks: files protocols: files nis rpc: files services: files nis netgroup: files nis publickey: nis automount: files nis aliases: files nis |
Quote:
Please help. $ cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=powah GATEWAY=172.20.11.10 DOMAINNAME="mydomain.com" |
All times are GMT -5. The time now is 09:44 AM. |