Delta RPM packages are smaller in size than patch RPMs. First clear cache by executing following command:Ģ. To execute this command, remember to login from non-root user with sudo privileges.ġ. If you want to verify this, you can use the command below:īefore proceeding with installation of any kind of package, use the following command to update your CentOS system. You can see that you have been logged in from your new account now. OR Use the following command to switch user: Now, log in by using your new username and password. Your username has been successfully added to sudoers group and it is able to execute any root command. Now you will add your username “ aareez” to the “ wheel” group by executing the following command:Īfter execution of the above command, you can verify the membership for that group by executing the following command: To prevent this issue, if this line starts with ‘ #’ sign, remove this symbol and save the changes by pressing Esc key, type :x and hit enter. Sometimes by default the second line %wheel ALL=(ALL:ALL) ALL is commented (starting with hash #), due to which even after adding username to sudoers, it gives error on using sudo. After executing the above command, a file will be opened, find the following lines in the opened file. For this purpose, we will execute the following command.Ĥ. For this, we will check /etc/sudoers file and see whether sudoers group is enabled or not. Now assign username to sudo user’s group to give administrative privileges. To confirm the data is correct, type ‘ Y’ and hit Enter key.ģ. Now set your desired password and retype your desired password, then hit Enter key. To set password, execute the following commands: Now you will need to set password for your added username. Where “aareez” can be any username of your choice.Ģ. To create a new user account, use the following command: Once you have added this user, to keep your server secure from various attacks, you will disable the remote root access to root user.ġ. This user will be used to login from via SSH for everyday use. Sudo privileges will allow this username to make administrative changes on system when required. In the first step, you will add a new user and give it sudo privileges. Putty - You can get Putty from ) or VNC console available in your Alibaba Cloud account dashboard.
0 Comments
Leave a Reply. |