LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-14-2005, 12:49 PM   #1
New2MDK
LQ Newbie
 
Registered: Feb 2005
Location: Ohio
Distribution: Mandrake 10.1
Posts: 13

Rep: Reputation: 0
Closing ports/stopping services


I don't know if I'm just searching incorrectly or if it doesn't exist. But can anyone point me or know of a link, which will tell me what ports or services I should have opened/closed or running? I understand it's not good to have services running or ports opened, which you don't use or need?

So please, if anyone knows of a URL that will explain this to me, please let me know.


Thank you
 
Old 02-14-2005, 01:09 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Well first, you gotta ask yourself what services do you want to run? Do you want nfs, ftp, apache? If not, shut them using kill or by running the appropriate scripts in /etc/init.d. Sorry, I don't know of a URL that will tell you which ports you need open and such because every linux machine serves a different purpose. You need to tailor your machine to your needs.

-twantrd
 
Old 02-14-2005, 01:19 PM   #3
New2MDK
LQ Newbie
 
Registered: Feb 2005
Location: Ohio
Distribution: Mandrake 10.1
Posts: 13

Original Poster
Rep: Reputation: 0
We'll I'm not running any servers, but is there a way of knowing which services has to stay running for the system. I had to re-install because, I'm pretty sure I disabled something I wasn't suppose to. I couldn't get back into the Desktop. So, what I really meant to say is. Is there a URL or anything that would explain or tell you what services have to run at all times, versus the obvious one I know aren't running?


Thank you
 
Old 02-14-2005, 09:51 PM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Do a 'ps' listing and look at all the processes that are running. Then google each process and understand what their intended purpose is (or just 'man' it). Once you know what a process does, you can kill it or leave it alone depending if you want it running or not.
Quote:
I had to re-install because, I'm pretty sure I disabled something I wasn't suppose to. I couldn't get back into the Desktop
You shouldn't really need to do this, this was overkill. If you disabled something, re-enable it again if you need it. Try CLI (command line interface) and get a feel for it. It will save you when you most need it and you can do things more efficiently. I use CLI 100% of the time.

-twantrd
 
Old 02-15-2005, 12:20 PM   #5
New2MDK
LQ Newbie
 
Registered: Feb 2005
Location: Ohio
Distribution: Mandrake 10.1
Posts: 13

Original Poster
Rep: Reputation: 0
twantrd,

thank you, seems like that is really going to be really the only way. It's probably better, so I'll learn more.

thanks

NEW2MDK
 
Old 02-15-2005, 12:24 PM   #6
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
You can enable or disable services at your MCC (Mandrake Control Center, type mcc at the command line ), if you are using Mandy, of course, as your profile says. MCC has even a command line interface in the case you mess up the X-server.

Good luck!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
closing services juanb Linux - Security 1 09-08-2005 01:58 PM
Closing Unneeded Services AvatarofVirgo Linux - Security 2 01-20-2005 05:16 PM
Closing services on SuSE 8.2 - How? GloVe Linux - Security 3 09-30-2003 07:06 AM
Slackware n()()b and closing open ports/services osx Slackware 8 03-10-2003 12:51 PM
closing services in RedHat 7.2 thetwin Linux - Security 7 03-03-2003 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:14 PM.

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