Feb 10, 2024 5 min read

Adding a User to Ubuntu Landscape Without Email Configuration

Adding a User to Ubuntu Landscape Without Email Configuration

Introduction

Landscape offers a scalable solution for the administration of Ubuntu machines, enabling efficient management of desktops, servers, and clouds from a single platform. It simplifies the complexities of supporting large networks, enhancing security, and ensuring compliance across thousands of Ubuntu instances. While Landscape streamlines software updates, user management, and system monitoring for up to 40,000 machines, setting up new users traditionally hinges on email verification, posing a challenge in environments without SMTP configuration. This guide addresses that challenge, presenting a method to add users to Landscape without email, facilitating immediate local login on self-hosted servers and bypassing the need for email-based confirmation.

Understanding Ubuntu Landscape

Ubuntu Landscape stands as a pivotal tool for the centralized management of Ubuntu deployments, streamlining tasks across desktops, servers, and clouds. It enhances the ability to manage software updates, enforce security measures, and ensure system compliance efficiently. A critical aspect of Landscape's functionality is its sophisticated administrator management system, which includes:

Inviting Administrators: Landscape simplifies adding new administrators by allowing existing administrators to send email invitations. Once an invitee clicks the link in their email, they're prompted to log in to Landscape or create an Ubuntu Single Sign-on account, instantly granting them the designated administrator privileges.
This streamlined process for inviting administrators highlights Landscape's focus on ease of use and security, ensuring that managing access and oversight across vast networks remains both straightforward and secure.

The Need for SMTP-Free User Addition

In many IT environments, particularly those with stringent security requirements or in scenarios where setting up an SMTP server is not feasible, the need for a method to add users to Ubuntu Landscape without relying on email becomes apparent. Such environments might include isolated networks, secure data centers, or situations where quick, temporary setups are necessary. The dependency on email for user confirmation can introduce delays or barriers to deployment, particularly in cases where email infrastructure is limited or non-existent. Moreover, in testing environments or during initial system configurations, the ability to bypass email-based user verification streamlines the process, allowing for faster integration and setup. This underscores the importance of having an SMTP-free option for adding users to Landscape, ensuring that administrators can maintain operational efficiency and security without the complexities or dependencies associated with email-based user management.

Prerequisites

Before proceeding with adding users to Ubuntu Landscape without SMTP configuration, ensure the following prerequisites are met to facilitate a smooth process:

  • Landscape Installation: Confirm that Ubuntu Landscape is already installed on your server. The instructions provided assume an operational Landscape setup.

  • SSH and Sudo Access: You must have SSH access to the system with Landscape installed and the capability to execute commands using sudo. This access is critical for performing the necessary administrative actions.

  • Default PostgreSQL Configuration: The PostgreSQL database, integral to Landscape's operation, should be in its default setup. This guide presupposes no alterations have been made to the PostgreSQL installation that accompanies Landscape.

Step-by-Step Guide

To add a user to Ubuntu Landscape without an SMTP configuration, you'll start by having the user attempt to log in or create an account, either through SAML authentication or by registering with a username and password. Follow these steps afterward:

To add a user to Ubuntu Landscape without an SMTP configuration, you'll start by having the user attempt to log in or create an account, either through SAML authentication or by registering with a username and password. Follow these steps afterward:

1. Log into PostgreSQL

First, gain access to the PostgreSQL database that Landscape uses. This requires sudo privileges on the server where Landscape is installed. Open your terminal and execute:

sudo -u postgres psql landscape-standalone-main

2. Get All Users

Within the PostgreSQL prompt, execute the following command to list all users. This will display details including user IDs, which you'll need for the next steps:

select * from person;

3. Record ID of User

From the list obtained in the previous step, identify and note down the ID of the user you're adding. This ID is essential for the next commands.

4. Insert User into person_account

To grant the user a basic account level in Landscape, run the following command in the PostgreSQL interface. Ensure to replace <user id> with the actual user ID you've recorded:

INSERT INTO person_account VALUES (<user id>, 1);

5. Insert User into person_access

To provide the user with the necessary access permissions, execute:

INSERT INTO person_access VALUES (<user id>, 1, 1);

Make sure to substitute <user id> with the correct user ID. This action assigns the user the appropriate permissions within Landscape.

After executing these commands, the user will have access to Ubuntu Landscape without needing email confirmation. It's crucial to accurately replace <user id> with the user's ID obtained from the select * from person; output to ensure proper access and functionality.

Verifying the User Account

After adding a user to Ubuntu Landscape without SMTP configuration, it's essential to verify that the account has been successfully created and possesses the correct permissions. To confirm, log into the Landscape dashboard as an administrator and navigate to the user management section. Here, you should see the newly added user listed among the other accounts. Additionally, verify the user's permissions by checking the roles and access rights assigned to them, ensuring they align with your organization's security policies and the user's responsibilities. This step is crucial for maintaining the integrity and security of your managed systems, ensuring that each user has access to the necessary resources without exceeding their authorization level.

Conclusion

In conclusion, adding a user to Ubuntu Landscape without relying on SMTP for email confirmation streamlines the setup process for environments where email services are unavailable or impractical. By following the steps outlined, administrators can efficiently manage user access, ensuring that new users are promptly added with the correct permissions. This method not only enhances security by enabling direct control over user authentication but also ensures that system management remains uninterrupted, regardless of the network's email infrastructure. As you incorporate these practices into your administration routine, your ability to maintain a secure and efficient Ubuntu Landscape environment will be significantly improved, reflecting the adaptability and robustness of your IT infrastructure.

Additional Resources

To further assist you in managing your Ubuntu systems with Landscape, the following resources offer detailed information, best practices, and guidance on installation and administration:

  • Ubuntu Landscape Documentation for Administrators: This comprehensive guide is designed for system administrators managing Ubuntu deployments using Landscape. It covers everything from basic setup to advanced user management and system monitoring techniques.

  • Ubuntu Landscape Miscellaneous Documentation: Find a collection of miscellaneous documentation here, covering a wide range of topics that can help you troubleshoot, understand best practices, and optimize your Landscape setup.

  • Installing Ubuntu Landscape: This official installation guide provides step-by-step instructions on how to set up Landscape on your server, ensuring you get off to a smooth start with managing your Ubuntu machines.

By exploring these resources, you'll gain a deeper understanding of how to leverage Landscape for efficient management of your Ubuntu systems, ensuring security, compliance, and operational efficiency.

Great! You’ve successfully signed up.
Welcome back! You've successfully signed in.
You've successfully subscribed to Nimbus Code.
Your link has expired.
Success! Check your email for magic link to sign-in.
Success! Your billing info has been updated.
Your billing was not updated.