How to Secure this box configuration?

This is a discussion on How to Secure this box configuration? within the Linux Security forums, part of the System Security and Security Related category; I am using Slack v10.0, kernel 2.4.26, sendmail 8.12.11. On sendmail, I am using virtusertable ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-01-2004
Manuel
 
Posts: n/a
Default How to Secure this box configuration?

I am using Slack v10.0, kernel 2.4.26, sendmail 8.12.11.

On sendmail, I am using virtusertable for a few domains.
My users are in /etc/passwd. Access are via POP3 and webmail (squirrelmail
1.4.3a).
Users managed their password, vacation msg via usermin.

Everything above works. Now, how to secure it from shell access?
BTW: I have disabled most of the unwanted daemon, only port
22,25,80,110,143,443,20000 (usermin) are opened.

Questions:
1 - How can I prevent shell access but still allow email access?

I have tried setting the account shell as /bin/false or expired account.
Result:
/bin/false - Their vacation msg will not work as the program vacation need
shell access
expired account - Users not able to log in via webmail.

I have about about an average of 10 users per domain on this box.

Any help or suggestion will be greatly appreciated.



Reply With Quote
  #2 (permalink)  
Old 09-01-2004
Sylvain Robitaille
 
Posts: n/a
Default Re: How to Secure this box configuration?

Manuel wrote:

> I am using Slack v10.0, kernel 2.4.26, sendmail 8.12.11.
> ...
> Everything above works. Now, how to secure it from shell access?


See Sendmail's smrsh(8) restricted shell manual page. I'm sure that
this will provide what you want.

--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca

Systems analyst / Postmaster Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Reply With Quote
  #3 (permalink)  
Old 09-01-2004
Colin McKinnon
 
Posts: n/a
Default Re: How to Secure this box configuration?

Manuel wrote:

>
> I have tried setting the account shell as /bin/false or expired account.
> Result:
> /bin/false - Their vacation msg will not work as the program vacation need
> shell access
> expired account - Users not able to log in via webmail.
>
> I have about about an average of 10 users per domain on this box.
>
> Any help or suggestion will be greatly appreciated.


Why not just set to sshd to allow only one specific group access - it won't
stop users from logging in at the console or any tty's with a getty....but
is that an issue?

HTH

C.
Reply With Quote
  #4 (permalink)  
Old 09-01-2004
BadMan
 
Posts: n/a
Default Re: How to Secure this box configuration?

is /bin/false existant in /etc/shells ?


Colin McKinnon wrote:

> Manuel wrote:
>
>
>>I have tried setting the account shell as /bin/false or expired account.
>>Result:
>>/bin/false - Their vacation msg will not work as the program vacation need
>>shell access
>>expired account - Users not able to log in via webmail.
>>
>>I have about about an average of 10 users per domain on this box.
>>
>>Any help or suggestion will be greatly appreciated.

>
>
> Why not just set to sshd to allow only one specific group access - it won't
> stop users from logging in at the console or any tty's with a getty....but
> is that an issue?
>
> HTH
>
> C.

Reply With Quote
  #5 (permalink)  
Old 09-02-2004
John Thompson
 
Posts: n/a
Default Re: How to Secure this box configuration?

["Followup-To:" header set to comp.os.linux.security.]
On 2004-09-01, Manuel <nouser@nodomain.com> wrote:
> I am using Slack v10.0, kernel 2.4.26, sendmail 8.12.11.
>
> On sendmail, I am using virtusertable for a few domains.
> My users are in /etc/passwd. Access are via POP3 and webmail (squirrelmail
> 1.4.3a).
> Users managed their password, vacation msg via usermin.
>
> Everything above works. Now, how to secure it from shell access?
> BTW: I have disabled most of the unwanted daemon, only port
> 22,25,80,110,143,443,20000 (usermin) are opened.
>
> Questions:
> 1 - How can I prevent shell access but still allow email access?
>
> I have tried setting the account shell as /bin/false or expired account.
> Result:
> /bin/false - Their vacation msg will not work as the program vacation need
> shell access
> expired account - Users not able to log in via webmail.
>
> I have about about an average of 10 users per domain on this box.
>
> Any help or suggestion will be greatly appreciated.


"man smrsh"

--

-John (john@os2.dhs.org)
Reply With Quote
  #6 (permalink)  
Old 09-05-2004
Carlos
 
Posts: n/a
Default Re: How to Secure this box configuration?

Thank you Sylvian and John.

smrsh really solved my problem. Now my box is secured - at least in regards
to sendmail and shell access.

Thanks again guys.

"Sylvain Robitaille" <syl@alcor.concordia.ca> wrote in message
news:slrncjbsar.dt2f.syl@alcor.concordia.ca...
> Manuel wrote:
>
> > I am using Slack v10.0, kernel 2.4.26, sendmail 8.12.11.
> > ...
> > Everything above works. Now, how to secure it from shell access?

>
> See Sendmail's smrsh(8) restricted shell manual page. I'm sure that
> this will provide what you want.
>
> --
> ----------------------------------------------------------------------
> Sylvain Robitaille syl@alcor.concordia.ca
>
> Systems analyst / Postmaster Concordia University
> Instructional & Information Technology Montreal, Quebec, Canada
> ----------------------------------------------------------------------



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0