|
ghartl1
|
 |
« on: August 22, 2008, 03:26:02 pm » |
|
hi. i use soho 5.8 and i am about to harden the system. harxen means to disable unneccesary services for my desktopbox. so in /etc/rc.d/ i do have some services that i disabled (e.g chmod -x rc.inetd) then i switch to the subdirectory init.d...and there i have the same service (inetd) still executable... which one is the right way to disable services manually...i know in vasm is a menueentry to disable services. but in init.d the services remain still active is it sufficient to remove the x attribute in /etc/rc.d/rc.somewhat  greets günter
|
|
|
|
« Last Edit: August 22, 2008, 07:06:07 pm by ghartl1 »
|
Logged
|
|
|
|
|
bigpaws
|
 |
« Reply #1 on: August 22, 2008, 03:28:10 pm » |
|
You can either. I usually just make the files non executable.
Bigpaws
|
|
|
|
|
Logged
|
|
|
|
|
uelsk8s
|
 |
« Reply #2 on: August 22, 2008, 03:57:18 pm » |
|
You need to remove the symlinks to the services you dont want to run from the runlevels you dont want them to run in. (this is what VASM does to disable services)
you also need to "remove the x attribute in /etc/rc.d/rc.somewhat" (this is how Slackware disables "services")
|
|
|
|
|
Logged
|
|
|
|
|
ghartl1
|
 |
« Reply #3 on: August 22, 2008, 04:26:48 pm » |
|
where are the symlinks located?
in init.d are only shellscripts..
can you give me an example ...eg. i want to manually disable ssh....sure i can remove the package..but where are the links for ssh?
greets günter
|
|
|
|
|
Logged
|
|
|
|
|
bigpaws
|
 |
« Reply #4 on: August 22, 2008, 04:42:24 pm » |
|
chmod -x /etc/rc.d/rc.sshd
Bigpaws
|
|
|
|
|
Logged
|
|
|
|
|
ghartl1
|
 |
« Reply #5 on: August 22, 2008, 05:36:42 pm » |
|
okay bigpaws....and its not necessary to edit the script ssh in init.d
|
|
|
|
|
Logged
|
|
|
|
|
bigpaws
|
 |
« Reply #6 on: August 22, 2008, 06:27:46 pm » |
|
No need to modify any other scripts.
Bigpaws
|
|
|
|
|
Logged
|
|
|
|
|
ghartl1
|
 |
« Reply #7 on: August 22, 2008, 07:05:39 pm » |
|
thanks---and good night
|
|
|
|
|
Logged
|
|
|
|
|
uelsk8s
|
 |
« Reply #8 on: August 22, 2008, 07:46:12 pm » |
|
The symlinks are located in the rcx.d folders where x=the run level. here is an example. sh-3.1# ls -la /etc/rc.d/rc4.d/ total 3 drwxr-xr-x 2 root root 256 2008-07-28 06:59 . drwxr-xr-x 10 root root 2544 2008-08-19 20:22 .. lrwxrwxrwx 1 root root 15 2008-07-28 06:59 K45samba -> ../init.d/samba lrwxrwxrwx 1 root root 17 2008-07-28 06:59 K49ifplugd -> ../init.d/ifplugd lrwxrwxrwx 1 root root 15 2008-07-28 06:59 K49inetd -> ../init.d/inetd lrwxrwxrwx 1 root root 14 2008-07-28 06:59 K60cups -> ../init.d/cups lrwxrwxrwx 1 root root 14 2008-07-28 06:59 S39cups -> ../init.d/cups lrwxrwxrwx 1 root root 17 2008-07-28 06:59 S50ifplugd -> ../init.d/ifplugd lrwxrwxrwx 1 root root 15 2008-07-28 06:59 S50inetd -> ../init.d/inetd lrwxrwxrwx 1 root root 15 2008-07-28 06:59 S54samba -> ../init.d/samba
|
|
|
|
|
Logged
|
|
|
|
Birdman
Member

Posts: 46
|
 |
« Reply #9 on: August 30, 2008, 10:32:34 am » |
|
I have a related problem.
I am using 5.9 and just run an update (including CUPS). I now find that upon boot neither hplip or cups start. I have tried using VASM and also manually created links to the /etc/rc.d/rc5.d directory (as none existed) but upon reboot the services do not start?
Any ideas.
Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
bigpaws
|
 |
« Reply #10 on: August 30, 2008, 02:43:27 pm » |
|
Your problem is not really related. A new thread should have been started.
Please check that /etc/rc.d/rc.cups is executeable. If not make executable.
As root type: /etc/rc.d/rc.cups
That will start cups.
Bigpaws
|
|
|
|
|
Logged
|
|
|
|
Birdman
Member

Posts: 46
|
 |
« Reply #11 on: August 30, 2008, 02:52:05 pm » |
|
Sorry for not starting a new tread - I saw a similarity. /etc/rc.d/rc.cups is executable and yes I can manually start it. But that is the problem - I don't want to have to manually start cups every time I boot the system. My wife uses the box also (for some of her work stuff), and she is a user, not a techy. The system did work OK but not any more. I am familiar with the Slackware way of activating services as I have used Slackware for many years. This is what is puzzling me. Everything looks right, but reboot the box and cups isn't running 
|
|
|
|
|
Logged
|
|
|
|
|
uelsk8s
|
 |
« Reply #12 on: August 30, 2008, 03:12:41 pm » |
|
Birdman, try starting the service from the CL service cups start If it starts there then the symlinks should be all you need. are you sure you are starting in runlevel 5?
|
|
|
|
|
Logged
|
|
|
|
|
bigpaws
|
 |
« Reply #13 on: August 30, 2008, 04:25:00 pm » |
|
The simple fix is to place the cups start in /etc/rc.d/rc.local
Look at /etc/rc.d/rc.m and /etc/rc.d/rc.cups there are where daemons appear to be checked.
Bigpaws
|
|
|
|
|
Logged
|
|
|
|
Birdman
Member

Posts: 46
|
 |
« Reply #14 on: August 31, 2008, 03:15:49 am » |
|
Birdman, try starting the service from the CL service cups start If it starts there then the symlinks should be all you need. are you sure you are starting in runlevel 5? Having a bit of a moment there - it should of course be run level 4 However, I have just tried running service cups start and I get this message service start is not active Could this have something to do with things? BTW: I have removed the symlinks that I created to rc5.d, but there aren't any symlinks to rc4.d  I guess there should be? Thanks.
|
|
|
|
|
Logged
|
|
|
|
|