• Email Address: forum@outsourcepath.com
English
  • English
Resources, Articles, Tricks, and Solutions about Linux

How Chmod 777 works

This article will guide you on how to give #Chmod 777 to folders and files in #Linux. We also discussed the risks and more information about file permissions. 

If you are managing a Linux system, it is crucial to know how the Linux #permissions work.

You should never set 777 (rwxrwxrwx) permissions #files and #directories permissions. 777 means that anyone can do anything with those files.

To Give Root Privileges to a User in Linux:

1. Adding to Root Group using usermod. Let see how we can grant normal user root access by adding to root group.

2. Adding to #Root Group using Useradd Command.

3. Editing /etc/passwd file.

4. Setting as Sudo User.

Add User To Group in Linux

This article will guide you on how to add a #user to a #group in #Linux. The group permissions apply only to the group that has been assigned to the file or directory, they will not effect the actions of other users. The others permissions apply to all other users on the system, this is the permission group that you want to watch the most.

Groups can be thought of as levels of #privilege. A person who is part of a group can view or modify files belonging to that group, depending on the permissions of that file. User belonging to a group has privileges of that group, for example - sudo groups lets you run software as super user.

To view all groups present on the system simply open the /etc/group file. Each line in this file represents information for one group. Another option is to use the getent command which displays entries from #databases configured in /etc/nsswitch.


To Create a New Sudo User:

1. Log in to your server as the root user. #ssh root@server_ip_address.

2. Use the adduser command to add a new user to your system. Be sure to replace username with the user that you want to create.

3. Use the usermod command to add the user to the wheel group.

4. Test sudo access on new user account.


To List Users in Linux:

i. Get a List of All Users using the /etc/passwd File.

ii. Get a List of all Users using the getent Command.

iii. Check whether a user exists in the Linux system.

iv. System and Normal Users.

Vim Show Line Numbers in Linux

This article will guide you on how to show line numbers in #Vim. You can ask #nano to temporarily turn on line numbers by pressing Alt-C (meaning “Hold down the Alt key and the C key simultaneously”). This will show line and column numbers near the bottom of nano's window.

To Turn on absolute line numbering by default in vim:

1. Open vim configuration file ~/.vimrc.

2. Append set number.

3. Press the Esc key.

4. To save the config file, type :w and hit Enter key.

5. You can temporarily disable the absolute line numbers within vim session, type:/> :set nonumber.


Use the “:set number” command if you want to enable absolute line numbers; or “:set relativenumber” for relative Vi numbers.

If you want to turn off the line numbering, remember the command “set nonumber.”

When you have both absolute and, hybrid numbers enabled, you’ll have access to the hybrid mode!

Guide to install Red Hat Enterprise Linux 7 3

This article will guide you on the step by step process to install Red Hat Enterprise Linux 7.3. This involves completing the “Installation Summary” window along with the installation of #VMware #Workstation and creation of a virtual machine.

