What is sudo command?
The sudo (Super User Do) command lets general users to access ristricted files that is ordinary can only be accessed by an administrator user. This saves the time to be an administrator user on the operations of the system configurations.
On the other hand, sudo command gives you almost same privileges to the administrator user, you should be very carefull to use this command. Otherwise you will break your system instantly.
Installing sudo command
# pacman -S sudo
Register a user to the sudo user
# usermod -aG wheel kenn
Here, kenn is a user name you want to add to sudo.
# visudo
%wheel ALL=(ALL:ALL) ALL
If you locked out
The sudo command is designed to lock out the user after three password attempt failures for the reason of the security. If you locked out, you can use the faillock command.
$ faillock --user kenn --reset
Conclusion
sudo command is very usefull when you are configuring the system. But it is very dangerous command at the same time. This is a double-edged sword. You should use it carefully.
Last Updated on August 30, 2024 by Kenn
Leave a Reply