Operating System - HP-UX
1834696 Members
2182 Online
110069 Solutions
New Discussion

startup options of syslogd

 
Jdamian
Respected Contributor

startup options of syslogd

I want to prevent users from other systems to write in syslog.log file.

I realized port 514/udp is accepting connections for syslogd.

I read syslogd(1M) manual pages and found -N option to prevent listening the port.

But I haven't found a file in /etc/rc.config.d directory to pass this option startup sequence (rc) as 'netdaemons' for inetd.

The only way is modifying /sbin/init.d/syslogd startup script.

Any ideas else ?
6 REPLIES 6
Stanimir
Trusted Contributor

Re: startup options of syslogd

Hi!
I thing, you can open /sbin/init.d/syslogd script and find section "start", where you
can add necessary option -N. After reboot
all will be good. And also you can restart
syslogd with necessary option.
Regards, Stan
Chris Wilshaw
Honored Contributor

Re: startup options of syslogd

At HP-UX 11, there is /etc/rc.config.d/syslogd, which contains the line

SYSLOGD_OPTS="-v"
Jdamian
Respected Contributor

Re: startup options of syslogd

In HP-UX 11.00 there is no file /etc/rc.config.d/syslogd.
Stanimir
Trusted Contributor

Re: startup options of syslogd

Oops!
Sorry, I haven't read your last row. :)
May be you can edit:
/etc/syslog.conf

Marco Santerre
Honored Contributor

Re: startup options of syslogd

Unfortunately you'll have to edit the script syslogd in /sbin/init.d and add your -N option in there at the syslogd command in the start.
Cooperation is doing with a smile what you have to do anyhow.
Robert-Jan Goossens
Honored Contributor

Re: startup options of syslogd

Hi,

Prevent syslogd from listening on the network.

PHCO_21023 can be installed which adds a -N option to syslogd to prevent it from listening on the network for remote log messages. After installing this patch, edit /sbin/init.d/syslogd and modify the line that starts syslogd to be /usr/sbin/syslogd -DN.

is this what you are looking for ?

Robert-Jan.