LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2013, 06:05 AM   #1
rajesh_22ap
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
NIS


I have situation where i have NIS server with five user but i want one of the user will not login in domain please provide a solution.......
 
Old 01-09-2013, 08:42 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,785

Rep: Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159
Quote:
Originally Posted by rajesh_22ap View Post
I have situation where i have NIS server with five user but i want one of the user will not login in domain please provide a solution.......
Solution to WHAT? You give us no details about your situation, so there's little we can help with. Things like what version/distro of Linux you're using? What OS (including version/distro), the five clients are running on their workstations? What you've done/tried so far?? ANTYHING???

The /etc/nsswitch.conf file should have entries like:
Code:
passwd: files nis
shadow: files nis
group:  files nis
...which means it checks the LOCAL file first, before going to NIS. Instead of using yppasswd, use the regular passwd command, which should update the local shadow file, without changing the NIS information. Try that.

Last edited by TB0ne; 01-09-2013 at 08:47 AM.
 
Old 01-09-2013, 12:24 PM   #3
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Please explain your question little more.

Do you want to restrict that user to use ssh or telnet type of login process? Or do you simply want to make that user inactive in your NIS system?

To inactive that user, you can do:-
Code:
cp /etc/passwd /etc/passwd.$(date +%Y%m%d)      # First take backup of /etc/passwd file
And either comment out that user's passwd file entry, as:-
#username:xyz:123:123:sample-entry:....
Or make following changes in user's shell and home directory:-
username:xyz:123:123:sample-entry:/dev/null:/bin/false
 
  


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
how the NIS information will propagate fron NIS master to NIS slave & vicevarsa? dezavu Linux - Server 5 10-14-2011 03:08 AM
NIS failed for one user on one NIS client - strange problem resolved catbird Linux - Networking 1 10-05-2009 11:00 AM
solaris nis server and linux nis client configuration soumalya Solaris / OpenSolaris 1 04-08-2008 11:25 PM
NIS: NIS running but users not able to log in with NIS credentials outerspace Linux - Server 3 10-17-2007 08:51 AM
NIS-Problem - search for NIS-Guru or SuSE Profesional krischeu MEPIS 0 06-16-2005 07:21 AM


All times are GMT -5. The time now is 08:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration