LinuxQuestions.org
Review your favorite Linux distribution.
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-27-2015, 09:43 PM   #1
rickricky
LQ Newbie
 
Registered: Mar 2015
Posts: 7

Rep: Reputation: Disabled
Thumbs up NFS Server and Client with krb5p


Hi All,

Im trying to setup a NFS with kerberos and with sub directories restrictions and domain restriction to X.example.com

Server side
mkdir -p /public
mkdir -p /protected/secrets

user01 needs to have read and right access in sub folder called secrets.

chmod 775 /protected/secrets

#vi /etc/exports
/public *.X.example.com(ro)
/protected *.X.example.com(sec=krb5p,rw)



Client side
to be mounted in /mnt/

#vi fstab
server:/public /mnt/nfsshare nfs _netdev 0 0
server:/protected /mnt/nfssecure nfs sec=krb5p,rw 0 0

/mnt/nfsshare #for public
/mnt/nfssecure #for protected

but when I switch user to user01 Im getting a permission denied when try to access in /nfssecure/secret

anyone experience this similar problem?

thanks
 
Old 03-28-2015, 07:49 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Is example.com part of your kerberos realm (or a trusted kerberos realm)? Do you have NIS/DNS configured to point to a working KDC to validate tickets?
The other thing, in a kerberos aware environment when you have access issues, the very first thing you check is that all the clients are synched to good NTP servers who in turn are synched to good NTP pools because you only have to be off a little bit before the KDC decides you're a replay attack and shuts you down.
 
Old 03-28-2015, 09:49 PM   #3
rickricky
LQ Newbie
 
Registered: Mar 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Dijetlo,

Thanks for the reply, I never tried to check the NTP server my bad, I will do this next time. This is part of the exam I took earlier.

Im sure kerberos realm (or a trusted kerberos realm), NIS/DNS is properly configured. This is by default configured on the exam.

anything you would like to advise? or maybe just the NTP server.

Thanks
 
Old 03-29-2015, 01:19 AM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
No Problem Rick,

Actually... it's hard to say because I don't know the preconditions of the exam. Was this the RHCA (the RHEL admin exam)?

You have to configure NFS, which means you have to turn on some rpc daemons (quotd, statd, lockd etc) but those are probably on. The Kerberos thing is more the result of a bad experience than something that happens a lot (though it happens often enough that I always want it checked on the client.) My suggestion is set up a virt environment and build it all from the ground up with the CLI. Do that a couple of times, then bring up the GUI and you'll find that it seems like childs play. It will also give you an understanding of the component processes your classmates wont be able to match, the first time you're sitting in a job interview you'll find it really useful to be able to run through the processes at that level of detail while your classmates talk about how they go to this menu and clickety click here, then clickety click there, then if that isn't red and this is green, they clickety click the gizmo...
Ask for 20 percent more than they ask for, you'll be worth it.

Last edited by dijetlo; 03-29-2015 at 01:20 AM. Reason: the phantom percent sign bug struck again !!!!!
 
Old 03-29-2015, 03:16 AM   #5
rickricky
LQ Newbie
 
Registered: Mar 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Yes this is part of the RHEL exam, but not the RHCA this is just for RHCE 7.

thanks for the advise. I'm going to try to build this on a demo environment and verify it from there.

thanks again

cheers!

RHCE 7 exam is HELL!!!!!
 
1 members found this post helpful.
Old 04-09-2015, 01:35 AM   #6
itlinux
LQ Newbie
 
Registered: Apr 2015
Posts: 1

Rep: Reputation: Disabled
Yea that exam is hard

Hi, I had the same idea on how to configure that part, I guess I did not get it right since I did not get 300 on the exam, but pretty close. Anyhow, I will see if anyone knows what options to look for. Of course there is no much I can say about the test. Just prepare yourself well. It's a hard one. Good luck.
 
  


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
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
Linux NFS client <--> Leopard NFS server ACL support tplessers Linux - Networking 0 02-17-2010 04:28 AM
nfs server on ubuntu doesn't play nice with nfs client on solaris mathiraj Linux - Networking 11 09-15-2009 02:08 PM
Can't connect from slackware nfs client to rhel nfs server llattan Linux - Server 2 04-21-2009 09:49 AM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM

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

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