I'm quite new to Linux but I need to install Wordpress on a Debian Wheezy machine.I have been reading tens of websites to prepare for this and they seem to say that Wordpress should NOT be installed as the root user. I created a normal user called Myname and I will try to do the installation with that user. But in all the tutorials the SUDO-command seems to be used. So my questions are these:How do I, acting as root user, give the Myname user SUDO priviledges?How can I know which SUDO priviledges I should be giving Myname? Do I need to be specific or can I give a broad range of them?
Using root account to give sudo priviledges for a wordpress install
linux;debian
What you need to do is simply allow the user myname to run commands with sudo. You don't need to give any specific privileges (that is possible but unnecessary), you want to generally be able to run commands as root while logged in as myuser.To do this, you will need to run visudo as root and add these lines (if you're having trouble editing the file, see here):# Allow members of group sudo to execute any command%sudo   ALL=(ALL:ALL) ALLThe file very likely already contains the lines above, they tell the system to allow any user who belongs to the sudo group to run sudo commands. Now, make sure your user is in the sudo group. Check the output of groups:terdon@oregano ~ $ groupsterdon sudo netdev fuse vboxsf vboxusers As you can see, my user is part of the sudo group. If yours is not, run (as root):usermod -aG sudo myuserThen log out and log back in again to make the changes take effect. You should now be able to run commands with sudo.