Date: Fri, 29 Mar 2024 05:35:10 +0000 (UTC) Message-ID: <99567454.3.1711690510387@44bab36dd6f6> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_2_1868448818.1711690510387" ------=_Part_2_1868448818.1711690510387 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Developer's forum post: http://co= mmunity.pbspro.org/t/pp-475-pp-476-pbs-audit-a-tool-to-detect-and-fix-permi= ssions-problems-preventing-pbs-professional-from-functioning-properly-optim= ally/518
Target Release | 17.2.1 |
---|---|
JIRA |
PP-475 - As an admin, if ther=
e are any permissions problems preventing PBS Professional from functioning=
properly/optimally detected, I'd like a tool to fix them for me PP-476 - As an admin, I'd lik= e to be able to easily check that there are no permissions problems prevent= ing PBS Professional from functioning properly/optimally In Progress |
Document status | Initial version |
Document owner | |
Designer | |
Developers | |
QA |
|
Forum Discussion | Community forum |
=C2=B7 Details:
pbs_audit runs in =E2=80=9Creport=E2= =80=9D mode and if user is a super user then pbs_audit will run in both "re= port" and =E2=80=9Cfix=E2=80=9D mode . In this mode pbs_audit reports= on any errors in the PBS infrastructure files that &n= bsp; it detects. pbs_audit will report if any files and direct= ories are missing , any permission/ownership problems and pbs_audit will ve= rify any file checksum differences than original PBS_EXEC files &nbs= p; which was provided by PBS Insta= ller.
If user is a super user pbs_audit will= ask a question if user wants to fix permissions and ownership problems . I= n fix mode pbs_audit will examine each of the relevant infrastructure files= and where possible fix any permission an= d ownership problems that it detects and print a message of what got change= d. If it is unable to fix a problem, it will simply print a message regardi= ng what was = detected.
The problems are categorized and a list of t= he problem messages are displayed in different categories. Those categories= which are empty do not show in the output.
pbs_audit will read the file paths fro= m value set in Environment for PBS_CONF_FILE else it will use /etc/pbs.conf= and will report error message if it is not able find or open the file &nbs= p;
Example: <conf_file_path>, C= ould not open pbs config file
pbs_audit will report the problems in = different categories , Checksum checks are only done for PBS_EXEC
Example:
=3D=3D=3D PBS Infrastructure Prob= lems Detected =3D=3D=3D
Missing files or directories:
<file/dir name>, No such fil= e or directory
Files or Directories have incorre= ct Permissions:
<file/dir name> File/Direct= ory is having incorrect permissions
Files or Directories with Incorre= ct Ownership:
<file/dir name> File/Direct= ory has incorrect ownership
File checksum problems:
<file name> File checksum d= oes not match with the original provided by PBS Installer
If user is a super user pbs_au= dit will ask the question that if user wants to fix permission and ownershi= p issues:
Example:
Do you want to fix permissi= on and ownership problems (y/n) ?
If user enter y or yes :
After fixing permissions:
=C2=B7 <file/dir name> corre= cted permissions
If fails :
<file/dir name> permission = correction failed
After fixing ownership:
<file/dir name> corrected o= wnership
If fails :
<file/dir name> ownership c= orrection failed
If user enters n or no :
pbs_audit will exit
If no problem is detected pbs_audit w= ill report
=3D=3D=3D No PBS Infrastructu=
re Problems Detected =3D=3D=3D