LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-01-2007, 06:53 PM   #1
schreiter
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
NFS and Kerberos


Hi all,

I'm new to LQ.org, so hello to all!

I'm trying to enable NFS (supports v4 and v3) (for an exported /home) with kerberos 5 on a CentOS 4.4 system. I have an MIT KRB5 realm setup that I use pam for login credentials. I've also got Fedora Directory Server for my LDAP implementation to keep standard UID and GID POSIX accounts on all my systems.

I'm interested in only allowing a proper ticketed kerberos principal to mount to NFS (no random local root performing a #su - someuser and able to auto mount /home/someuser)

I've been able to get NFS working fine using the following configuration (w/o kerberos). A user can login from the login prompt, contact FDS via LDAP for the POSIX user account, kerberos5 for the password, and mount the /home/akerberosuser.


nfs server:
-----------
/etc/exports
/home *(rw,fsid=0,insecure,sync)

/etc/sysconfig/nfs
# NFS port numbers (to use with firewall)
STATD_PORT=10002
STATD_OUTGOING_PORT=10003
MOUNTD_PORT=10004
RQUOTAD_PORT=10005

/etc/modprobe.conf
options lockd nlm_tcpport=10000 nlm_udpport=10001

nfs client:
-----------
/etc/auto.master
/home /etc/auto.home

/etc/auto.home
* -fstyle=nfs,soft,intr,rsize=8192,wsize=8192,tcp mynfsserver:/home/&


I've been searching for a clear cut example on what options need to go where to enable this. I've seen some examples showing:

/etc/exports
/home gss/krb5(rw,fsid=0,insecure,sync)

or (both):
/home *(rw,fsid=0,insecure,sync)
/home gss/krb5(rw,fsid=0,insecure,sync)

and client such as:

/etc/auto.home
* -fstyle=nfs,soft,intr,rsize=8192,wsize=8192,tcp,sec=krb5 mynfsserver:/home/&

I have not been able to get this to work. Can anyone please point me in the correct direction?

Many thanks,
Jonathan
 
  


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
kerberos paul_mat Linux - Networking 0 05-10-2006 12:02 AM
kerberos denning Slackware 1 11-02-2005 07:04 AM
Kerberos 5 1.4.1 Kenji Miyamoto Slackware 1 05-24-2005 07:11 PM
Kerberos Krizzc Slackware 0 10-21-2004 07:10 AM
Kerberos krieger Linux - Security 1 01-29-2002 01:40 PM

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

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