LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-24-2009, 08:42 AM   #1
zyad_hassan
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
NIS user cannot access the server


I'm a newbie to linux, and I have the following problem. We have setup NIS at work, and all users can ssh to the server without any problems, except for one user who always gets a "Permission denied, please try again." message when he tries to ssh to the server. Doing "su user" while on the server works fine. Also from the server, this user can log on to any of the NIS clients without any problems. But for some reason, he cannot access the server.

Any ideas?
 
Old 01-25-2009, 06:27 AM   #2
mhearne
Member
 
Registered: Nov 2004
Location: Amarillo, TX
Distribution: Mandriva
Posts: 91

Rep: Reputation: 15
Are you using diskless workstations?

Have the user delete .ssh* and new .ssh files and directories will be created right away (that is, as soon as he accesses his home? directory).

rm -rf .ssh*

This isn't complicated at all.

If you don't trust me then "mv .ssh* tmp" and those files won't be destroyed. It may be that you have upgraded your distribution, or you have a new version of ssh. This happens commonly when distributions are upgraded, while users are allowed to save their old home directories.

You should also update gnupg with all users. This is simple as well:

As root: gpg --export > mynetwork.asc

and then have all users: gpg --import mynetwork.asc

Then: gpg --refresh-keys to get all of the latest signatures or revocations from an international keyserver.

Last edited by mhearne; 01-25-2009 at 06:37 AM.
 
Old 01-25-2009, 02:35 PM   #3
zyad_hassan
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Original Poster
Rep: Reputation: 0
I just figured out the cause of the problem. This username was not included in the sshlogin group in the /etc/group file. Thanks mhearne for your help.
 
  


Reply

Tags
nis


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 to restrict a user in NIS from logging on to a particular server dbmacartney Linux - Server 6 07-28-2010 08:31 AM
RHEL 4 client in VMware not binding to NIS server. Ping works fine and NIS server wo panini.kompella Linux - Server 1 03-16-2008 11:06 PM
How do I create a local user on a NIS slave server? essdeeay Linux - General 2 06-10-2007 05:40 AM
how to setup quota on user dir in nis server tulip4heaven Linux - Networking 1 09-14-2005 05:22 AM
How to log users access to a NIS server? blur Linux - Networking 1 04-26-2004 07:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:52 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
Open Source Consulting | Domain Registration