LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-03-2008, 02:18 PM   #1
crazymoonboy
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Rep: Reputation: 0
Unable to login to NIS client machine(Ubuntu) using NIS login user name


Hi Friends,

I configured NIS server in Fedora 9 and is working fine.

I configured NIS client in Ubuntu and it is able to bind the NIS server.

In my NIS client machine:
1) "ypcat passwd" is showing all users passwords in NIS server.
2) "id nisuser" is showing the uid, gid and group values.

But, I am unable to login to my client machine using NIS login user name.

Can anybody suggest me a solution?

Thanks in advance.

Regards,
Chandramouli
 
Old 07-06-2008, 11:39 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
What does your /etc/nsswitch.conf file look like?
 
Old 02-09-2009, 07:03 AM   #3
engelienart
Member
 
Registered: Feb 2009
Location: Netherlands
Distribution: Kubuntu, Debian
Posts: 73

Rep: Reputation: 16
Hi, I could start a topic of my own, but it seems to me, this thread asks the same question I want to ask:

I have NIS client working on a Ubuntu Workstation
I have NIS server working on a Ubuntu Server

1) "ypcat passwd" is showing all users passwords in NIS server.

2) "id %NISUSER%" says: "id: %NISUSER%: unknown user"

But, I am unable to login to my client machine using NIS login user name.

I find it difficult to explain myself: I want after a reboot, the Workstation most ask for a username and password. I want to be able to provide my username and password of a user of the server and after that, I will be able to see my home directory (and some shares/ or what ever they are called in Linux). If I am a member of the group ICT, I want to be able to see the ICT share and have a desktopicon that is linked to the share.

I am used to Windows NT 4.0 (lets all point at me and laugh) with Windows NT server, workstation and a NT domain. Currently I have a Ubuntu Server which runs a samba server, so my Windows XP workstations can logon a NT domain of the samba server.

If somebody would tell me what I am doing wrong, please do.

I forgot the /etc/nsswitch.conf:


Code:
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files dns mdns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

Last edited by engelienart; 02-09-2009 at 07:56 AM.
 
Old 02-10-2009, 07:32 AM   #4
engelienart
Member
 
Registered: Feb 2009
Location: Netherlands
Distribution: Kubuntu, Debian
Posts: 73

Rep: Reputation: 16
I am bumping this thread, because I still don't have an answer. I still have no clue what I have done wrong.
 
Old 08-26-2009, 09:20 AM   #5
gouthamtrip
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
ubuntu Unknown id: nis client problem

Hi,

Try to add nis beside the compat parameter...below is the example nsswitch config file on ubuntu client system:

passwd: compat nis
group: compat nis
shadow: compat nis

#hosts: files mdns4_minimal [NOTFOUND=return] nis dns mdns4
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis

#--------------------------------------------

now test it with command:
root@red:~#yptest (you should see nis users list )
root@red:~# id test <test is the username on nisserver>

Regards,

Goutham T


Quote:
Originally Posted by engelienart View Post
Hi, I could start a topic of my own, but it seems to me, this thread asks the same question I want to ask:

I have NIS client working on a Ubuntu Workstation
I have NIS server working on a Ubuntu Server

1) "ypcat passwd" is showing all users passwords in NIS server.

2) "id %NISUSER%" says: "id: %NISUSER%: unknown user"

But, I am unable to login to my client machine using NIS login user name.

I find it difficult to explain myself: I want after a reboot, the Workstation most ask for a username and password. I want to be able to provide my username and password of a user of the server and after that, I will be able to see my home directory (and some shares/ or what ever they are called in Linux). If I am a member of the group ICT, I want to be able to see the ICT share and have a desktopicon that is linked to the share.

I am used to Windows NT 4.0 (lets all point at me and laugh) with Windows NT server, workstation and a NT domain. Currently I have a Ubuntu Server which runs a samba server, so my Windows XP workstations can logon a NT domain of the samba server.

If somebody would tell me what I am doing wrong, please do.

I forgot the /etc/nsswitch.conf:


Code:
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files dns mdns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis
 
Old 11-26-2009, 09:13 PM   #6
OldManWinter
LQ Newbie
 
Registered: Nov 2009
Distribution: RHEL
Posts: 2

Rep: Reputation: 0
I realise this is a little late, but after adding users to the NIS server or changing their passwords you need to go into /var/yp on the nis server and run make to rebuild the NIS database.
 
Old 11-26-2009, 11:15 PM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
There's a nice clear NIS howto here: http://www.linuxhomenetworking.com/w...onfiguring_NIS
 
Old 11-27-2009, 03:29 AM   #8
engelienart
Member
 
Registered: Feb 2009
Location: Netherlands
Distribution: Kubuntu, Debian
Posts: 73

Rep: Reputation: 16
Ok, thanx. I 'll read some more.
 
  


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
NIS Client can not login to NIS Master Server Free_beer Ubuntu 3 10-09-2006 03:57 PM
NIS client login "cannot find user name for user ID" danielbourne Linux - Networking 2 08-24-2006 05:16 AM
NIS prob: added user to server, but can't login to client BrianK Linux - General 3 10-06-2004 05:29 PM
nis client machine can't log in using nis username preetam Linux - Networking 0 02-09-2004 05:40 PM
nis client login - user home dir not fnd synfield Linux - Networking 0 03-27-2003 04:51 AM


All times are GMT -5. The time now is 10:49 AM.

Main Menu
Advertisement
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