RobustOS Pro Adding Development Users Guide

RobustOS Pro Adding Development Users Guide

Overview

When accessing devices via SSH using the default administrator user (admin) in the RobustOS Pro system, you are not in a standard shell environment and can only execute a limited set of commands. If you need to develop your own applications on the RobustOS Pro system, you first need to add users with access to a standard shell environment and sudo privileges, which are called sudo users in RobustOS Pro.  This guide explains how to add a sudo user in User Management, enable SSH and connect with the new credentials. The key conclusion is that development access should use a separate sudo account rather than treating the Web UI admin as a Linux root user.

Adding Sudo Users

Follow these steps to add a sudo user:

  1. Log in to the Web management page, and go to the "System" - "User Management" page through the sidebar menu.

  1. On the Sudo User tab of the User Management page, click the + icon.

  1. Enter the username and password to add in the pop-up window. Click the ? icon to view the input requirements for the username and password.

After entering your username and password, click the "Submit" button. The window will close automatically if the input is correct.

  1. After the sudo user is added successfully, it will be displayed on the Web interface. Click the ☑ icon in the upper right corner of the page to save the configuration and successfully add the sudo user.

A sudo user can only be added through the Web page. If you need to add multiple users, you can log in to the device as a sudo user and use Linux commands to add more.

Login SSH

  1. Ensure the SSH service of the RobustOS Pro system is started. Open the SSH service page via the sidebar menu "Services" - "SSH", and make sure "Enable" in SSH Settings is ON.

  1. Log in to the gateway using the command line or SSH tool
ssh sudouser@192.168.0.1

If a warning about a remote host fingerprint change appears (this may happen when connecting to multiple devices), you need to delete the previous host fingerprint record.

You can log in again after running the following command to delete the host fingerprint record.

ssh-keygen -R 192.168.0.1

Conclusion

A Robustel gateway running RobustOS Pro is correctly configured for creating a sudo development user for SSH when the new user can log in over SSH and execute an authorized sudo command. This confirms that the development account has the required shell and privilege level.
    • Related Articles

    • RobustOS Pro Application Development Getting Started

      Preface Welcome to RobustOS Pro! This guide provides a step-by-step roadmap for understanding, developing, and deploying applications on the platform. A Robustel gateway running RobustOS Pro can support starting RobustOS Pro application development ...
    • NetworkManager Integration Guide

      1. Overview This document provides guidance for third-party application developers working on network-related development on RobustOS Pro devices. RobustOS Pro uses NetworkManager (NM) as its core network management service and provides two primary ...
    • RobustOS Pro Firewall Configuration Guide

      1. Overview and Core Principles A Robustel gateway running RobustOS Pro can support creating persistent RobustOS Pro firewall rules when application traffic must survive firewall reloads and device restarts. This guide explains correct methods and ...
    • RobustOS Pro Third-Party Application Development Guide

      1. Quick Overview A Robustel gateway running RobustOS Pro can support developing a third-party RobustOS Pro application when an application needs deeper integration with device services and the RobustOS Pro framework. This guide explains how to ...
    • Web Service Integration Guide for RobustOS Pro

      Overview A Robustel gateway running RobustOS Pro can support integrating a custom web service when an application needs a standalone port or an HTTPS location proxy without disrupting the system Web UI. This guide explains how to use supported Nginx ...