Red Hat® Enterprise Linux® is the world's leading enterprise #Linux platform. * It's an open source operating system (#OS). It's the foundation from which you can scale existing apps—and roll out emerging technologies—across bare-metal, virtual, container, and all types of cloud environments.

Update Ubuntu from 16 04 to 18 04 via command line

This article will guide you on steps to #upgrade #Ubuntu #version.

To update Ubuntu using #terminal:

1. Open the terminal application.

2. For remote server use the ssh command to login (e.g. ssh user@server-name )

3. Fetch update software list by running #sudo apt-get update command.

4. Update Ubuntu #software by running sudo apt-get upgrade command.

5. Reboot the Ubuntu box if required by running sudo reboot.

YUM History command Ways to use it

This article will guide you on #YUM history #command in #Linux which provides a detailed history of YUM #transactions in order to find out information about installed packages and those that where removed/erased from a #system. 

The yum history command allows users to review information about a timeline of Yum transactions, the dates and times they occurred, the number of packages affected, whether transactions succeeded or were aborted, and if the RPM #database was changed between transactions.

ifconfig centos 7

This article will guide you on the steps to #install #ifconfig in #CentOS using the yum #package #manager.

The ifconfig command can tell you a lot about your Unix server's connection to your #network and the role it's playing in both generating and receiving network traffic.

Install Prometheus Network Monitoring Server on CentOS 7

#Prometheus collects metrics from targets by scraping 3metrics #HTTP endpoints. Since Prometheus exposes #data in the same manner about itself, it can also scrape and monitor its own health. 

This article will guide you on the steps to perform #installation of Prometheus on #CentOS 7 along with the method used for the #setup.

Sync Two CentOS 8 Servers Using File Replication

The #sync command forces an immediate write of all cached data to disk. Run sync if you anticipate the system to be unstable, or the storage device to become suddenly unavailable, and you want to ensure all data is written to disk. Individual files may be synced, or the entire filesystem containing the specified files.

This article will guide you on the right steps to sync two #CentOS 8 #servers using file replication.

Extending Disk Space with LVM

To increase the size of a logical volume, use the lvextend command. When you extend the logical volume, you can indicate how much you want to extend the volume, or how large you want it to be after you extend it. The following command extends the logical volume /dev/myvg/homevol to 12 gigabytes.

RM cannot remove read-only file system tips to fix

This article will guide you on how to fix 'rm cannot remove the read-only file system' error  by simply removing files from the read-only file system.

Configuring messenger csf

This article will show you how to set up CSF Messenger via command line.

KVM Installation on CentOS 7

This article will guide you through the process of installing kernel-based virtual machine (KVM) on your CentOS 7 machine.

Splunk installation on Ubuntu

This article will show you how to install Splunk on Ubuntu by following an easy to understand Installation process.

Puppet installation on CentOS 7

This article will guide you through the steps you need to follow to get Puppet installed and configured on CentOS 7 Machine.

Install Jitsi Meet on Ubuntu

This article will guide you through the steps you need to take in order to install and configure Jitsi Meet application on your Ubuntu Server.

Splunk Forwarder Installation on Ubuntu

This article will show you the steps to take to install and configure Splunk forwarder on a Linux Machine (Ubuntu , Debian).

Centralizing logs on Ubuntu with Journald

This article will help you to configure centralization of logs with Journald on Ubuntu for both the Server and Client system.

Install Drush on Ubuntu

This article will put your through the complete steps you need to take to install Drush on your Ubuntu Machine.

User is not in the sudoers file

Basically, when the wrong permission is assigned to the sudoers file, the error "user is not in the sudoers file" is usually triggered.

Fix Unable to access file since it is locked error on vmware

This article will guide you through the steps you need to take to fix the VMWare "Unable to access a file since it is locked" error by restarting the Management Agent or ESXi host.

Steps to install Debian 9 Stretch

This article will guide you through the complete steps you need to follow to install Debian 9 Stretch on your Machine.

Htop installation on Linux


This article will show you how to install Htop across different Linux Distributions and Operating System.

ioncube Installation on Ubuntu

This article will guide you through the steps to install ionCube on Ubuntu.

MongoDB installation on Ubuntu

This article will guide you on how to install MongoDB on Ubuntu.

Configure MongoDB Authentication on Ubuntu

This article will put you through the steps you need to take to enable authentication for MongoDB on Ubuntu by modifying MongoDB configuration file.

Ansible Software installation on ubuntu

This article will put you through to install Ansible on Ubuntu and Debian Machines to get it to work via its inventory file.

FreeIPA Client installation on ubuntu

This guide will help you with all the information you need to install FreeIPA client on Debian or Ubuntu Server.

DBeaver installation on debian


This well documented article will guide you on how to install DBeaver on Debian and Ubuntu Server.

Odoo installation on Centos

This article will guide you on how to install Odoo software on CentOS 7. Odoo is a very popular business software for managing business application.

Enable Epel repository on Linux

This article will show you how to enable EPEL repository on different Linux distribution. EPEL repo can be installed with the yum utility on CentOS and RHEL.

PostgreSQL installation on Centos 7

This article will show you how to install PostgreSQL via the default Centos repositories or from the official Postgres repositories.

Using chroot to set up SFTP Server

This article will show you how to implement chroot Jail on a Linux system so as to restrict access to the the files outside the designated directory directory or tree.

How to install and configure cacti on Linux

Steps to install and configure Cacti which is network monitoring tool which displays server efficiency information in form of a personalized graph.

Neo4j installation on Ubuntu

See the steps to install and configure Neo4j on Ubuntu.

Skyline installation on CentOS 7

The right steps to install Skyline and Redis databases.

Different methods to Upload files using command line

How to use different methods such as Rsync, Scp, and  SFTP to upload files to the server.

How to tackle curl 78 RETR response 550

cURL 78 error is usually triggered when the requested file is not available or the resource referenced in the URL does not exist.

How to fix rsync skipping non-regular file error

Rsync "skipping non-regular file" error is usually triggered when  symlinks is missing or lack of a recursive mode option while transferring data and files between servers.

Solve strace operation not permitted error

The method we applied in fixing strace operation not permitted error in Linux

How to Fix Boot Hole vulnerability CVE-2020-1073

Just recently, on the 29th, July 2020, Popular Linux Distribution RedHat announced that there was a great security concern in the grub2 (CVE-2020-1073) version.

Solve curl 52 empty reply from server

Curl is the command line tool which is responsible for running curl through a Server shell. curl runs under the libcurl library which relays response from the server whenever a request is called.

Solve docker error loading config file

Docker error loading config file signifies that there is an issue loading docker configuration file "config.json" while trying to start the docker instance.

Solve SQL Server error 4064

The SQL Server error 4064 is as a result of the unavailability of a database probably due to dropping of the database thereby becoming not available to the user.

Fix curl error 67

Curl error 67 occurs when trying to download a file from an remote server for use in a local environment. This error relates with not using the correct login information.

Fix Docker Error opening terminal unknown

Our Server Support team here at IbmiMedia has helped numerous clients to solve Docker related issues as part of our Linux Support Services.

Setup openvas on linux Debian and Ubuntu

OpenVAS software framework is a great security tool checking if the system is vulnerable by means of scanning and Management. It helps to safeguard the server from unauthorized access.


To Install OpenVAS on Ubuntu:

By default, the OpenVAS package is not available in the Ubuntu 16.04 repository, so you will need to add OpenVAS PPA to your system's repository list.

1. Add the OpenVAS PPA.

$ sudo add-apt-repository ppa:mrazavi/openvas

2. Update the repository.

$ sudo apt-get update

3. Finally, install OpenVAS.

$ sudo apt-get install openvas

4. Once OpenVAS has finished installing, start the OpenVAS service with the following commands:

$ sudo systemctl start openvas-scanner

$ sudo systemctl start openvas-manager

$ sudo systemctl start openvas-gsa

Recent Post