This is bad advice, in many ways, I will explain to you why:
Quote:
run this command as a root "visudo"
|
The OP is asking how to do admin tasks as root user. Telling him he should do something as root user is at least a bit sarcastic, but in no way helpful.
Quote:
-add following line below root ALL=(ALL) ALL
username ALL=(ALL) ALL
|
This line will have absolutely no effect, since it will be overridden by the following line you advised the OP to add:
Quote:
-add following line below # %wheel ALL=(ALL) NOPASSWD: ALL
username ALL=(ALL) NOPASSWD:ALL
|
This is the worst part of the advice you gave. This will set up the system in a way so that anyone that (accidentally or maliciously) get access to the OP's account can do anything on the system without having to type in a password. This is a serious security hole and may even be considered as you giving malicious advice.
Security is a serious topic. If you have not a proper understanding about it please inform yourself before giving advices to newbies.
@cdhar: To give you better advice we need to know which distribution you are running on the machine where you have to change the user/group.