LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-10-2006, 05:31 PM   #1
bsmntbombdood
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Rep: Reputation: 0
Locking down a neglected box


I have been running a Linux box for about half a year, and in thinking that it would always be just me using it, I've done some stupid security stuff with it. Yes, changing permissions of some files in /etc to 777. Now I need to give untrusted users access. Should I chown -R root /,chmod 700, then change what I need back to my user?

Also, are there any other steps that should be taken to prevent attacks from users?
 
Old 02-10-2006, 06:31 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
what distro?? what kernel??

what kinda access will the untrusted users have??

i'd say reinstall everything if possible, and then start the hardening process... you might wanna think about something like grsecurity, or selinux... you also might wanna install some kinda file integrity checker, like tripwire or whatever... set it to email you reports at least once a day, etc...

Last edited by win32sux; 02-10-2006 at 06:34 PM.
 
Old 02-10-2006, 06:37 PM   #3
bsmntbombdood
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Sorry I didn't include this, it's Debian testing/unstable with linux kernel 2.6.12
 
Old 02-10-2006, 06:46 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by bsmntbombdood
Sorry I didn't include this, it's Debian testing/unstable with linux kernel 2.6.12
well, the first thing i'd do if i was you is downgrade to STABLE...

a tripwire package is available... as for stable's kernel, i don't know if it is built with selinux support or not...

you might also wanna look into bastille, as it's a hardening tool which is also educational and stuff...

BTW, a nice tool for log file monitoring is logwatch...

Last edited by win32sux; 02-10-2006 at 06:56 PM.
 
Old 02-11-2006, 03:09 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Since you run an ancient & vulnerable kernel and have fscked up the system I'd vote for reinstalling Debian STABLE from scratch. This way you have a more solid basis to start hardening from. Next to Win32sux' other advice please check out the LQ FAQ: Security references.
 
  


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
FreeBSD box keeps locking up. srudaniel *BSD 1 01-10-2005 07:44 AM
locking down a RH box markus1982 Linux - Security 6 10-13-2002 08:59 AM
Locking down my RedHat 7.1 box AMDPwred Linux - Security 6 09-13-2002 10:19 AM
locking down a nix box... bripage Linux - Security 6 08-08-2002 06:49 AM
locking down a nix box... bripage Linux - Networking 1 07-31-2002 04:33 PM

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

All times are GMT -5. The time now is 11:57 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