* Any way to allow setuid daemon to access krb5 automounted nfs directories?
@ 2012-09-25 16:44 Orion Poplawski
2012-09-25 17:50 ` Jim Rees
0 siblings, 1 reply; 5+ messages in thread
From: Orion Poplawski @ 2012-09-25 16:44 UTC (permalink / raw)
To: linux-nfs@vger.kernel.org
Is there any way to allow setuid daemon to access krb5 automounted nfs
directories? Specifically I'm looking to run spamassassin's spamd on a remote
server and access user's home directories via krb5 nfs4. spamd changes user
to the user receiving the email being processes and needs to modify files in
the user's home directory. Is there any reasonably secure way to give this
daemon the ability to do this? Any way to tell rpc.gssd to use a specific
credential cache for this type of access rather than the default for that
effective uid?
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder Office FAX: 303-415-9702
3380 Mitchell Lane orion@nwra.com
Boulder, CO 80301 http://www.nwra.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Any way to allow setuid daemon to access krb5 automounted nfs directories?
2012-09-25 16:44 Any way to allow setuid daemon to access krb5 automounted nfs directories? Orion Poplawski
@ 2012-09-25 17:50 ` Jim Rees
2012-09-25 20:11 ` Orion Poplawski
2012-09-25 20:52 ` Myklebust, Trond
0 siblings, 2 replies; 5+ messages in thread
From: Jim Rees @ 2012-09-25 17:50 UTC (permalink / raw)
To: Orion Poplawski; +Cc: linux-nfs@vger.kernel.org
Orion Poplawski wrote:
Is there any way to allow setuid daemon to access krb5 automounted
nfs directories? Specifically I'm looking to run spamassassin's
spamd on a remote server and access user's home directories via krb5
nfs4. spamd changes user to the user receiving the email being
processes and needs to modify files in the user's home directory.
Is there any reasonably secure way to give this daemon the ability
to do this? Any way to tell rpc.gssd to use a specific credential
cache for this type of access rather than the default for that
effective uid?
You don't want to give spamd the user's credentials. You want to acl the
user's files so that spamd can do what it wants. Spamd will need its own
krb5 principal.
But I hope you're not planning to deliver mail over nfs. I think that would
be a mistake.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Any way to allow setuid daemon to access krb5 automounted nfs directories?
2012-09-25 17:50 ` Jim Rees
@ 2012-09-25 20:11 ` Orion Poplawski
2012-09-25 20:52 ` Myklebust, Trond
1 sibling, 0 replies; 5+ messages in thread
From: Orion Poplawski @ 2012-09-25 20:11 UTC (permalink / raw)
To: Jim Rees; +Cc: linux-nfs@vger.kernel.org
On 09/25/2012 11:50 AM, Jim Rees wrote:
> Orion Poplawski wrote:
>
> Is there any way to allow setuid daemon to access krb5 automounted
> nfs directories? Specifically I'm looking to run spamassassin's
> spamd on a remote server and access user's home directories via krb5
> nfs4. spamd changes user to the user receiving the email being
> processes and needs to modify files in the user's home directory.
> Is there any reasonably secure way to give this daemon the ability
> to do this? Any way to tell rpc.gssd to use a specific credential
> cache for this type of access rather than the default for that
> effective uid?
>
> You don't want to give spamd the user's credentials. You want to acl the
> user's files so that spamd can do what it wants. Spamd will need its own
> krb5 principal.
Hmm, okay, I may be able to run spamd in non-setuid mode and get it to work.
Thanks.
> But I hope you're not planning to deliver mail over nfs. I think that would
> be a mistake.
>
Oh no, but my mail host at the moment is woefully under-powered so I've moved
spam scanning off of it.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder Office FAX: 303-415-9702
3380 Mitchell Lane orion@nwra.com
Boulder, CO 80301 http://www.nwra.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Any way to allow setuid daemon to access krb5 automounted nfs directories?
2012-09-25 17:50 ` Jim Rees
2012-09-25 20:11 ` Orion Poplawski
@ 2012-09-25 20:52 ` Myklebust, Trond
2012-09-26 11:45 ` Jim Rees
1 sibling, 1 reply; 5+ messages in thread
From: Myklebust, Trond @ 2012-09-25 20:52 UTC (permalink / raw)
To: Jim Rees, Orion Poplawski; +Cc: linux-nfs@vger.kernel.org
> -----Original Message-----
> From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-
> owner@vger.kernel.org] On Behalf Of Jim Rees
> Sent: Tuesday, September 25, 2012 1:50 PM
> To: Orion Poplawski
> Cc: linux-nfs@vger.kernel.org
> Subject: Re: Any way to allow setuid daemon to access krb5 automounted
> nfs directories?
>
> But I hope you're not planning to deliver mail over nfs. I think that would be a
> mistake.
What's wrong with that? Delivering and serving up email is a fairly common use-case for NFS.
Trond
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Any way to allow setuid daemon to access krb5 automounted nfs directories?
2012-09-25 20:52 ` Myklebust, Trond
@ 2012-09-26 11:45 ` Jim Rees
0 siblings, 0 replies; 5+ messages in thread
From: Jim Rees @ 2012-09-26 11:45 UTC (permalink / raw)
To: Myklebust, Trond; +Cc: Orion Poplawski, linux-nfs@vger.kernel.org
Myklebust, Trond wrote:
> -----Original Message-----
> From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-
> owner@vger.kernel.org] On Behalf Of Jim Rees
> Sent: Tuesday, September 25, 2012 1:50 PM
> To: Orion Poplawski
> Cc: linux-nfs@vger.kernel.org
> Subject: Re: Any way to allow setuid daemon to access krb5 automounted
> nfs directories?
>
> But I hope you're not planning to deliver mail over nfs. I think that would be a
> mistake.
What's wrong with that? Delivering and serving up email is a fairly common
use-case for NFS.
Nothing against spamd or NFS in particular. It's just that some mailers
assume the file system is a local disk and are not prepared for the kinds of
failures you can get over a network.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-09-26 11:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-25 16:44 Any way to allow setuid daemon to access krb5 automounted nfs directories? Orion Poplawski
2012-09-25 17:50 ` Jim Rees
2012-09-25 20:11 ` Orion Poplawski
2012-09-25 20:52 ` Myklebust, Trond
2012-09-26 11:45 ` Jim Rees
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).