LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-23-2006, 03:55 PM   #1
mikz
Member
 
Registered: Sep 2004
Distribution: Slackware current
Posts: 109

Rep: Reputation: 15
Security on a webserver.


I'm trying to secure my slackware webserver. How do I disable shutdown and reboot to all except root.
From my logs it appears that somebody has been able to remotely 'reboot' my machine. Possibly using syslogd 1.4.1: restart.
I need to disable halt, poweroff, reboot, shutdown.
 
Old 01-23-2006, 04:01 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
By default, a normal level user should not be able to do any of those things in Slackware.
 
Old 01-23-2006, 04:02 PM   #3
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Do not be logged in at console as root. Log in as another user.
 
Old 01-23-2006, 04:07 PM   #4
irpstrcr
Member
 
Registered: Mar 2005
Location: LAX
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
you could just change the perms on shutdown and halt. that would prevent
anyone not the owner to run em.

but odds are the server is not really being remotely rebooted.

I've noticed funky syslogd behavior since somewhere around slackware 10
where syslog restarts every hour just about on the hour. it hasn't really
affected anything and it still listens for the remote logs so i haven't
been bothered to looked for the reason.
 
Old 01-23-2006, 04:09 PM   #5
mikz
Member
 
Registered: Sep 2004
Distribution: Slackware current
Posts: 109

Original Poster
Rep: Reputation: 15
Somebody has been able to reboot my machine via remote. I run SSH where I restrict hosts via hosts.deny and hosts.allow
They have apparently found a way of rebooting the machine through some exploit.
As I have understood they have to have root or sudo access in order to do this.
How do 'disable' reboot and shutdown to all except root and user 'abc'.
 
Old 01-23-2006, 04:14 PM   #6
mikz
Member
 
Registered: Sep 2004
Distribution: Slackware current
Posts: 109

Original Poster
Rep: Reputation: 15
Quote:
I've noticed funky syslogd behavior since somewhere around slackware 10 where syslog restarts every hour just about on the hour. it hasn't really affected anything and it still listens for the remote logs so i haven't been bothered to looked for the reason.
This may be the reason. The reboots in question to place over a short period of time.

Jan 19 01:29:31 syslogd 1.4.1: restart.
Jan 19 01:37:12 syslogd 1.4.1: restart.
Jan 19 02:02:27 syslogd 1.4.1: restart.
Jan 19 19:51:03 syslogd 1.4.1: restart.
Jan 19 19:56:44 syslogd 1.4.1: restart.
Jan 19 20:08:40 syslogd 1.4.1: restart.
Jan 19 20:13:41 syslogd 1.4.1: restart.
Jan 19 20:20:23 syslogd 1.4.1: restart.
Jan 19 20:28:32 syslogd 1.4.1: restart.
Jan 19 20:39:32 syslogd 1.4.1: restart.
Jan 19 20:46:35 syslogd 1.4.1: restart.
Jan 19 20:55:21 syslogd 1.4.1: restart.
Jan 20 08:42:21 syslogd 1.4.1: restart.
Jan 20 09:04:02 syslogd 1.4.1: restart.
Jan 20 09:14:11 syslogd 1.4.1: restart.
Jan 20 09:21:22 syslogd 1.4.1: restart.
Jan 20 09:28:25 syslogd 1.4.1: restart.
 
Old 01-23-2006, 04:15 PM   #7
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Like irpstrcr said, buy changing the permissions.

Create a group, put in everyone you want to be able to shutdown the machine, then make the ownership of shutdown and halt to root:groupname.

Then give them the permissions 770.

But I would be more worried about if there is really an exploit in place on your server, and finding out if it is even secure enough to keep using.
 
  


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
LXer: Firefox security (Really Windows Security or Lack Thereof - ED) LXer Syndicated Linux News 1 10-18-2008 09:32 PM
Linux webserver security GNewbie Linux - Security 3 10-18-2005 12:53 PM
[Security Questions] Last Login, how good is this feature for security breach info? t3gah Linux - Security 2 06-14-2005 01:02 AM
security on webserver? worried! TreeHugger Linux - Security 9 12-31-2003 08:11 AM
Can't see WebServer from outside... Can see WebServer locally as http://localhost friddick Linux - Networking 13 08-19-2003 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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