LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 05-25-2006, 12:31 PM   #1
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Rep: Reputation: 30
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.
 
Old 05-28-2006, 08:28 PM   #2
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
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
 
Old 05-31-2006, 08:30 AM   #3
linuxmanju
Member
 
Registered: Sep 2003
Location: India
Distribution: Debian
Posts: 50

Rep: Reputation: 15
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
 
Old 06-07-2006, 02:18 PM   #4
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by linuxmanju
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
I do not see any problem with my /etc/nsswitch.conf.
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
 
Old 06-08-2006, 09:59 AM   #5
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by joseph
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
Setting the local domain name first, rebooting the machine still does not work.
Please help.

$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=powah
GATEWAY=172.20.11.10
DOMAINNAME="mydomain.com"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix and local domain. LuneeTunes Linux - Networking 1 03-18-2006 12:55 PM
Setting up local DNS domain name Corxscrew Linux - Newbie 1 01-20-2005 07:49 AM
postfix : sending local mail without domain iainr Linux - Software 2 12-10-2003 03:05 AM
adding a domain to my local linux test pc? kane hart Linux - Newbie 3 10-14-2003 10:58 AM
some domain users can not own local files foehlinger Linux - Networking 1 02-18-2003 06:56 AM


All times are GMT -5. The time now is 06:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration