您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

control-socket 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # -*- text -*-
  2. ######################################################################
  3. #
  4. # Control socket interface.
  5. #
  6. # In the future, we will add username/password checking for
  7. # connections to the control socket. We will also add
  8. # command authorization, where the commands entered by the
  9. # administrator are run through a virtual server before
  10. # they are executed.
  11. #
  12. # For now, anyone who has permission to connect to the socket
  13. # has nearly complete control over the server. Be warned!
  14. #
  15. # This functionality is NOT enabled by default.
  16. #
  17. # See also the "radmin" program, which is used to communicate
  18. # with the server over the control socket.
  19. #
  20. # $Id: 6a6f2b9428713083720b145d12c90b9747510ec1 $
  21. #
  22. ######################################################################
  23. listen {
  24. #
  25. # Listen on the control socket.
  26. #
  27. type = control
  28. #
  29. # Socket location.
  30. #
  31. # This file is created with the server's uid and gid.
  32. # It's permissions are r/w for that user and group, and
  33. # no permissions for "other" users. These permissions form
  34. # minimal security, and should not be relied on.
  35. #
  36. socket = ${run_dir}/${name}.sock
  37. #
  38. # The following two parameters perform authentication and
  39. # authorization of connections to the control socket.
  40. #
  41. # If not set, then ANYONE can connect to the control socket,
  42. # and have complete control over the server. This is likely
  43. # not what you want.
  44. #
  45. # One, or both, of "uid" and "gid" should be set. If set, the
  46. # corresponding value is checked. Unauthorized users result
  47. # in an error message in the log file, and the connection is
  48. # closed.
  49. #
  50. #
  51. # Name of user that is allowed to connect to the control socket.
  52. #
  53. # uid = radius
  54. #
  55. # Name of group that is allowed to connect to the control socket.
  56. #
  57. # gid = radius
  58. #
  59. # Access mode.
  60. #
  61. # This can be used to give *some* administrators access to
  62. # monitor the system, but not to change it.
  63. #
  64. # ro = read only access (default)
  65. # rw = read/write access.
  66. #
  67. # mode = rw
  68. }