NetWorker:authc_configure.shがスタックし、Enterキーを押すとエラーで失敗する回数が発生します。ユーザー nsrtomcat はパス /nsr/authc/conf で読み取り権限を持っていません

概要: authc_configure.shスクリプトを実行するとスタックし、Enterキーを押すと失敗する回数が次のメッセージで表示されます。ユーザー nsrtomcat は、パス /nsr/authc/conf で読み取り権限を持っていません。 この記事は、記事番号の内線番号です。000044255、Red Hat 8 Linux環境で発生した状況と、Linux管理者の助けを借りて解決する方法について詳しく説明します。この記事に従う前に説明します。この記事では、記事番号に記載されているシナリオ1について詳しく説明します。000044255 ...

この記事は次に適用されます: この記事は次には適用されません: この記事は、特定の製品に関連付けられていません。 すべての製品パージョンがこの記事に記載されているわけではありません。

現象

authc_configure.shスクリプトを実行するとスタックし、Enterキーを押すと失敗する回数が次のメッセージで表示されます。ユーザー nsrtomcat は、パス /nsr/authc/conf で読み取り権限を持っていません。


に従う 記事番号: 000044255スクリプトを再指定すると、スクリプトも停止し、Enterキーを押すと、同じエラーで失敗し、問題がオペレーティング システム レベルにあり、NetWorkerとは関係ないことを確認します。
 
[root@hostname ]# cat check_nsrtomcat.sh
command="[ -r /nsr/authc ]"
su - nsrtomcat -s /bin/sh -c "$command" > /dev/null 2>&1
if [ $? -ne 0 ]
then
echo "ERROR: User nsrtomcat does not have read permission at path /nsr/authc"
fi

[root@hostname ]# ./check_nsrtomcat.sh

ERROR: User nsrtomcat does not have read permission at path /nsr/authc

rootユーザー プロンプトからユーザーnsrtomcatに切り替えようとし、パスワードの入力を求めていることに気付いた。
 
[root@hostname ]# su - nsrtomcat
Last failed login: Tue Oct 25 05:42:28 CDT 2022 on pts/0
There were 5 failed login attempts since the last successful login.
This account is currently not available.
[root@hostname]#

原因

PAM sudoファイルでの順序付けにより、rootユーザープロンプトから別のユーザーに切り替えてパスワードを要求します。

解決方法

以下のソリューションは、変更の影響を把握/理解した後、Linux管理者が実行する必要があります。
PAM sudoファイルで順序を変更し、rootユーザー プロンプトから別のユーザーに変更した場合、パスワードを要求しません。

1.origingal /etc/pam.d/su ファイルのコピーを作成します。
[root@hostname ]# cd /etc/pam.d
[root@hostname pam.d]# cp su su.orig

2.ファイル/etc/pam.d/suを編集して、「auth sufficient pam_rootok.so」の順序を変更します。

編集前のファイルの内容を以下に示します。
[root@hostname pam.d]# cat su
#%PAM-1.0
auth required pam_wheel.so use_uid
authrequiredpam_env.so
auth sufficient pam_wheel.so trust use_uid
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#authsufficientpam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#authrequiredpam_wheel.so use_uid
authsubstacksystem-auth
auth include system-auth
authincludepostlogin
accountsufficientpam_succeed_if.so uid = 0 use_uid quiet
accountincludesystem-auth
passwordincludesystem-auth
sessionincludesystem-auth
sessionincludepostlogin
sessionoptionalpam_xauth.so
以下は、並べ替え後のファイルの内容を示しています。
[root@hostname pam.d]# cat su
#%PAM-1.0
auth            sufficient      pam_rootok.so
auth required pam_wheel.so use_uid
authrequiredpam_env.so
auth sufficient pam_wheel.so trust use_uid
# Uncomment the following line to implicitly trust users in the "wheel" group.
#authsufficientpam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#authrequiredpam_wheel.so use_uid
authsubstacksystem-auth
auth include system-auth
authincludepostlogin
accountsufficientpam_succeed_if.so uid = 0 use_uid quiet
accountincludesystem-auth
passwordincludesystem-auth
sessionincludesystem-auth
sessionincludepostlogin
sessionoptionalpam_xauth.so

3.authc_configure.shを再実行すると、正常に終了し、「The installation completed successfully.」というメッセージが表示されます。

文書のプロパティ
文書番号: 000204907
文書の種類: Solution
最終更新: 07 11月 2022
バージョン:  1
質問に対する他のDellユーザーからの回答を見つける
サポート サービス
お使いのデバイスがサポート サービスの対象かどうかを確認してください。