mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
registry: skip root check when running with uid-wrapper enabled
Currently registry config is not used in the clustered testenv, so currently there's no problem. But once we do add that, the check would be triggered. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14787 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Wed Sep 22 16:57:25 UTC 2021 on sn-devel-184
This commit is contained in:
parent
ec95b3042b
commit
702ebb3d8c
@ -737,7 +737,7 @@ WERROR regdb_init(void)
|
||||
* Clustered Samba can only work as root because we need messaging to
|
||||
* talk to ctdb which only works as root.
|
||||
*/
|
||||
if (lp_clustering() && geteuid() != 0) {
|
||||
if (!uid_wrapper_enabled() && lp_clustering() && geteuid() != 0) {
|
||||
DBG_ERR("Cluster mode requires running as root.\n");
|
||||
return WERR_ACCESS_DENIED;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user