Skip to content

Commit

Permalink
Onboarding SSH connected Ubuntu client with install-created user (#3542)
Browse files Browse the repository at this point in the history
ttps://bugzilla.suse.com/show_bug.cgi?id=1213437
SUSE/spacewalk#22053
  • Loading branch information
keichwa authored Dec 17, 2024
1 parent 5be5b98 commit 45daed9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- Documented onboarding SSH connected Ubuntu clients with install-created
user in Client Configuration Guide (bsc#1213437)
- Added Saline documentation to Salt Guide
- Replaced mgradm with mrgctl in Installation and Upgrade Guide
- Corrected metadata signing section in Administration Guide
Expand Down
34 changes: 34 additions & 0 deletions modules/client-configuration/pages/clients-ubuntu.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ If the default user has been granted administrative privileges during installati
With cloud instances this does not happen because [command]``cloud-init`` automatically creates a file under [path]``/etc/sudoers.d`` and grants privilege escalation through [command]``sudo`` without the need for a password.
====



=== Grant Root User Access

.Procedure: Granting Root User Access

. On the client, edit the [filename]``sudoers`` file:
Expand All @@ -256,6 +260,36 @@ We recommend that you remove the line from the [path]``sudoers`` file after the



=== Bootstrap as Install-created User via SSH

To bootstrap an Ubuntu client via SSH you must add the install-created user to the sudo group.
Then run the bootstrap script from the client.

.Procedure: Adding Install-created User to sudo Group and Bootstrapping via SSH

. On the client, as root, run from the command line (replace [literal]``<username>`` with the name of the install-created user):
+

----
sudo usermod -aG sudo <username>
----

. Bootstrap the client system from its command line (replace [literal]``<SERVER_FQDN>`` with the fully qualified domain name of the {productname} Server):
+

----
sudo su -
curl -Sks https://<SERVER_FQDN>/pub/bootstrap/bootstrap-script.sh | /bin/bash
----

[IMPORTANT]
====
{ubuntu} can only be bootstrapped using the corresponding {ubuntu} bootstrap script run from the client system's command line after issuing [command]``sudo su -`` as above.
It cannot be bootstrapped via the {productname} {webui} due to the fact that the root user is disabled on {ubuntu} by default, and that the {webui} does not permit for privilege escalation of the {ubuntu} install-created user.
====



== Register Clients

include::snippets/create_bootstrap_repo_register.adoc[]
Expand Down

0 comments on commit 45daed9

Please sign in to comment.