10 More Discussions You Might Find Interesting
1. Solaris
Hi,
I've installed Solaris 11.3(live media) and configured DNS. Everytime I reboot the server, resolv.conf got deleted and it created a new nsswitch.conf.
I used below to configure both settings:
# svccfg -s dns/client
svc:/network/dns/client> setprop config/nameserver = (xx.xx.xx.aa... (1 Reply)
Discussion started by: flexihopper18
1 Replies
2. Shell Programming and Scripting
Hello all,
Newbie here.
I'm currently tasked with updating rsyslog.conf and auditd.conf on a large set of servers. I know the exact logging configurations that I want to enable. I have updated both files on on a server and hope to use the updated files as a template for the rest of the... (3 Replies)
Discussion started by: Mide
3 Replies
3. AIX
Hello,
We're working on securing the AIX environment. started with disabling unused services on AIX.
Below are the entries which are not commented on my test LPAR (even other LPARs).
ntalk dgram udp wait root /usr/sbin/talkd talkd
daytime stream tcp nowait root... (1 Reply)
Discussion started by: system.engineer
1 Replies
4. Shell Programming and Scripting
Hi gurus,
My boss has asked me to create a unix script to check header files vs data files and to send an email in case of any failure.
I have very little unix scripting experience and it was now long ago so I'm a bit concerned I wont be able to turn this around by end of day tomorrow.
... (4 Replies)
Discussion started by: Leedor
4 Replies
5. Shell Programming and Scripting
for security reasons I can not post any part of the script in question in this thread. i hope im not breaking any rules by not doing so.
but i have a perl script that i've been asked to turn on debugging on.
i didn't write this perl script and i have very very little knowledge of perl. so i... (3 Replies)
Discussion started by: SkySmart
3 Replies
6. Solaris
Hello Guys,
Do we need to configure this file only if we add SAN disk or even if we add local disk, do we need to modify? (4 Replies)
Discussion started by: mokkan
4 Replies
7. UNIX for Dummies Questions & Answers
I'm trying to edit the inetd.conf but for some reason when I vi into it, it says "Read Only" even though I am root and the perms are 777?!? (2 Replies)
Discussion started by: shorty
2 Replies
8. Red Hat
I need to put the following line in inetd.conf:
stats stream tcp nowait nobody /usr/local/bin/mrtgsysinfo mrtgsysinfo
but my version of linux don't seem to allow that, ie there is no inetd.conf. How do i set that up in linux (red hat enterprise 3). (15 Replies)
Discussion started by: frankkahle
15 Replies
9. UNIX for Advanced & Expert Users
Hi!!,
I have been working on a HP UX box all these days.. For adding a user defined service, I used to put an entry for this service corresponing to a port number in /etc/services. These services were then defined in inetd.conf.
Now I have moved to Mandrake linux. I can find a file named... (2 Replies)
Discussion started by: jyotipg
2 Replies
10. UNIX for Dummies Questions & Answers
Hi there
I'm trying to set up swat on my linux box at home and when i read the man pages on it it says that i have to edit a file called inetd.conf but i did a search like
find / -name inetd.conf
but it only comes up with this.
/etc/linuxconf/archive/Home-Office/etc/inetd.conf
find:... (2 Replies)
Discussion started by: nemex
2 Replies
DebianNet(3pm) Linux Programmer's Manual DebianNet(3pm)
NAME
DebianNet.pm - create, remove, enable or disable entry in /etc/inetd.conf
SYNOPSIS
require DebianNet;
DebianNet::add_service($newentry, $group);
DebianNet::remove_service($entry);
DebianNet::enable_service($service, $pattern);
DebianNet::disable_service($service, $pattern);
DESCRIPTION
You can use the functions in DebianNet.pm to to add, remove, enable or disable entries in the /etc/inetd.conf file. After the
/etc/inetd.conf file has been changed, a SIGHUP signal will be sent to the inetd process to make sure that inetd will use the new
/etc/inetd.conf file. The functions can also be used to add entries that are commented out by default. They will be treated like normal
entries. That also means that if you already have an entry that is commented out you can't add an entry for the same service without remov-
ing the old one first.
The DebianNet functions treat entries that are commented out by a single '#' character as entries that have been commented out by a user.
It won't change such entries.
For shell scripts you can also use the update-inetd command. See update-inetd(8) for further information.
VARIABLES
$DebianNet::inetdcf = "FILENAME";
Use FILENAME instead of /etc/inetd.conf (e.g. for testing purposes).
$DebianNet::sep = "#<off># ";
"#<off># " will be used as the default comment characters. You can use this option to specify different comment characters. This
is only necessary if you have to deal with two (or more) services of the same name.
$DebianNet::multi = "true";
If you want to disable/remove more than one entry at a time you should use this option. If you try to remove more than one entry at
a time without using this option the program will show a warning and asks the user if he want to continue.
$DebianNet::verbose = "true";
Explain what is being done.
FUNCTIONS
DebianNet::add_service($newentry, $group);
Add $newentry to the group $group of the /etc/inetd.conf file. If the entry already exist it will be enabled (it will also detect
entries with different program options). Using $group is optional (the default group is the group OTHER). If the group does not
exist the entry will be placed at the end of the file.
DebianNet::remove_service($entry);
Remove $entry from /etc/inetd.conf . You can use a regular expression to remove the entry.
DebianNet::enable_service($service, $pattern);
Enable $service (e.g. "ftp") in /etc/inetd.conf . Using $pattern is optional. It can be used to select a service. You only need
this option if you have two (or more) services of the same name. An example: you have three ftp entries in the /etc/inetd.conf file
(all disabled by default) and you want to enable the entry which uses the wu-ftpd daemon. To do this, use the pattern "wu-ftpd" (or
any other regular expression that matches this entry).
DebianNet::disable_service($service, $pattern);
Disable SERVICE (e.g. "ftp") in /etc/inetd.conf . Using $pattern is optional (see above).
AUTHORS
Peter Tobias, <tobias@et-inf.fho-emden.de>
Ian Jackson <iwj10@cus.cam.ac.uk>
Linux 21 September 1995 DebianNet(3pm)