Add a User to sudo Group in Debian 12 Linux

Add a User to sudo Group in Debian 12 Linux

Add a User to sudo Group in Debian 12 Linux
by George Whittaker
Introduction

In Linux systems, including Debian 12, the sudo group grants users the ability to execute administrative commands. This provides them with the privileges to install, update, and delete software, modify system configurations, and more.

Administrative permissions are vital for maintaining and controlling the operating system. They allow you to perform tasks that regular users cannot, ensuring security and overall system health.

This article is intended for system administrators, advanced users, or anyone responsible for managing Debian 12 systems.

Administering sudo permissions must be done with care. Inappropriate use of sudo can lead to system vulnerabilities, damage, or data loss.

Prerequisites

Debian 12 System Requirements

Ensure that you have Debian 12 installed with the latest updates.

Necessary Permissions

You must have root or sudo access to modify user groups.

How to Open a Terminal Window

Press “Ctrl + Alt + T” or search for “Terminal” in the application menu.

Understanding the sudo Group

The sudo group allows users to execute commands as a superuser or another user. It promotes better security by limiting root access. However, misuse can lead to system instability. Root has unlimited access, while sudo provides controlled administrative access.

Identifying the User

List Existing Users

cut -d: -f1 /etc/passwd

Select the User

Choose the username you wish to add to the sudo group.

Check Existing sudo Group Membership

groups

Adding the User to the sudo Group

Command-line Method

Open a Terminal

Start by opening the terminal window.

Switching to Root User

su -

Using the usermod Command

usermod -aG sudo

Verifying the Addition

groups

Graphical User Interface (GUI) Method

  1. Open Users and Groups management.
  2. Find the user, select Properties, and check the “sudo” box.
  3. Confirm and apply changes.

Troubleshooting

If errors occur, consult system logs, or use:

journalctl -xe

Remove the user from the sudo group using:

gpasswd -d sudo

Check man pages, forums, or official Debian documentation.

20 Must-Have Command Line Tools to Monitor Linux Performance

20 Must-Have Command Line Tools to Monitor Linux Performance

The post 20 Command Line Tools to Monitor Linux Performance first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Being a System or Network administrator tasked with monitoring and debugging Linux system performance problems on a daily basis is an immensely challenging responsibility. It

The post 20 Command Line Tools to Monitor Linux Performance first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Download Songs from a YouTube Video Using YTP-DL

How to Download Songs from a YouTube Video Using YTP-DL

The post YTP-DL: The Easiest Way to Download Songs from YouTube Videos first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

We all love listening to music whether it’s in the gym, at work, or outside, music is part of our life. Everyone has their own

The post YTP-DL: The Easiest Way to Download Songs from YouTube Videos first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Organizing Secure Document Collaboration: How to Install ONLYOFFICE DocSpace Server on Linux

Organizing Secure Document Collaboration: How to Install ONLYOFFICE DocSpace Server on Linux

Organizing Secure Document Collaboration: How to Install ONLYOFFICE DocSpace Server on Linux
by George Whittaker

Introduction

Nowadays, online document collaboration is a must for everyone. You definitely need to co-edit numerous docs with your teammates as well as work on office files with various external users, almost everyday.

Keeping this in mind, the open-source project ONLYOFFICE released the DocSpace solution which allows connecting people and files and levels up document collaboration. Let’s discover its features and installation options.

Key features

ONLYOFFICE DocSpace is intended to improve collaboration on documents with various  people you need to interact, for example, your colleagues, teammates, customers, partners, contractors, sponsors, etc.

The platform comes with integrated online viewers and editors allowing you to work with files of multiple formats, including text docs, digital forms, sheets, presentations, PDFs, e-books, and multimedia.

How to Install ONLYOFFICE DocSpace Server on Linux Content Image 1

Rooms

ONLYOFFICE DocSpace provides a room-based environment which allows organizing a clear file structure depending on your needs or project goals. DocSpace rooms are group spaces with the pre-set access level to ensure quick file sharing and avoid unnecessary repeated actions.

Currently, two types of rooms are available:

  • Collaboration rooms to co-author docs, track changes and communicate in real time.
  • Custom rooms for any custom purpose, for example, to request document review or comments, or share any content for viewing only.

How to Install ONLYOFFICE DocSpace Server on Linux Content Image 2In the future releases, the ONLYOFFICE developers are going to add further room types such as form filling rooms and private rooms for end-to-end encrypted collaboration.

User roles

Flexible access permissions allow you to fine-tune the access to the whole space or separate rooms. Available actions with files in a room depend on the given role.

10 Must-Read Free Linux eBooks for Beginners and Admins

10 Must-Read Free Linux eBooks for Beginners and Admins

The post 10 Free Linux Books That Will Make You a Linux Master first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

