Rhel 7 sud0 command

In Rhel 7 sudo command is another approach and a more secure way of delegating administrative privileges. This system serves as a mechanism of preceding administrative commands with sudo and fine-grained delegation through the /etc/sudoers file.

Once users are trusted and tasks are delegated to them in the /etc/sudoers file, they can then run commands trusted to them using sudo. You just need to make a simple entry in /etc/sudoers file. I recommend using “visudo” utility to edit /etc/sudoers, as it check syntax error also.

sudo command rhel 7

This will delegate rights for a user alok to be able to run the useradd command along with the passwd command. But it will also prevent alok changing the root password within the same entry.

By default, with sudo, members of the wheel administrative group are permitted to run all commands without any additional administrative effort.

rhel 7 sudo command – security!

To elevate security in order to acquire the password of the user to be entered for each sudo command and overwrite the default timeout of 5 minutes, use visudo and add the following line to the /etc/sudoers file.

This will ask user, his password, everytime he use sudo to execute some command.

rhel 7 sudo command