Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH root login in Dolomite #280

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions tasks/alp-post-deployment-considerations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
During the &productnameshort; deployment, you entered a password that is used for disk
encryption. To change the password, run the following command:
</para>
<screen>&prompt.root;fdectl passwd</screen>
<screen>&prompt.sudo;fdectl passwd</screen>
</section>
<section xml:id="alp-post-deploy-full-disk-encryption-tpm">
<title>TPM device</title>
Expand Down Expand Up @@ -75,7 +75,7 @@
<para>
To set &selnx; to the permissive mode temporarily, run:
</para>
<screen>&prompt.root;setenforce 0</screen>
<screen>&prompt.sudo;setenforce 0</screen>
<tip>
<para>
To set &selnx; to the permissive mode permanently, edit
Expand All @@ -91,8 +91,8 @@
system:
</para>
<screen>
&prompt.root;touch /etc/selinux/.autorelabel
&prompt.root;reboot
&prompt.sudo;touch /etc/selinux/.autorelabel
&prompt.sudo;reboot
</screen>
</important>
<para>
Expand All @@ -107,15 +107,15 @@ tcontext=system_u:system_r:modemmanager_t:s0 tclass=qipcrtr_socket permissive=0
<para>
To filter such messages, you can use the following commands:
</para>
<screen>&prompt.root;tail -f /var/log/audit/audit.log | grep -i AVC</screen>
<screen>&prompt.sudo;tail -f /var/log/audit/audit.log | grep -i AVC</screen>
<para>
and
</para>
<screen>&prompt.root;journalctl -f | grep -i AVC</screen>
<screen>&prompt.sudo;journalctl -f | grep -i AVC</screen>
<para>
For more advanced search, use the following command:
</para>
<screen>&prompt.root;ausearch -m avc,user_avc,selinux_err -i</screen>
<screen>&prompt.sudo;ausearch -m avc,user_avc,selinux_err -i</screen>
<para>
If such messages appear while using the application that did not behave correctly when
&selnx; was set to the enforce mode, the policies are too restrictive and need updating. You
Expand All @@ -136,22 +136,24 @@ tcontext=system_u:system_r:modemmanager_t:s0 tclass=qipcrtr_socket permissive=0
<itemizedlist>
<listitem>
<para>
install the <package>openssh-server-config-rootlogin</package> package and reboot the
Install the <package>openssh-server-config-rootlogin</package> package and reboot the
system.
</para>
<screen>
&prompt.root;<command>transactional-update pkg in openssh-server-config-rootlogin</command>
&prompt.root;<command>reboot</command>
&prompt.sudo;<command>transactional-update pkg in openssh-server-config-rootlogin</command>
&prompt.sudo;<command>reboot</command>
</screen>
</listitem>
<listitem>
<para>
Add a file containing the snippet <literal>PermitRootLogin yes</literal> in the
<filename>/etc/sshd/sshd_config.d/</filename> directory and reboot, for example:
Add a file containing <literal>PermitRootLogin yes</literal> in the
<filename>/etc/sshd/sshd_config.d/</filename> directory and restart the <systemitem
class="daemon">sshd</systemitem> service, for example:
</para>
<screen>
&prompt.root;echo 'PermitRootLogin yes' &gt;&gt; /etc/sshd/sshd_config.d/root_login_config
&prompt.root;<command>reboot</command>
&prompt.sudo;mkdir -p /etc/sshd/sshd_config.d/ &amp;&amp; echo 'PermitRootLogin yes' \
&gt;&gt; /etc/sshd/sshd_config.d/root_login_config
&prompt.sudo;<command>systemctl restart sshd.service</command>
</screen>
</listitem>
</itemizedlist>
Expand Down