LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-06-2012, 04:52 PM   #1
vacantstare
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
redhat packages I can safely remove


Hello-

I'm mostly a Windows admin (don't hate), and I recently inherited management of a RedHat 5.x server that provides sftp and https services. I'd like to rip out everything that's not needed to support these two functions, especially things that may have vulnerabilites.

Can I remove cups, samba and nfs related packages without affecting the two services this box provides?

Got any suggestions for other superfluous packages that could/should be removed? DHCP? DNS?

thanks

Last edited by vacantstare; 08-06-2012 at 05:06 PM.
 
Old 08-06-2012, 05:18 PM   #2
spazticclown
Member
 
Registered: Sep 2010
Distribution: Fedora, Android, CentOS
Posts: 91
Blog Entries: 2

Rep: Reputation: 21
You can start out by stopping the services that you wish to remove to see if anything else failes to function properly.

For instance disable cups and see if anything goes wrong, who knows, maybe some user somewhere prints through the server.

The startup scripts are in /etc/init.d and can be stopped like so
Code:
/etc/init.d/smb stop
Or disabled with:
Code:
/sbin/chkconfig smb off
smb is the samba server in the above examples.

Almost forgot, to change firewall rules from terminal
Code:
system-config-firewall-tui
or in x from graphical display
Code:
system-config-firewall

Last edited by spazticclown; 08-06-2012 at 05:20 PM.
 
Old 08-06-2012, 06:53 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
As root
Code:
service <service name> stop
repeat for each candidate and let it run for a week, in case there are eg end of week special jobs.
Get the service name from chkconfig/ntsysv below.

Next
Code:
chkconfig <service name> off
permanently turns it off, even after a reboot.
http://linux.die.net/man/8/chkconfig

You can get a list of all services
Code:
chkconfig --list
For a pseudo GUI, try ntsysv http://linux.die.net/man/8/ntsysv

You'll want to bookmark this http://www.linuxtopia.org/online_boo...ion/index.html

You're going to want to understand the yum cmd http://linux.die.net/man/8/yum to keep the system updated.
Try to avoid using rpm cmd http://linux.die.net/man/8/rpm for updating, as this does NOT handle dependencies; that's what yum is for

PS: you might want to get a copy of Centos (a free rebuild of RHEL) at home to familiarize yourself.

Welcome to LQ

Last edited by chrism01; 08-06-2012 at 06:57 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Safely remove SD cards mfdarwin Ubuntu 12 08-21-2010 04:42 AM
safely remove hardware bhanuma_nagadeep Linux - Hardware 4 08-20-2008 04:12 PM
How to safely remove device? shame VectorLinux 6 09-06-2006 09:23 PM
how do I (safely) remove gnome? sunpascal Linux - Newbie 1 02-12-2006 10:24 AM
How to safely remove linux :( TRUSTpunk Linux - Newbie 11 01-07-2005 01:55 AM


All times are GMT -5. The time now is 07:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration