Unable to login to NIS client machine(Ubuntu) using NIS login user name
Linux - ServerThis 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.
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.
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.