LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-28-2016, 05:44 PM   #1
Devyn
Member
 
Registered: Oct 2004
Posts: 98

Rep: Reputation: 15
Passless keys do not work when sharing a common NFS home folder.


Hey All,

This is on Cent OS 7

I have an NFS mount that is the home folder for an unprevilidged user that I would like to share out via NFS to other nodes. This folder has .ssh directory with an authorized_keys file that has the passless keys to host01. So if I share it out to host02, I expect that host01 will login without a password. It doesn't work. However when I unmount the NFS share from host02 and allow local storage of the authorized_keys file as is typical, the ssh from host01 to host02 works without a pass, just as expected.

When I mount NFS back on host02, the ssh from host01 asks for a password again. I thought it is something in the keys in the shared otu authorized_keys file, but the keys are identical.

Then I shutdown ssh on both nodes and ran each one in debug mode. The funny thing is even with the shared out NFS folder mounted on host02, I can login to host02 from host01 without a pass. So running SSH in debug mode allows for such a shared out NFS mount. Now why doesn't it work out of the box when restarting sshd using systemctl restart sshd?

Cheers,
 
Old 03-28-2016, 09:52 PM   #2
Devyn
Member
 
Registered: Oct 2004
Posts: 98

Original Poster
Rep: Reputation: 15
Using audit2why on /var/log/audit/audit.log told me it was an selinux policy issue and gave the solution as well.
 
  


Reply



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
common home directory /etc/passwd NFS shared across multiple linux systems ron7000 Linux - General 2 09-12-2015 01:39 AM
nfs server - sharing folder - folder permission dlugasx Linux - Server 1 02-15-2011 12:30 AM
Sharing a home folder between 2 Linux distros Jongi Fedora 1 10-26-2005 04:38 PM
problem sharing folder via NFS cdavidson Linux - Newbie 4 04-03-2005 08:39 PM
(re)sharing an nfs-mounted folder with samba rtspitz Linux - Networking 1 02-13-2005 01:36 PM

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

All times are GMT -5. The time now is 08:57 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