* Two different security flavours in nfs mount auto.master
@ 2010-04-26 7:57 Richard Smits
2010-04-26 10:30 ` Ian Kent
0 siblings, 1 reply; 3+ messages in thread
From: Richard Smits @ 2010-04-26 7:57 UTC (permalink / raw)
To: autofs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Two different security flavours in nfs mount auto.master
2010-04-26 7:57 Two different security flavours in nfs mount auto.master Richard Smits
@ 2010-04-26 10:30 ` Ian Kent
2010-04-26 10:55 ` Richard Smits
0 siblings, 1 reply; 3+ messages in thread
From: Ian Kent @ 2010-04-26 10:30 UTC (permalink / raw)
To: Richard Smits; +Cc: autofs
On Mon, 2010-04-26 at 09:57 +0200, Richard Smits wrote:
> 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
Why don't you just return the required options from the program mount
script along with the mount location?
You can see an example of this in /etc/auto.net and in /etc/auto.smb. In
its simplest form it's just "-<comma separated opts> <mount location>"
and get rid of the -fstype option from the master map.
>
> 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
>
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Two different security flavours in nfs mount auto.master
2010-04-26 10:30 ` Ian Kent
@ 2010-04-26 10:55 ` Richard Smits
0 siblings, 0 replies; 3+ messages in thread
From: Richard Smits @ 2010-04-26 10:55 UTC (permalink / raw)
To: autofs; +Cc: Ian Kent
Ian Kent wrote:
> On Mon, 2010-04-26 at 09:57 +0200, Richard Smits wrote:
>> 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
>
> Why don't you just return the required options from the program mount
> script along with the mount location?
>
> You can see an example of this in /etc/auto.net and in /etc/auto.smb. In
> its simplest form it's just "-<comma separated opts> <mount location>"
> and get rid of the -fstype option from the master map.
Yes, this was exacly what I was looking for. Thank you for this good
tip. I did not know this was possible. I got it working now.
Thanks again.
Greetings .. Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-26 10:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26 7:57 Two different security flavours in nfs mount auto.master Richard Smits
2010-04-26 10:30 ` Ian Kent
2010-04-26 10:55 ` Richard Smits
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.