HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

how to add user to sudoers file in linux centos 6

13,710 views October 26, 2017 7:41

Watch on YouTube
ChannelhadoopCDP

Description from the creator

Today i will show you how to add your user to sudoers file in simple way

Every Linux system having root account and its password (by defalut user user password is root password)

if you install any software in your linux system it should have root permissions

you can directly login into your root account or you can provide root permissions to your current user by changing values in /etc/sudoers file

if you want to change /etc/sudoers file you should login into your root acoount by using

su -username (or) su -

after login into root you can goto /etc/sudoers file by using
vim /etc/sudoers (press i )

root ALL=(ALL) ALL

username ALL=(ALL) ALL

save (wq or wq!)

exit from root and come back to your useraccount and now try to install softwares




How To Create a Sudo User on CentOS,How to Add a User and Grant Root Privileges on CentOS 6.6,How To Edit the Sudoers File on Ubuntu and CentOS,Add user to Sudoers Group CentOS ,linux - How can I add a regular user to the sudoers file?

About this tutorial

hadoopCDP published this 7:41 video tutorial on October 26, 2017. It has been watched 13,710 times on YouTube.

Channel
hadoopCDP
Category
Education
Duration
7:41
Published
October 26, 2017
Views
13,710
Likes
84

Tags

Share

Further reading

  • How to Add User to Sudoers in CentOS | Linuxize linuxize.com

    The second option is to add the user to the sudo group defined in the sudoers file. By default, on RedHat based distributions like CentOS and Fedora, members of the “wheel” group are granted with sudo privileges.

  • How to Add a User to Sudoers in CentOS Linux - WebHostingHero.org webhostinghero.org

    Save and exit the sudoers file. Now the next time we try and run the “sudo” command with the newly added user, it’ll allow us through. Adding a User to the “wheel” Group. Another option for CentOS users is hinted at in…

  • Adding Users to Sudoers in Linux - A Step-by-Step Tutorial ... linuxfordevices.com

    1. Adding Users to Sudoers File Manually. Adding the user to the sudoers file is very easy. All you do is open the /etc/sudoers file and add the username to the list. If you haven’t already read through our tutorial exp…

This tutorial in other languages