2015年8月31日 星期一

CentOS 7 add user to sudo Privileges


source: https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-a-centos-7-server

If you are currently signed in as the root user, type:
gpasswd -a username wheel



CentOS 7 install 7zip


source: http://geekyadmins.com/unzip-7z-file-centos-7/

How to install

Step 01: Please login using your privileged account using the following command.

su –
Step 02: Download the repo using the command given below.
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
Step 03: Now install the downloaded rpm using
rpm -ivh  rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
Step 04: Now you need to install the package
yum install p7zip
Step 05: To unzip the file use the following command
 7za x