Let’s start learning how to add a user in Fedora / CentOS and assign root rights. When you install any OS on your server, you will be assigned root access to that server. Root will have privileges to execute any command which can cause severe issues with your server in the worst case. Sometimes a command that has been executed accidentally can disrupt the working of the server. To avoid this, first of all, add a user account to limit access of commands. If you want to allow the user to execute administrator commands, you must add it to ‘wheel’ group.
In CentOS 6, wheel group has been disabled for sudo access by default. To add sudo rights, you have to navigate to
/user/sbin/visudo
Then find # %wheel, remove ‘#‘ to uncomment this line.
To start typing, press a and to save or exit press Escape, then type :w, then enter, then :q, then press enter.
useradd example_username && passwd example_pass
usermod -aG wheel example_username
If you are living in a digital world you must know how to protect your…
Software Development Life Cycle Model, also known as SDLC or Software Development Process, is base…
Go, often referred to as golang is a modern open-source programming language created by Google…
Torque published an article on October 18, 2016, about WordPress statistics. According to this article,…
PostgreSQL, often known simply as Postgres, is an open-source general-purpose object-relational database management system. In…
SEO is free as well as paid. To achieve SE ranking, money is not enough.…