Disable PAM for sudo in Fedora ci
This commit is contained in:
parent
5dbce19ba4
commit
12dc0cdaeb
|
|
@ -277,6 +277,9 @@ jobs:
|
||||||
options: --volume ${{ github.workspace }}:/work --workdir /work --privileged
|
options: --volume ${{ github.workspace }}:/work --workdir /work --privileged
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
|
echo "::group::Disable PAM for sudo with root and no tty"
|
||||||
|
bin/disable_pam_for_sudo.sh
|
||||||
|
echo "::endgroup::"
|
||||||
echo "::group::Install system prerequisites"
|
echo "::group::Install system prerequisites"
|
||||||
bin/install_prerequisites_fedora.sh
|
bin/install_prerequisites_fedora.sh
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
|
||||||
|
|
@ -199,6 +199,9 @@ jobs:
|
||||||
options: --volume ${{ github.workspace }}:/work --workdir /work --privileged --env CARGO_TERM_COLOR=always
|
options: --volume ${{ github.workspace }}:/work --workdir /work --privileged --env CARGO_TERM_COLOR=always
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
|
echo "::group::Disable PAM for sudo with root and no tty"
|
||||||
|
bin/disable_pam_for_sudo.sh
|
||||||
|
echo "::endgroup::"
|
||||||
echo "::group::Install Prerequisites"
|
echo "::group::Install Prerequisites"
|
||||||
bin/install_prerequisites_fedora.sh
|
bin/install_prerequisites_fedora.sh
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -Eeuo pipefail
|
||||||
|
|
||||||
|
echo "----- Disable PAM for sudo -----"
|
||||||
|
{
|
||||||
|
echo "auth sufficient pam_permit.so"
|
||||||
|
echo "account sufficient pam_permit.so"
|
||||||
|
echo "session sufficient pam_permit.so"
|
||||||
|
} > /etc/pam.d/sudo
|
||||||
|
cat /etc/pam.d/sudo
|
||||||
|
|
||||||
|
|
@ -6,6 +6,9 @@ date
|
||||||
echo "# os"
|
echo "# os"
|
||||||
uname -a
|
uname -a
|
||||||
|
|
||||||
|
echo "# user"
|
||||||
|
whoami
|
||||||
|
|
||||||
echo "# python3"
|
echo "# python3"
|
||||||
if command -V python3 ; then
|
if command -V python3 ; then
|
||||||
which python3
|
which python3
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue