LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   How to Close Ports (https://www.linuxquestions.org/questions/linux-security-4/how-to-close-ports-1515/)

iceman47 11-27-2003 09:49 PM

It won't be the pers that's causing the error, there's an option somewhere in apache
that allows .php file to act as index, if you can do that from webmin: great

tommytomato 11-27-2003 10:57 PM

Cool i got it now, I would be better to rename to files, just in case one stuffs up.
but yet again removing the links would be better, thinking all it does it rename and not fix the prolbem. Der on me!:tisk:

starting a service like so

[root@www root]# cd /sbin
[root@www sbin]# service
Usage: service < option > | --status-all | [ service_name [ command | --full-res
tart ] ]
[root@www sbin]# service vsftpd start
Starting vsftpd for vsftpd: [ OK ]
[root@www sbin]#

is the a way to start on reboot instead of restarting them all again on reboot.

I know that one can edit the rc.d.local file by using vi /etc/rc.d/rc.local
by adding in
/etc/rc.d/init.d/httpd start

just wondering if this can be done from the command line :confused:


tommytomato :newbie:

iceman47 11-27-2003 11:11 PM

I'm not sure if I get your question, you're working CLI now already.
If you question is how to start services on boot automaticly, the answer if again those
symlinks, make a symlink for the service you want to start in the runlevel you want.
And don't forget to kill it in /etc/rc0.d and rc6.d.
You start a service by naming a symlink SXX<name service>
where S stands for start XX is a number between 00 and 99, reflects the timing when
it gets started in that runlevel.
to kill a service the symlink has to start with a K from kill obviously.
You make symlinks with ln -s
man ls for more info.

Or you could work with xinetd or rc.local, it's all up to you.

tommytomato 11-27-2003 11:29 PM

opps, i have a ton of emails coming in.

should del the emails as i read them, never mine, i've saved then to other folder.

sorry for confusing you.

what is CLI ?

Yer i was wondering if there was a way to start each one on boot,
in stead of restarting each one again after reboot..

i can go around this by editing the rc.d.local file.

but i was wondering if it can be done via the command line to save it on boot.

I was using the GUI services before, i tick the box click start then save.
but now i'm using just a shell server..

tommytomato


:newbie:

iceman47 11-27-2003 11:42 PM

CLI - command line interface.
Now I get it, yes that's possible.
Earlier this night I learnt about a little program "ntsysv", check the man page before
using it though.

tommytomato 11-27-2003 11:49 PM

thanks

tommytomato

stevo_fergu 01-04-2007 05:59 PM

Stopping the portmapper on Suse Linux
 
rpcbind AKA portmap running on port 111

stop the service

# /etc/init.d/portmap stop

remove the start and stop scripts

# find /etc/init.d/rc* -name '*portmap' -exec rm {} \;


All times are GMT -5. The time now is 09:46 AM.