To correctly install software on a Debian server, or any linux machine for that matter, you must be or become root. I strongly reccommend that you DO NOT log on as the root account itself, but as a user account and become root by using su or sudo. For more information about server security see my article " Linux Server Hardening " here; http://linuxserverhardening.blogspot.ca/ [ it pertains to centos, but the ideas are universal ]. So, throught this article rather than saying "become root" or prefacing commands with "sudo" I will assume you have become root.
Now, just in case you don't know how to become root, this is what you do;
Sign onto your server with a common user account, either locally [open a terminal, command prompt] or remotely through a terminal session. Putty is a great, free, terminal client that works with both linux and windows machines.
To become root enter
su
or
sudo before every command.
or
sudo su
The difference between the commands are;
su - asks you to enter the root users password
sudo before every command. - asks for your password. Your user id must be in the sudo user's group
sudo su - asks for your password once. Your user id must be in the sudo user's group
Lets begin!
No comments:
Post a Comment