uid.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. --- a/configure
  2. +++ b/configure
  3. @@ -1588,7 +1588,7 @@ Optional Features:
  4. --enable-debug turn on debugging output and compile options
  5. --enable-gexec turn on gexec support (platform-specific)
  6. - --enable-setuid=USER turn on setuid support (default setuid=nobody)
  7. + --enable-setuid=USER turn on setuid support (default setuid=ganglia)
  8. --enable-setgid=GROUP turn on setgid support (default setgid=no)
  9. --enable-pedantic turn on pedantic mode during compile
  10. --enable-memcheck turn on memory checking during compile
  11. @@ -11152,7 +11152,7 @@ $as_echo "#define SUPPORT_GEXEC 0" >>confdefs.h
  12. fi
  13. -setuid_user=nobody
  14. +setuid_user=ganglia
  15. # Check whether --enable-setuid was given.
  16. if test "${enable_setuid+set}" = set; then :
  17. enableval=$enable_setuid; if test x"$enableval" != xno; then no_setuid=0; setuid_user=$enableval ; fi
  18. --- a/gmetad/gmetad.conf.in
  19. +++ b/gmetad/gmetad.conf.in
  20. @@ -99,8 +99,8 @@ data_source "my cluster" localhost
  21. #-------------------------------------------------------------------------------
  22. # User gmetad will setuid to (defaults to "nobody")
  23. # default: "nobody"
  24. -# setuid_username "nobody"
  25. -#
  26. +setuid_username "ganglia"
  27. +
  28. #-------------------------------------------------------------------------------
  29. # Umask to apply to created rrd files and grid directory structure
  30. # default: 0 (files are public)