View previous topic :: View next topic |
Author |
Message |
Spiritmage n00b
Joined: 06 Mar 2005 Posts: 65 Location: Colorado
|
Posted: Mon Oct 01, 2007 5:49 pm Post subject: File Server Security Question |
|
|
Hello, I am new to linux server setup. I just had a quick question concerning a machine I will be using as a file/local web server. Once everything is configured, how should I log in for the long run. Do I log in as root (I'm guessing this is bad)? Or should I create a common user and just run the server logged in as that user? Do I not log in at all? Any help would be greatly appreciated. Also, if you have any other security tips for me, I would be glad to hear them. |
|
Back to top |
|
|
kmare l33t
Joined: 20 Nov 2004 Posts: 619 Location: Thessaloniki, Greece
|
Posted: Mon Oct 01, 2007 7:37 pm Post subject: |
|
|
Just set the init script for your server app to boot at startup. Eg for apache: Code: | rc-update add apache2 default | . See specifically here how to install apache:
http://gentoo-wiki.com/Apache2_Install _________________ Never argue with an idiot. They will only pull you down to their level, then beat you with experience. |
|
Back to top |
|
|
tarpman Veteran
Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Mon Oct 01, 2007 7:44 pm Post subject: |
|
|
Don't log in as root if you can avoid it, and only run what you absolutely must as root. When you create a user for yourself, add that user to the wheel group - members of that group are allowed to use su(1) to become root. Becoming root is required for most system administration tasks, including configuring, starting, and stopping network services. _________________ Saving the world, one kilobyte at a time. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|