systemd: add instructions for disabling gssd to nfs.systemd.man
Subsystems (2)
PATCH v4 1/1 systemd: add instructions for disabling gssd to nfs.systemd.man
We've had several users complain about gssd automatically starting. Not everyone who has a krb5.keytab want to use secure NFS; the instructions for disabling gssd ought to be on the man page in addition to the README (which may not even be included in a distro's nfs-utils package).
--- systemd/nfs.systemd.man | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)
systemd/nfs.systemd.man +16 -1
@@ -79,11 +79,26 @@ unit should be enabled. Several other units which might be considered to be optional, such as .I rpc-gssd.service are careful to only start if the required configuration file exists. -.I rpc-gsdd.service +.I rpc-gssd.service will not start if the .I krb5.keytab file does not exist (typically in .IR /etc ). +.B rpc.gssd +is assumed to be needed if the +.I krb5.keytab +file is present. If a site needs this file present but does not want +.B rpc.gssd +running, it should create +.B /etc/systemd/system/rpc-gssd.service.d/01-disable.conf +containing +.RS +.nf +[Unit] +ConditionNull=false +.fi +.RE + .SS Restarting NFS services Most NFS daemons can be restarted at any time. They will reload any state that they need, and continue servicing requests. This is rarely
Signature · 1 line
2.9.4
Quoted 21 lines · Scott Mayhew
We've had several users complain about gssd automatically starting. Not everyone who has a krb5.keytab want to use secure NFS; the instructions for disabling gssd ought to be on the man page in addition to the README (which may not even be included in a distro's nfs-utils package).
Signed-off-by Scott Mayhew <[email protected]>--- systemd/nfs.systemd.man | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)systemd/nfs.systemd.man +1
-1@@ -79,11 +79,26 @@ unit should be enabled. Several other units which might be considered to be optional, such as .I rpc-gssd.service are careful to only start if the required configuration file exists. -.I rpc-gsdd.service +.I rpc-gssd.service will not start if the
systemd/nfs.systemd.man unit should be enabled. · line 93
Quoted 10 lines
systemd/nfs.systemd.man +7
-0.I krb5.keytab file does not exist (typically in .IR /etc ). +.B rpc.gssd +is assumed to be needed if the +.I krb5.keytab +file is present. If a site needs this file present but does not want +.B rpc.gssd +running, it should create +.B /etc/systemd/system/rpc-gssd.service.d/01-disable.conf
A substantially simpler approach would be to recommend
systemctl mask rpc-gssd.service
"mask" is also useful for disabling rpcbind if you use NFSv4 only and don't want the extra service.
NeilBrown
Quoted 18 lines
systemd/nfs.systemd.man +8
-0+containing +.RS +.nf +[Unit] +ConditionNull=false +.fi +.RE + .SS Restarting NFS services Most NFS daemons can be restarted at any time. They will reload any state that they need, and continue servicing requests. This is rarelySignature · 6 lines
2.9.4 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 36 lines · NeilBrown
Quoted 21 lines · Scott Mayhew
We've had several users complain about gssd automatically starting. Not everyone who has a krb5.keytab want to use secure NFS; the instructions for disabling gssd ought to be on the man page in addition to the README (which may not even be included in a distro's nfs-utils package).
Signed-off-by Scott Mayhew <[email protected]>--- systemd/nfs.systemd.man | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)systemd/nfs.systemd.man +1
-1@@ -79,11 +79,26 @@ unit should be enabled. Several other units which might be considered to be optional, such as .I rpc-gssd.service are careful to only start if the required configuration file exists. -.I rpc-gsdd.service +.I rpc-gssd.service will not start if thesystemd/nfs.systemd.man unit should be enabled. · line 93
Quoted 10 lines
systemd/nfs.systemd.man +7
-0.I krb5.keytab file does not exist (typically in .IR /etc ). +.B rpc.gssd +is assumed to be needed if the +.I krb5.keytab +file is present. If a site needs this file present but does not want +.B rpc.gssd +running, it should create +.B /etc/systemd/system/rpc-gssd.service.d/01-disable.confA substantially simpler approach would be to recommend
Quoted 1 line
systemctl mask rpc-gssd.service
Thanks, Neil. I had actually tried that a while back, but it doesn't seem to work in RHEL. It works fine for rpcbind, so I thought that maybe the Condition clause in the unit file took precedence over masking or something. I see now that masking rpc-gssd works in Fedora, so I'll go digging in systemd to see if there's a bug fix that might need to be backported to RHEL.
Anyways, any objection to listing both methods in the man page?
-Scott
Quoted 25 lines
"mask" is also useful for disabling rpcbind if you use NFSv4 only and don't want the extra service.
NeilBrown
Quoted 18 lines
systemd/nfs.systemd.man +8
-0+containing +.RS +.nf +[Unit] +ConditionNull=false +.fi +.RE + .SS Restarting NFS services Most NFS daemons can be restarted at any time. They will reload any state that they need, and continue servicing requests. This is rarelySignature · 6 lines
2.9.4 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 40 lines · Scott Mayhew
Quoted 36 lines · NeilBrown
Quoted 21 lines · Scott Mayhew
We've had several users complain about gssd automatically starting. Not everyone who has a krb5.keytab want to use secure NFS; the instructions for disabling gssd ought to be on the man page in addition to the README (which may not even be included in a distro's nfs-utils package).
Signed-off-by Scott Mayhew <[email protected]>--- systemd/nfs.systemd.man | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)systemd/nfs.systemd.man +1
-1@@ -79,11 +79,26 @@ unit should be enabled. Several other units which might be considered to be optional, such as .I rpc-gssd.service are careful to only start if the required configuration file exists. -.I rpc-gsdd.service +.I rpc-gssd.service will not start if thesystemd/nfs.systemd.man unit should be enabled. · line 93
Quoted 10 lines
systemd/nfs.systemd.man +7
-0.I krb5.keytab file does not exist (typically in .IR /etc ). +.B rpc.gssd +is assumed to be needed if the +.I krb5.keytab +file is present. If a site needs this file present but does not want +.B rpc.gssd +running, it should create +.B /etc/systemd/system/rpc-gssd.service.d/01-disable.confA substantially simpler approach would be to recommend
Quoted 1 line
systemctl mask rpc-gssd.service
Quoted 8 lines
Thanks, Neil. I had actually tried that a while back, but it doesn't seem to work in RHEL. It works fine for rpcbind, so I thought that maybe the Condition clause in the unit file took precedence over masking or something. I see now that masking rpc-gssd works in Fedora, so I'll go digging in systemd to see if there's a bug fix that might need to be backported to RHEL.
Anyways, any objection to listing both methods in the man page?
It depends on why "mask" doesn't work in RHEL.
If the reason is specific to RHEL, then I don't think it should be documented in upstream nfs-utils.
If the reason is specific to some version(s) of systemd, then Maybe document it as "use using systemd prior to XXXX, do this instead".
NeilBrown
Quoted 33 lines
-Scott
Quoted 21 lines
"mask" is also useful for disabling rpcbind if you use NFSv4 only and don't want the extra service.
NeilBrown
Quoted 14 lines
systemd/nfs.systemd.man +8
-0+containing +.RS +.nf +[Unit] +ConditionNull=false +.fi +.RE + .SS Restarting NFS services Most NFS daemons can be restarted at any time. They will reload any state that they need, and continue servicing requests. This is rarelySignature · 1 line
2.9.4Quoted 4 lines
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 49 lines · NeilBrown
Quoted 47 lines · Scott Mayhew
Quoted 36 lines · NeilBrown
Quoted 21 lines · Scott Mayhew
We've had several users complain about gssd automatically starting. Not everyone who has a krb5.keytab want to use secure NFS; the instructions for disabling gssd ought to be on the man page in addition to the README (which may not even be included in a distro's nfs-utils package).
Signed-off-by Scott Mayhew <[email protected]>--- systemd/nfs.systemd.man | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)systemd/nfs.systemd.man +1
-1@@ -79,11 +79,26 @@ unit should be enabled. Several other units which might be considered to be optional, such as .I rpc-gssd.service are careful to only start if the required configuration file exists. -.I rpc-gsdd.service +.I rpc-gssd.service will not start if thesystemd/nfs.systemd.man unit should be enabled. · line 93
Quoted 10 lines
systemd/nfs.systemd.man +7
-0.I krb5.keytab file does not exist (typically in .IR /etc ). +.B rpc.gssd +is assumed to be needed if the +.I krb5.keytab +file is present. If a site needs this file present but does not want +.B rpc.gssd +running, it should create +.B /etc/systemd/system/rpc-gssd.service.d/01-disable.confA substantially simpler approach would be to recommend
Quoted 1 line
systemctl mask rpc-gssd.service
Thanks, Neil. I had actually tried that a while back, but it doesn't seem to work in RHEL. It works fine for rpcbind, so I thought that maybe the Condition clause in the unit file took precedence over masking or something. I see now that masking rpc-gssd works in Fedora, so I'll go digging in systemd to see if there's a bug fix that might need to be backported to RHEL.
Quoted 7 lines
Quoted 1 line
Anyways, any objection to listing both methods in the man page?
It depends on why "mask" doesn't work in RHEL.
If the reason is specific to RHEL, then I don't think it should be documented in upstream nfs-utils.
If the reason is specific to some version(s) of systemd, then Maybe document it as "use using systemd prior to XXXX, do this instead".
It turns out that we have rpc-gssd.service symlinked to nfs-secure.service in both RHEL and Fedora for backward compatibility purposes, so it's necessary to mask both.
I'll send a patch documenting masking just the rpc-gssd.service.
-Scott
Quoted 37 lines
NeilBrown
Quoted 33 lines
-Scott
Quoted 21 lines
"mask" is also useful for disabling rpcbind if you use NFSv4 only and don't want the extra service.
NeilBrown
Quoted 14 lines
systemd/nfs.systemd.man +8
-0+containing +.RS +.nf +[Unit] +ConditionNull=false +.fi +.RE + .SS Restarting NFS services Most NFS daemons can be restarted at any time. They will reload any state that they need, and continue servicing requests. This is rarelySignature · 1 line
2.9.4Quoted 4 lines
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 1/1 systemd: add a blurb about masking rpc-gssd to the man page
In reply to NeilBrownThis is helpful for users that have a krb5.keytab but do not want to use secure NFS. Also fixed a typo that appears earlier on the page.
--- systemd/nfs.systemd.man | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)
systemd/nfs.systemd.man +14 -4
@@ -79,7 +79,7 @@ unit should be enabled. Several other units which might be considered to be optional, such as .I rpc-gssd.service are careful to only start if the required configuration file exists. -.I rpc-gsdd.service +.I rpc-gssd.service will not start if the .I krb5.keytab file does not exist (typically in
@@ -120,10 +120,11 @@ be needed to reduce system load to an absolute minimum, or to reduce attack surface by not running daemons that are not absolutely required. .PP -Two particular services which this can apply to are -.I rpcbind +Three particular services which this can apply to are +.IR rpcbind , +.IR idmapd , and -.IR idmapd . +.IR rpc-gssd . .I rpcbind is not part of the .I nfs-utils
@@ -155,6 +156,15 @@ is not needed and not wanted, it can be masked with .RS .B systemctl mask idmapd .RE +.I rpc-gssd +is assumed to be needed if the +.I krb5.keytab +file is present. If a site needs this file present but does not want +.I rpc-gssd +running, it can be masked with +.RS +.B systemctl mask rpc-gssd +.RE .SH FILES /etc/nfs.conf .br
Signature · 1 line
2.9.4
Quoted 59 lines · Scott Mayhew
Quoted 49 lines · NeilBrown
Quoted 47 lines · Scott Mayhew
Quoted 36 lines · NeilBrown
Quoted 21 lines · Scott Mayhew
We've had several users complain about gssd automatically starting. Not everyone who has a krb5.keytab want to use secure NFS; the instructions for disabling gssd ought to be on the man page in addition to the README (which may not even be included in a distro's nfs-utils package).
Signed-off-by Scott Mayhew <[email protected]>--- systemd/nfs.systemd.man | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)systemd/nfs.systemd.man +1
-1@@ -79,11 +79,26 @@ unit should be enabled. Several other units which might be considered to be optional, such as .I rpc-gssd.service are careful to only start if the required configuration file exists. -.I rpc-gsdd.service +.I rpc-gssd.service will not start if thesystemd/nfs.systemd.man unit should be enabled. · line 93
Quoted 10 lines
systemd/nfs.systemd.man +7
-0.I krb5.keytab file does not exist (typically in .IR /etc ). +.B rpc.gssd +is assumed to be needed if the +.I krb5.keytab +file is present. If a site needs this file present but does not want +.B rpc.gssd +running, it should create +.B /etc/systemd/system/rpc-gssd.service.d/01-disable.confA substantially simpler approach would be to recommend
Quoted 1 line
systemctl mask rpc-gssd.service
Thanks, Neil. I had actually tried that a while back, but it doesn't seem to work in RHEL. It works fine for rpcbind, so I thought that maybe the Condition clause in the unit file took precedence over masking or something. I see now that masking rpc-gssd works in Fedora, so I'll go digging in systemd to see if there's a bug fix that might need to be backported to RHEL.
Quoted 7 lines
Quoted 1 line
Anyways, any objection to listing both methods in the man page?
It depends on why "mask" doesn't work in RHEL.
If the reason is specific to RHEL, then I don't think it should be documented in upstream nfs-utils.
If the reason is specific to some version(s) of systemd, then Maybe document it as "use using systemd prior to XXXX, do this instead".
Quoted 3 lines
It turns out that we have rpc-gssd.service symlinked to nfs-secure.service in both RHEL and Fedora for backward compatibility purposes, so it's necessary to mask both.
That makes sense. I have a similar sort of hack (different specifics) in SUSE to try to provide back-compatibility. It also has problematic failure modes.
systemd actually has a fairly robust "alias" mechanism that it uses internally, but it is only available for devices. Every "/dev/..' device unit declares that it "Follows" the corresponding "/sys/devices/..." device unit (which is "Followed-by" the dev units). I would have loved to have the infrastructure for creating compat aliases ... but it isn't available :-(
Quoted 2 lines
I'll send a patch documenting masking just the rpc-gssd.service.
Thanks,
NeilBrown
Quoted 45 lines
-Scott
Quoted 37 lines
NeilBrown
Quoted 33 lines
-Scott
Quoted 21 lines
"mask" is also useful for disabling rpcbind if you use NFSv4 only and don't want the extra service.
NeilBrown
Quoted 14 lines
systemd/nfs.systemd.man +8
-0+containing +.RS +.nf +[Unit] +ConditionNull=false +.fi +.RE + .SS Restarting NFS services Most NFS daemons can be restarted at any time. They will reload any state that they need, and continue servicing requests. This is rarelySignature · 1 line
2.9.4Quoted 4 lines
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [nfs-utils PATCH] systemd: add a blurb about masking rpc-gssd to the man page
In reply to Scott MayhewQuoted 4 lines · Scott Mayhew
This is helpful for users that have a krb5.keytab but do not want to use secure NFS. Also fixed a typo that appears earlier on the page.
Signed-off-by Scott Mayhew <[email protected]>
Thanks,
NeilBrown
Quoted 55 lines
--- systemd/nfs.systemd.man | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)systemd/nfs.systemd.man +14
-4@@ -79,7 +79,7 @@ unit should be enabled. Several other units which might be considered to be optional, such as .I rpc-gssd.service are careful to only start if the required configuration file exists. -.I rpc-gsdd.service +.I rpc-gssd.service will not start if the .I krb5.keytab file does not exist (typically in@@ -120,10 +120,11 @@ be needed to reduce system load to an absolute minimum, or to reduce attack surface by not running daemons that are not absolutely required. .PP -Two particular services which this can apply to are -.I rpcbind +Three particular services which this can apply to are +.IR rpcbind , +.IR idmapd , and -.IR idmapd . +.IR rpc-gssd . .I rpcbind is not part of the .I nfs-utils@@ -155,6 +156,15 @@ is not needed and not wanted, it can be masked with .RS .B systemctl mask idmapd .RE +.I rpc-gssd +is assumed to be needed if the +.I krb5.keytab +file is present. If a site needs this file present but does not want +.I rpc-gssd +running, it can be masked with +.RS +.B systemctl mask rpc-gssd +.RE .SH FILES /etc/nfs.conf .brSignature · 6 lines
2.9.4 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [nfs-utils PATCH] systemd: add a blurb about masking rpc-gssd to the man page
In reply to Scott MayhewQuoted 4 lines · Scott Mayhew
This is helpful for users that have a krb5.keytab but do not want to use secure NFS. Also fixed a typo that appears earlier on the page.
Signed-off-by Scott Mayhew <[email protected]>
Committed!
steved.
Quoted 49 lines
--- systemd/nfs.systemd.man | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)systemd/nfs.systemd.man +14
-4@@ -79,7 +79,7 @@ unit should be enabled. Several other units which might be considered to be optional, such as .I rpc-gssd.service are careful to only start if the required configuration file exists. -.I rpc-gsdd.service +.I rpc-gssd.service will not start if the .I krb5.keytab file does not exist (typically in@@ -120,10 +120,11 @@ be needed to reduce system load to an absolute minimum, or to reduce attack surface by not running daemons that are not absolutely required. .PP -Two particular services which this can apply to are -.I rpcbind +Three particular services which this can apply to are +.IR rpcbind , +.IR idmapd , and -.IR idmapd . +.IR rpc-gssd . .I rpcbind is not part of the .I nfs-utils@@ -155,6 +156,15 @@ is not needed and not wanted, it can be masked with .RS .B systemctl mask idmapd .RE +.I rpc-gssd +is assumed to be needed if the +.I krb5.keytab +file is present. If a site needs this file present but does not want +.I rpc-gssd +running, it can be masked with +.RS +.B systemctl mask rpc-gssd +.RE .SH FILES /etc/nfs.conf .br