Koozali.org: home of the SME Server

Deactivate Modules

Offline druuhl

  • *
  • 9
  • +0/-0
Deactivate Modules
« on: June 11, 2014, 03:06:04 PM »
Hi,

is it possible to deactivate some Modules, like Samba, Cups and else without breaking some dependencies

regards
Stefan

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Deactivate Modules
« Reply #1 on: June 11, 2014, 05:47:15 PM »
hi

first of all explain your problem and not your solution
then, please take a look to http://wiki.contribs.org/Db_command_tutorial
hint status disabled

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Deactivate Modules
« Reply #2 on: June 11, 2014, 06:48:01 PM »
is it possible to deactivate some Modules, like Samba, Cups and else without breaking some dependencies

SME server does not include cups.

Most services can be disabled via the configuration database, without affecting other services. Some services, however, are critical for operation, include syslog, httpd-e-smith and httpd-admin.

What are you trying to achieve? What problem are you trying to solve?

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: Deactivate Modules
« Reply #3 on: June 12, 2014, 08:15:53 AM »
@druuhl you can use sme8admin or sme9admin to deactivate service, or db command if you rather want. But indeed you are right charlie, i'm curious to know what is your goal.

I want to take an idea you spoke charlie, when you formulate about the syslog service. Nethserver has done that to avoid this problem. https://github.com/nethesis/nethserver-lib/commit/337804409a2cf12af4cb88e2d32a4fec0e535ccb. Of course I have not too much advices on it but I'm curious of yours.

In the meanwhile I read this http://lists.contribs.org/pipermail/devinfo/2014-May/012443.html
« Last Edit: June 12, 2014, 08:32:57 AM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline druuhl

  • *
  • 9
  • +0/-0
Re: Deactivate Modules
« Reply #4 on: June 12, 2014, 11:31:18 AM »
Thank for your nswers, i would try this.

My Goal is to disable not needed services. Every Service is Security risk and not needed services are not needed security problems, thats all. In my case i need only the mailserver, easy to use for People without deep Linux Knowhow.
SME look for me like a out of the box solution for my problem, please note im testing it in the moment.

regards
Stefan

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Deactivate Modules
« Reply #5 on: June 12, 2014, 01:52:19 PM »
services as samba are security risk only if you setup your server as a "simple" server (not server and gateway) and give a public ip to it.. the same for the other services..
so, again. you should explain us what are you aiming to/trying to do instead of shutting down services..

Offline druuhl

  • *
  • 9
  • +0/-0
Re: Deactivate Modules
« Reply #6 on: June 12, 2014, 02:53:59 PM »
The setting server and gateway needs more then one NICs, but im my case i have only one


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Deactivate Modules
« Reply #7 on: June 12, 2014, 03:01:31 PM »
it's quite normal.. but, I guess, you wish to publish your server with a public ip, don't you?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Deactivate Modules
« Reply #8 on: June 12, 2014, 03:17:52 PM »
The setting server and gateway needs more then one NICs, but im my case i have only one

In that case you should use a SOHO router to connect the server to the Internet. Forward only mail related ports from the router to your server.

Offline druuhl

  • *
  • 9
  • +0/-0
Re: Deactivate Modules
« Reply #9 on: June 13, 2014, 09:23:33 AM »
Code: [Select]
it's quite normal.. but, I guess, you wish to publish your server with a public ip, don't you?
Yes

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Deactivate Modules
« Reply #10 on: June 13, 2014, 09:59:14 AM »
then you are acting in the wrong way (see Charlie's advice) or using the wrong tool