summaryrefslogtreecommitdiffstats
path: root/ctdb/config/ctdb.sudoers
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2013-04-03 14:44:08 +1100
committerAmitay Isaacs <amitay@gmail.com>2013-04-08 11:14:28 +1000
commitd931e73fb83fe1ced9c41b06c15060fd18aff3d7 (patch)
treed4223a6b1ebfacdcc7cf420ce4711b695b1b6d19 /ctdb/config/ctdb.sudoers
parent41f0252da22b97667ecdbc2235930d3b2523aa4d (diff)
downloadsamba-d931e73fb83fe1ced9c41b06c15060fd18aff3d7.tar.gz
samba-d931e73fb83fe1ced9c41b06c15060fd18aff3d7.tar.xz
samba-d931e73fb83fe1ced9c41b06c15060fd18aff3d7.zip
statd-callout: Make sure statd callout script always runs as root
In RHEL 6+, rpc.statd runs as "rpcuser" instead of root as on RHEL 5. This prevents CTDB tool commands talking to daemon since "rpcuser" cannot access CTDB socket. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit fe8c4880b371492a38554868d4ca10918c54e412)
Diffstat (limited to 'ctdb/config/ctdb.sudoers')
-rw-r--r--ctdb/config/ctdb.sudoers3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/config/ctdb.sudoers b/ctdb/config/ctdb.sudoers
new file mode 100644
index 0000000000..1c6619b654
--- /dev/null
+++ b/ctdb/config/ctdb.sudoers
@@ -0,0 +1,3 @@
+Defaults!/etc/ctdb/statd-callout !requiretty
+
+rpcuser ALL=(ALL) NOPASSWD: /etc/ctdb/statd-callout