Now the httpd will install and we got full permissions as root user.So successfully we have added user to sudoers in centos/rhel. So we need to enter password of devops user. You can see here, after entering install command with sudo, It will ask password of devops user. And now login as a devops user and try to install any package Executing commands with sudo access: ~]$ sudo yum install httpd Then the user would be asked to enter their own password depending upon the configuration. Once a user has been added to the sudoers list, they can execute any administrative command by preceding it with sudo. Everyone in the group automatically gets sudo access to Debian and Ubuntu operating systems. The administrator simply needs to add the regular user in the sudoers list. The change will take effect the next time the user logs in. Users that have root privileges can add any account to the sudo group. By giving sudo access to any user, user can download packages and the user can install that packages as like root user.Ä®nter above line in /etc/sudoers file and save it. Just add the user to the sudo group: sudo adduser sudo.For that we need to make devops user as sudo user. I entered password of devops user, But still the task is failed since the user devops is not the sudo user. You can see that it is asking password of devops user. #3) With great power comes great responsibility.Äevops is not in the sudoers file. It usually boils down to these three things: We trust you have received the usual lecture from the local SystemĪdministrator. That means the user devops has no permissions to install any packages. You need to be root to perform this command.Ä«ut when i tried to install httpd it is showing that you need to be root to perform this command. Loaded plugins: langpacks, product-id, search-disabled-repos, subscription. I have user called devops now i am trying to install httpd.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |