Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-03-2008, 01:18 PM
|
#1
|
LQ Newbie
Registered: Oct 2006
Posts: 3
Rep:
|
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
|
|
|
07-06-2008, 10:39 PM
|
#2
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
What does your /etc/nsswitch.conf file look like?
|
|
|
02-09-2009, 06:03 AM
|
#3
|
Member
Registered: Feb 2009
Location: Netherlands
Distribution: Kubuntu, Debian
Posts: 73
Rep:
|
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 06:56 AM.
|
|
|
02-10-2009, 06:32 AM
|
#4
|
Member
Registered: Feb 2009
Location: Netherlands
Distribution: Kubuntu, Debian
Posts: 73
Rep:
|
I am bumping this thread, because I still don't have an answer. I still have no clue what I have done wrong.
|
|
|
08-26-2009, 08:20 AM
|
#5
|
LQ Newbie
Registered: Aug 2009
Posts: 1
Rep:
|
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
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
|
|
|
|
11-26-2009, 08:13 PM
|
#6
|
LQ Newbie
Registered: Nov 2009
Distribution: RHEL
Posts: 2
Rep:
|
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.
|
|
|
11-26-2009, 10:15 PM
|
#7
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,430
|
|
|
|
11-27-2009, 02:29 AM
|
#8
|
Member
Registered: Feb 2009
Location: Netherlands
Distribution: Kubuntu, Debian
Posts: 73
Rep:
|
Ok, thanx. I 'll read some more. 
|
|
|
05-08-2015, 04:44 AM
|
#9
|
LQ Newbie
Registered: May 2015
Posts: 3
Rep: 
|
not able to login to NIS client using NIS suer
Guys,
I am not able to login to NIS client using NIS suer, can some body do help me.
Thanks
Somanath
|
|
|
05-08-2015, 06:12 AM
|
#10
|
LQ Newbie
Registered: May 2015
Posts: 3
Rep: 
|
Quote:
Originally Posted by somanath naik
Guys,
I am not able to login to NIS client using NIS suer, can some body do help me.
Thanks
Somanath
|
Open up /etc/nsswitch.conf and make sure the following portion looks like this:
Code:
..
passwd nis files
group nis files
shadow nis files
..
|
|
|
05-08-2015, 07:28 AM
|
#11
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908
|
not absolutely certain of this, but that order used to be a security hole:
The order normally would have "files nis" rather than "nis files". With nis first it would allow a root password to be bypassed. With files first, the system will not use nis for any account that has a local entry.
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 07:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|