LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-28-2004, 09:57 AM   #1
revenant
LQ Newbie
 
Registered: Mar 2004
Distribution: SuSE 9.0
Posts: 14

Rep: Reputation: 0
Which services are unnecessary?


I have just installed Slackward 9.1 after using SuSE almost exclusively for over a year. I've been able to get my firewall setup using various guides, but I'm having a slight problem with another area of security.

I know I should disable unnecessary services, and I know how to disable them. The part that gets me is figuring out which are unnecessary. Most of the documentation I've been able to find isn't very clear on this.

My computer not part of any network, and I am not using it as a server in any way. I use it to access the internet and do all the usual things one does with a desktop computer, nothing more.

Does that mean I can just disable all of them (I'm thinking yes)?

Any help would be appreciated.
 
Old 03-28-2004, 10:01 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
You have 2 ways of taking this forward:
1. Go to www.google.com and/or ww.google.com/linux and do a search on each service. Once you know what they are, you can decide if they are necessary. Eg, I have disabled apache because I don't run a webserver.

2. List the services, we can try to tell you what they are, then you can do as above.
 
Old 03-28-2004, 10:12 AM   #3
KneeLess
Member
 
Registered: May 2003
Distribution: Debian GNU/Linux 3.0 Sid, OpenBSD 3.5
Posts: 190

Rep: Reputation: 30
All services can be disabled. Make sure you remove the startup script in /etc too. BSD-init is so nice, you can just chmod a-x them and they won't start. A good way to find the services you have running is 'netstat -ln'. Then do a 'ps aux' to find the pid and then 'kill -15 PID' putting in the PID. Then remove the startup script. I also am annoyed that lots of distrobutions don't give you the choice of running services.
 
Old 03-28-2004, 12:28 PM   #4
revenant
LQ Newbie
 
Registered: Mar 2004
Distribution: SuSE 9.0
Posts: 14

Original Poster
Rep: Reputation: 0
First of all, thanks for the help so far. But now I need more, I've managed to really fuck things up.

Following the advice of a tutorial, I did the following to disable all services:

mv /etc/inetd.conf /etc/inetd.conf.old
touch /etc/inetd.conf
killall -HUP inetd

When I did a reboot I got a ton of error messages, sound no longer worked, and I coudln't get online.

To restore things back to how they were I deleted the inetd.conf, and renamed the inetd.conf.old back to just inetd.conf.

Then I rebooted, but all the errors are still there, so I've got to be missing something. I guess it serves me right for entering commands with no understanding of what they do, but if anybody can help me I would really appreciate it.
 
Old 03-28-2004, 11:43 PM   #5
KneeLess
Member
 
Registered: May 2003
Distribution: Debian GNU/Linux 3.0 Sid, OpenBSD 3.5
Posts: 190

Rep: Reputation: 30
I generally don't like moving inetd.conf and making a blank one, I just comment the needed lines (all of them) out, and remove it from startup scripts. What inetd is a superdaemon of sorts, to get and sort incoming data, basically takes the edge off of high-demand servers. You definatly don't need it. Even if you use one or two services, you probably don't need it.

And that won't disable all services nine times out of ten. Post your error messages. And maybe check out this guide: Slack Hardening It offers a simple command by command of securing your system. Make sure you understand what those commands do beforehand, though!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unnecessary process running Swift&Smart Linux - Software 2 12-05-2004 03:36 AM
Unnecessary Services/Daemons loaded at boot t3___ Linux - Newbie 1 02-27-2004 05:22 PM
Removing unnecessary services and users/groups Jiggy Linux - Security 4 11-18-2003 01:11 PM
Speeding up boot by stopping unnecessary services hamish Linux - Software 2 09-09-2003 03:11 PM
Speeding up boot by stopping unnecessary services hamish Linux - Software 1 09-09-2003 08:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration