Appendices 59

Appendix C: Su and Sudo Commands

The su and sudo commands allow a user to execute commands as a different user.

Su command

Using the su (switch user) command, a user can switch to another user account to execute commands not authorized with their normal account. If used without a username, the su command defaults to root. Only users who are members of the wheel group can execute the su command to log in as root.

NOTE: The wheel group is a Linux group and is included in the firmware by default.

You will be prompted for the password of the account you’re trying to switch to with the su command. You will remain logged into that account until you either press Ctrl-Dor type exit.

NOTE: The su command will open a shell session instead of the restricted shell. The user will receive the shell prompt. Improper use of shell commands could lead to data loss. Double-check your syntax when using shell commands.

Syntax:

su [options][-][username[arguments]]

The following table describes options that can be used with the su command.

Table C.1: Su Command Options

OptionDescription

-, -l, --login

Uses an environment similar to that had the user logged in directly.

When - is used, it must be specified as the last su option.

-m, -p, --preserve-

environment

Preserves the current environment.

Optional arguments may be provided after the username, in which case they are supplied to the shell (/bin/sh).

To add a member to the wheel group:

1.Create the user using the web manager or CLI.

2.Open a session in the appliance and log in as root.

3.In the shell prompt, run the usermod command to add the user to the wheel group.

# usermod -G wheel <username>

4.Run the groups command to verify.

Page 67
Image 67
Avocent ACS 6000 manual Appendix C Su and Sudo Commands, Su command, To add a member to the wheel group

ACS 6000 specifications

The Avocent ACS 6000 is a leading edge solution designed for remote access and management of critical IT infrastructure. This compact and robust device serves as a key tool for IT administrators, allowing them to manage serial console access for servers, networking equipment, and other serially controlled devices. Ideal for both enterprise environments and smaller settings, the ACS 6000 enhances operational efficiency and reliability.

One of the standout features of the Avocent ACS 6000 is its ability to provide secure remote access. The device supports various security protocols, including SSH, SSL, and IP filtering, ensuring that access to the managed devices is protected against unauthorized entry. With strong encryption standards, it provides peace of mind for organizations handling sensitive data.

The ACS 6000 is equipped with advanced management capabilities, enabling administrators to monitor and control serial communications across multiple devices from a single interface. This centralized management not only reduces the complexity associated with handling numerous individual devices, but it also streamlines troubleshooting and system diagnostics, resulting in quicker response times and less downtime.

Another notable characteristic of the ACS 6000 is its scalability. The modular design allows for easy expansion as organizational needs evolve. IT managers can begin with a basic configuration and upgrade seamlessly by adding more ports or features as necessary. This flexibility makes the ACS 6000 an ideal solution for growing organizations.

User-friendly features such as an intuitive web interface simplify the setup and configuration process. Through this interface, users can easily navigate and utilize various functions, including alert settings, logging, and reporting features that provide valuable insights into device performance and usage patterns.

In addition to its robust functionality, the ACS 6000 is designed with reliability in mind. Built to endure varied environmental conditions, it operates reliably in data centers and remote locations alike. The device can also handle high-voltage operations, making it versatile for various industrial applications.

In summary, the Avocent ACS 6000 stands out as an essential tool for modern IT management, delivering secure, scalable, and user-friendly solutions for remote access to serial controlled devices. With its advanced features and robust design, it effectively meets the challenges of IT infrastructure management in today's fast-paced digital landscape.