pbs_account.8B 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. .\" Copyright (C) 1994-2018 Altair Engineering, Inc.
  2. .\" For more information, contact Altair at www.altair.com.
  3. .\"
  4. .\" This file is part of the PBS Professional ("PBS Pro") software.
  5. .\"
  6. .\" Open Source License Information:
  7. .\"
  8. .\" PBS Pro is free software. You can redistribute it and/or modify it under the
  9. .\" terms of the GNU Affero General Public License as published by the Free
  10. .\" Software Foundation, either version 3 of the License, or (at your option) any
  11. .\" later version.
  12. .\"
  13. .\" PBS Pro is distributed in the hope that it will be useful, but WITHOUT ANY
  14. .\" WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  15. .\" FOR A PARTICULAR PURPOSE.
  16. .\" See the GNU Affero General Public License for more details.
  17. .\"
  18. .\" You should have received a copy of the GNU Affero General Public License
  19. .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. .\"
  21. .\" Commercial License Information:
  22. .\"
  23. .\" For a copy of the commercial license terms and conditions,
  24. .\" go to: (http://www.pbspro.com/UserArea/agreement.html)
  25. .\" or contact the Altair Legal Department.
  26. .\"
  27. .\" Altair’s dual-license business model allows companies, individuals, and
  28. .\" organizations to create proprietary derivative works of PBS Pro and
  29. .\" distribute them - whether embedded or bundled with other software -
  30. .\" under a commercial license agreement.
  31. .\"
  32. .\" Use of Altair’s trademarks, including but not limited to "PBS™",
  33. .\" "PBS Professional®", and "PBS Pro™" and Altair’s logos is subject to Altair's
  34. .\" trademark licensing policies.
  35. .\"
  36. .TH pbs_account 8B "16 October 2017" Local "PBS Professional"
  37. .SH NAME
  38. .B pbs_account
  39. For Windows. Manage PBS service account
  40. .SH SYNOPSIS
  41. .B pbs_account
  42. [-a <PBS service account name>] [-c [<password>]] [--ci]
  43. .RS 12
  44. [--instid <instance ID>] [-o <output path>]
  45. .br
  46. [-p [<password>]] [--reg <service path>] [-s]
  47. .br
  48. [--unreg <service path>]
  49. .RE
  50. .SH DESCRIPTION
  51. The
  52. .B pbs_account
  53. command is used to manage the PBS service account. It is used to
  54. create the account, set or validate the account password, add
  55. privileges to the account, and register or unregister the account with
  56. the SCM.
  57. .SH Permissions
  58. This command can be run by administrators only.
  59. .SH Platforms
  60. This command is available on Windows only.
  61. .SH OPTIONS
  62. .IP "-a <account name>" 15
  63. Specifies service account name.
  64. .IP "-c [<password>]" 15
  65. If specified account does not exist, creates the account with the password.
  66. If specified account exists, validates password against it.
  67. Gives necessary privileges to the specified account:
  68. .I Create Token Object, Replace Process Level Token, Log on as a Service,
  69. and
  70. .I Act as Part of the Operating System
  71. If password is not specified, user is prompted for password.
  72. .IP "--ci" 15
  73. Informational only. Prints actions taken by pbs_account while
  74. creating PBS service account while operations are performed.
  75. .IP "instid <instance ID>" 15
  76. Specifies the instance ID when registering or unregistering multiple
  77. instances of a service. Example:
  78. .RS 18
  79. pbs_account --reg "C:\\Program Files (x86)\\PBS Pro_2\\exec\\sbin\\pbs_mom" --instid 2 -a <username> -p <password>
  80. .br
  81. pbs_account --unreg "C:\\Program Files (x86)\\PBS Pro_2\\exec\\sbin\\pbs_mom" --instid 2
  82. .RE
  83. .IP "-o <output path>" 15
  84. Prints stdout and stderr messages in specified output path.
  85. .IP "-p [<password >]" 15
  86. Updates the PBS service account password. If no password is specified,
  87. the user is prompted for a password.
  88. .IP "--reg <path to service>" 15
  89. Registers the PBS service with the SCM, instructing it to run the services
  90. under the PBS service account.
  91. .I path to service
  92. must be in double quotes.
  93. .IP "-S" 15
  94. Adds necessary privileges to the PBS service account. Grants the
  95. "Create Token Object", "Replace Process Level Token", "Log On as a
  96. Service", and "Act as Part of the Operating System" privileges to PBS
  97. service account.
  98. .IP "--unreg <path to service>" 15
  99. Unregisters the PBS service with the SCM.
  100. .I path to service
  101. must be in double quotes.
  102. .IP "(no options)" 15
  103. Prints name of PBS service account, if it exists. Exit value is 0.
  104. .SH Examples
  105. To create the PBS service account:
  106. .RS 4
  107. pbs_account -c -s -p <password>
  108. .RE
  109. To change the PBS service account:
  110. .RS 4
  111. pbs_account [--reg <service path>] -a <PBS service account name>
  112. .RE
  113. To register the server, scheduler, MoM, comm, and rshd services:
  114. .RS 4
  115. .nf
  116. pbs_account --reg "\\Program Files\\PBS Pro\\exec\\sbin\\pbs_server.exe" -p <password>
  117. .br
  118. pbs_account --reg "\\Program Files\\PBS Pro\\exec\\sbin\\pbs_mom.exe" -p <password>
  119. .br
  120. pbs_account --reg "\\Program Files\\PBS Pro\\exec\\sbin\\pbs_sched.exe" -p <password>
  121. .br
  122. pbs_account --reg "\\Program Files\\PBS Pro\\exec\\sbin\\pbs_comm.exe" -p <password>
  123. .br
  124. pbs_account --reg "\\Program Files\\PBS Pro\\exec\\sbin\\pbs_rshd.exe" -p <password>
  125. .fi
  126. .RE
  127. .SH Exit Value
  128. .IP "Zero" 15
  129. Upon success