If you’re aiming to elevate your Linux learning process to an advanced administrative and expert level, we have meticulously curated a collection of 10 exceptional

The post 10 Free Linux Books That Will Make You a Linux Master first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Create and Run New Service Units in Systemd

How to Create and Run New Service Units in Systemd

The post How to Create and Run New Service Units in Systemd Using Shell Script first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

A few days ago, I came across a Centos 8 32-bit distro and I felt the desire to test it on an old 32-bit machine.

The post How to Create and Run New Service Units in Systemd Using Shell Script first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Glances: A Powerful Tool for Monitoring Linux Systems

Glances: A Powerful Tool for Monitoring Linux Systems

The post Glances – An Advanced Real Time System Monitoring Tool for Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Earlier, we’ve written about many Linux System Monitor Tools that can be used to monitor the performance of Linux systems, but we think that most

The post Glances – An Advanced Real Time System Monitoring Tool for Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Glances: Monitor Remote Linux Systems from Anywhere

Glances: Monitor Remote Linux Systems from Anywhere

The post How to Monitor Remote Linux Systems with Glances first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Glances is a free open source, modern, cross-platform, real-time top and htop-like system monitoring tool, which offers advanced features compared to its counterparts, and can run

The post How to Monitor Remote Linux Systems with Glances first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Top 5 Command-Line HTTP Clients for Linux Users

Top 5 Command-Line HTTP Clients for Linux Users

The post 5 Best Command Line HTTP Clients for Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

HTTP clients are utility software that enables you to download files over the Internet. Apart from being able to download files remotely, these command line

The post 5 Best Command Line HTTP Clients for Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Install PuTTY [SSH Client] on Linux Systems

How to Install PuTTY [SSH Client] on Linux Systems

The post How to Install PuTTY on Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

PuTTY is a free and open-source cross-platform SSH and telnet client that even after being around for over 20 years remains one of the most

The post How to Install PuTTY on Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

The 6 Best Command-Line FTP Clients for Linux

The 6 Best Command-Line FTP Clients for Linux

The post 6 Best Command-Line FTP Clients for Linux Users first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

FTP (File Transfer Protocol) is a network protocol used for transferring files between a client and a server on a computer network. In the early

The post 6 Best Command-Line FTP Clients for Linux Users first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Mount Drives with Ease: A Guide to Automounting in Linux GUI and CLI

Mount Drives with Ease: A Guide to Automounting in Linux GUI and CLI

Mount Drives with Ease: A Guide to Automounting in Linux GUI and CLI
by George Whittaker

Understanding how to efficiently automate tasks on Linux can significantly simplify your daily operations. One such routine task is mounting drives, which can be performed automatically, saving you precious time. If you’re a GNOME user, you will be pleased to know that this interface makes auto-mounting drives particularly effortless. By following the steps outlined below, you’ll be on your way to becoming proficient at auto-mounting drives on Linux with GNOME in no time.

Why Automount?

Before we delve into the process, it’s important to comprehend why automounting is a handy feature. Normally, when a storage drive is connected to your Linux system, it does not become instantly accessible. You must manually mount the drive every time you boot up. Automounting eliminates this hassle by ensuring the drive is automatically accessible when the system starts. Now that you know why this is crucial, let’s delve into the process.

Getting Started: Install Disks Utility

If you’re a GNOME desktop user, you’re already equipped with a built-in utility called ‘Disks’. If not, don’t worry, installing it is easy:

  1. Open your terminal.
  2. Type the following command: sudo apt-get install gnome-disk-utility.
  3. Provide your password when prompted, and hit enter.
  4. Allow the installation process to complete.

Now, you are ready to use the ‘Disks’ utility, the key tool to automounting drives on your Linux system.

A Step-by-step Guide to Automount Drives with GNOME

Now, let’s dive into the process of setting up the automount feature.

Launch the Disks Utility

Open the ‘Disks’ utility from your GNOME desktop’s menu. In the left panel, you’ll see a list of drives attached to your system. Choose the one you wish to automount.

Adjust Mount Options

Next, locate and click the ‘additional partition options’ button, represented by two gears under the Volumes section. Select ‘Edit Mount Options’ from the drop-down menu.

Set Automount Preferences

By default, the ‘User Session Defaults’ option is turned on. Turn it off to manually set your preferences. Now, tick the ‘Mount at system startup’ checkbox to ensure that the drive mounts automatically at boot. Additionally, you might want to select the ‘Show in user interface’ option for the drive to be visible in the file manager.

Save Changes and Test

After setting your preferences, click ‘OK’. A prompt will request your password to authenticate changes. Provide it, then restart your computer to test if the drive mounts automatically.

How to Easily Install Odoo Community Edition in Ubuntu

How to Easily Install Odoo Community Edition in Ubuntu

