LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-30-2013, 04:05 AM   #1
abhinav4
Member
 
Registered: Jun 2010
Location: India
Distribution: Fedora/Cent OS
Posts: 123

Rep: Reputation: 0
NIS login problem in GUI


I have set up NIS master server and a NIS client.
I am able to log in via NIS client through ssh but unable to login with the same credentials through GUI mode (gnome).
It gives the error "Incorrect username or password. Letters must be typed in the correct case"
Anyone come through this type of problem?
 
Old 01-30-2013, 05:42 AM   #2
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
What does your /etc/nsswitch.conf file say? What are preferences set?
Code:
~$ cat /etc/nsswitch.conf
 
Old 01-30-2013, 06:59 AM   #3
abhinav4
Member
 
Registered: Jun 2010
Location: India
Distribution: Fedora/Cent OS
Posts: 123

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by shivaa View Post
What does your /etc/nsswitch.conf file say? What are preferences set?
Code:
~$ cat /etc/nsswitch.conf
Client nsswitch.conf says the following and yes the problem is only logging through GUI mode. ssh or putty sessions works absolutely fine
Code:
passwd:     files nis
shadow:     files nis
group:      files nis
 
Old 01-30-2013, 08:36 AM   #4
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
Quote:
Originally Posted by abhinav4 View Post
Client nsswitch.conf says the following and yes the problem is only logging through GUI mode. ssh or putty sessions works absolutely fine.
It considers local system files first then nis, so you can try by switching files and nis by each other.

Which distro? And which account you're using for login into GUI..?
 
Old 01-30-2013, 10:57 PM   #5
abhinav4
Member
 
Registered: Jun 2010
Location: India
Distribution: Fedora/Cent OS
Posts: 123

Original Poster
Rep: Reputation: 0
Quote:
It considers local system files first then nis, so you can try by switching files and nis by each other.
Changed and that does not worked.
Quote:
Which distro?
I am using centos under GNOME
Quote:
And which account you're using for login into GUI..?
i am using nis credentials. I have created a user named nisuser

Last edited by abhinav4; 01-30-2013 at 10:59 PM.
 
Old 01-30-2013, 11:42 PM   #6
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
Can you once share output of:-
Code:
$ cat /etc/pam.d/gdm
 
Old 01-30-2013, 11:52 PM   #7
abhinav4
Member
 
Registered: Jun 2010
Location: India
Distribution: Fedora/Cent OS
Posts: 123

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by shivaa View Post
Can you once share output of:-
Code:
$ cat /etc/pam.d/gdm
This is from the NIS client
Code:
[root@centos ~]# cat /etc/pam.d/gdm
#%PAM-1.0
auth       required    pam_env.so
auth       include     system-auth
account    required    pam_nologin.so
account    include     system-auth
password   include     system-auth
session    optional    pam_keyinit.so force revoke
session    include     system-auth
session    required    pam_loginuid.so
session    optional    pam_console.so
Below is from the NIS server
Code:
[root@centos58 ~]# cat /etc/pam.d/gdm
#%PAM-1.0
auth       required    pam_env.so
auth       include     system-auth
account    required    pam_nologin.so
account    include     system-auth
password   include     system-auth
session    optional    pam_keyinit.so force revoke
session    include     system-auth
session    required    pam_loginuid.so
session    optional    pam_console.so
 
  


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
Unable to login to NIS client machine(Ubuntu) using NIS login user name crazymoonboy Linux - Server 10 05-08-2015 07:28 AM
Ubuntu/AD/KRB5/LDAP/NIS able to use domain user login with putty, unable in gui login Nitroglycerine Linux - Server 0 06-28-2012 04:17 AM
GUI and NIS login. kdeinit & kstartupconfig PB0711 SUSE / openSUSE 7 11-30-2006 01:13 PM
NIS login problem John Micheal Linux - Security 0 04-26-2005 11:29 AM
NIS GUI login problem shajahanak Linux - Networking 1 04-02-2001 03:01 PM


All times are GMT -5. The time now is 07:57 PM.

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