All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Smits <R.Smits@tudelft.nl>
To: autofs@linux.kernel.org
Subject: Two different security flavours in nfs mount auto.master
Date: Mon, 26 Apr 2010 09:57:15 +0200	[thread overview]
Message-ID: <4BD5475B.4040106@tudelft.nl> (raw)

Hello,

I was wondering if the next example would be possible with the 
automounter. I have a feeling this is not possible, but maybe there are 
some options I do not know about.

I have two nfs servers.

One with /export with standard nfs export.

One with /export with krb5 security.

Now I want to moutn one of the two if a condition is met. The condition 
I check with the excecutable automounter script.

That is not my problem.

The problem is the auto.master file. For a directory, I can have one 
security flavour. This is my problem. I need two. See below :

# NFS homedirs
/home/nfs	/etc/auto.nfs -rw,-fstype=nfs --timeout 60

/home/nfs is the homedir for the user, I cannot change this because this 
is in the configuration os samba. (We use winbind for authentication).

But my auto.nfs script checks if the user has a homedir on the sandard 
nfs3 server, or has a home on our nfs4/krb5 server.

But my auto.master isn't ready for this if you know what I mean.

I need :

# NFS homedirs
/home/nfs	/etc/auto.nfs -rw,-fstype=nfs --timeout 60
/home/nfs	/etc/auto.nfs -rw,-fstype=nfs4,sec=krb5 --timeout 60

This does not work :-( I have tried this.

Any idea if this is possible with the automounter. I am currently 
looking at pam_mount, but the automounter has my preference.

Greetings .. Richard

             reply	other threads:[~2010-04-26  7:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-26  7:57 Richard Smits [this message]
2010-04-26 10:30 ` Two different security flavours in nfs mount auto.master Ian Kent
2010-04-26 10:55   ` Richard Smits

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BD5475B.4040106@tudelft.nl \
    --to=r.smits@tudelft.nl \
    --cc=autofs@linux.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.