The post How to Install Odoo Community Edition in Ubuntu first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Odoo is a full-featured, extensible open-source ERP (Enterprise Resource Planning) software built using Python and PostgreSQL database for data storage. It is a suite of open-source business

The post How to Install Odoo Community Edition in Ubuntu first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Easily Integrate Odoo and ONLYOFFICE Docs on Ubuntu

How to Easily Integrate Odoo and ONLYOFFICE Docs on Ubuntu

The post How to Connect Odoo with ONLYOFFICE Docs on Ubuntu first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Odoo is an open-source business platform that comes with a vast set of productivity apps allowing you to deal with what an average company needs

The post How to Connect Odoo with ONLYOFFICE Docs on Ubuntu first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

12 Tcpdump Commands - A Network Sniffer Tool

12 Tcpdump Commands – A Network Sniffer Tool

The post 12 Tcpdump Commands – A Network Sniffer Tool first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

In our previous article, we have seen 20 Netstat Commands (netstat now replaced by ss command) to monitor or manage a Linux network. This is

The post 12 Tcpdump Commands – A Network Sniffer Tool first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Resolve

How to Resolve “Temporary failure in name resolution” Issue

The post How to Resolve “Temporary failure in name resolution” Issue first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Sometimes when you try to ping a website, update a system or perform any task that requires an active internet connection, you may get the

The post How to Resolve “Temporary failure in name resolution” Issue first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

5 Ways to Empty or Delete a Large File Content in Linux

5 Ways to Empty or Delete a Large File Content in Linux

The post 5 Ways to Empty or Delete a Large File Content in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Occasionally, while dealing with files in a Linux terminal, you may want to clear the content of a file without necessarily opening it using any

The post 5 Ways to Empty or Delete a Large File Content in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

A Comprehensive Guide to Using PuTTY for SSH into Linux

A Comprehensive Guide to Using PuTTY for SSH into Linux

 A Comprehensive Guide to Using PuTTY for SSH into Linux
by George Whittaker

Whether you’re an experienced developer or a beginner trying to establish a secure connection between your computer and a remote Linux server, PuTTY is a tool you can rely on. Let’s delve into understanding how to utilize PuTTY to Secure Shell (SSH) into a Linux machine from a Windows operating system.

Introduction to PuTTY

PuTTY is an open-source, free SSH client for Windows. It enables users to remotely access computers over networks and run commands as if they were sitting in front of the terminal. It’s a versatile tool that’s widely used in network administration, software development, and other IT-related professions.

Downloading and Installing PuTTY

Getting started with PuTTY is straightforward. Head over to the official PuTTY download page and select the appropriate version for your Windows OS. It’s typically best to choose the latest stable version. After downloading the installer, run it, and follow the prompts to successfully install PuTTY on your machine.

Configuring PuTTY for SSH Connections

Before initiating an SSH connection, you need to gather some vital information: the IP address or hostname of the Linux server you’re connecting to, the port number, and your username.

Open PuTTY and you’ll see a configuration window. Under “Session,” in the “Host Name (or IP address)” field, type the IP address or hostname of your Linux server. Ensure the “Port” field is set to 22, which is the default SSH port.

Select SSH under “Connection type” and then move on to the “Saved Sessions” field. Input a name for this connection configuration for future use. Once done, click “Save” to keep these settings. This way, you won’t need to input these details every time you want to establish a connection.

Initiating the SSH Connection

With your session saved, you’re ready to connect. Select your saved session and click “Open.” A new window with a console interface will open, and a prompt will ask for your username. Input the username for your Linux server. Hit “Enter,” and you’ll be asked for your password. Type in your password and hit “Enter” again. Remember, the cursor won’t move while you’re typing your password; this is a standard security feature.

Dealing with PuTTY Security Alerts

The first time you establish a connection, PuTTY will display a security alert to confirm the server’s authenticity. This alert safeguards against potential man-in-the-middle attacks. PuTTY will show the server’s SSH key fingerprint, which you should compare with the fingerprint of your Linux server. If the fingerprints match, click “Yes” to add the server’s host key to PuTTY’s cache. If the alert pops up in subsequent sessions, there’s a possibility your server’s security may have been compromised.

15 Useful

15 Useful “ifconfig” Commands to Configure Network in Linux

The post 15 Useful “ifconfig” Commands to Configure Network Interface in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

ifconfig in short “interface configuration” utility for system/network administration in Unix/Linux operating systems to configure, manage, and query network interface parameters via command-line interface or

The post 15 Useful “ifconfig” Commands to Configure Network Interface in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

How to Find My DNS Server IP Address in Linux

How to Find My DNS Server IP Address in Linux

The post How to Find My DNS Server IP Address in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

DNS (Domain Name System) is a fundamental facilitator of several networking technologies such as mail servers, Internet browsing, and streaming services e.g. Netflix and Spotify,

The post How to Find My DNS Server IP Address in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.