Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
File Server Security Question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Spiritmage
n00b
n00b


Joined: 06 Mar 2005
Posts: 65
Location: Colorado

PostPosted: Mon Oct 01, 2007 5:49 pm    Post subject: File Server Security Question Reply with quote

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
View user's profile Send private message
kmare
l33t
l33t


Joined: 20 Nov 2004
Posts: 619
Location: Thessaloniki, Greece

PostPosted: Mon Oct 01, 2007 7:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Mon Oct 01, 2007 7:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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