sudo privileges to an existing user in ubuntu
sudo privileges to an existing user in ubuntu If you have already created the user, you can add the user to the sudo group by running the following command in a Terminal: sudo usermod -a -G sudo username
Linux is an open-source operating system (OS). An operating system is software that directly manages a system’s hardware and resources, like CPU, memory, and storage. The OS sits between applications and hardware and makes the connections between all of your software and the physical resources that do the work. Here, at https://blog.eduguru.in, We will discuss and solve real-life problems coming on Linux OS. We also know more interesting features of Linux here.
sudo privileges to an existing user in ubuntu If you have already created the user, you can add the user to the sudo group by running the following command in a Terminal: sudo usermod -a -G sudo username
Filter Logs with Grep : linux Command Grep Let’s understand the use of grep is to extract useful information from system logs: grep -Eoc “^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}.* 200” /srv/www/example.com/logs/access.log In this command, grep filters an Apache access log for all lines that begin with an IP address, followed by a number of characters, a space and then the … Read more
OpenSSH Server Best Security Practices: secure your OpenSSH server OpenSSH is the implementation of the SSH protocol. OpenSSH is recommended for remote login, making backups, remote file transfer via scp or sftp, and much more. SSH is perfect to keep confidentiality and integrity for data exchanged between two networks and systems. However, the main advantage … Read more
Vi – Linux file editor If you find that vi is hard to use, there is some good news: RHEL uses a user-friendly version of vi called vim, for “vi improved.” To start vim, just use the vi command. In this section, I will provide you with the bare essentials that are needed to work … Read more
Setup SFTP Server on linux CentOS 7 or any Linux server distribution is a very powerful server that performs above and beyond what your business might need. Whatever task you throw at the server, it will be ready. And, if it isn’t ready out of the box, you can make it so. A complete and simple … Read more
Get Email Alert on Root Login Linux To improve the security of the server, especially web server which exposes to the Internet and possible worldwide hackers, it’s best to enable server to automatically send a notification email to predefined email address every time someone logs in as root to the host. You can configure the … Read more
Find All Sudo Users In CentOS linux As a linux administrator, sometimes you need to how many super users and normal users are there in a system. So you need to find all sudo users in a centos (linux) system. However, there are chances that sometimes we need to give a temporary sudo access to a … Read more
SELinux : Introduction to SELinux SELinux, or Security-Enhanced Linux, is a part of the Linux security kernel that acts as a protective agent on servers. In the Linux kernel, SELinux relies on mandatory access controls (MAC) that restrict users to rules and policies set by the system administrator. MAC is a higher level of access … Read more
bash: #!/bin/sh asterisk -rx ‘command’ if you want to see the result of a command in a file: asterisk -rx ‘command’ > /some_dir/some_file.txt Perl: #!/usr/bin/perl system qq(asterisk -rx ‘command’)
Installing LAMP on RHEL or Centos 7 Install httpd services – Web service # yum install httpd Restart httpd resvices # systemctl restart httpd Check status of httpd services # systemctl status httpd Stop httpd services # systemctl stop httpd Start httpd services # systemctl start httpd Install php # yum install php php-mysql php-pdo … Read more