- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: prevent remshd from loggin entries into /var/a...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008 05:05 PM
01-08-2008 05:05 PM
prevent remshd from loggin entries into /var/adm/wtmps
I have a lot of systems logging into my HPUX11i server using remote shell (rsh).
I think it has resulted in the size of wtmps to grow to 300MB.
How do I disable remshd from logging entries into /var/adm/wtmps ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008 06:48 PM
01-08-2008 06:48 PM
Re: prevent remshd from loggin entries into /var/adm/wtmps
I am not aware of any easy method to
disable logging for remshd, unless you
a) Have access to remshd source code to recompile it.
or
b) Use some rshd alternative. In old times,
before I stopped using R* protocols altogether, I was very fond of
Wietse Venema's logdaemon suite of
toolkits.
c) Play with user accounting management
options.
or (best option):
d) Decide to move away from R*
protocols and migrate to SSH/SFTP/SCP.
The logging capabilities are directly coded
into remshd daemon.
HP-UX 11v2 and v3 use utmps-like structure,
and one of the the key elements is:
#define WTMPS_FILE "/var/adm/wtmps"
It would be interesting to see what
could be gained if environment variable
WTMPS_FILE pointed to another file or /dev/null? However, this would affect all
logging on the server, not just remshd.
Frankly, you are probably better off
leaving the logging as it is and setting
up some utmps/wtmps log file recycling
on a regular basis. That way:
1. You satisfy some basic IT security audits
(the auditors like to see proof that
you collect login details - even though
that information is easily hacked - most security auditors are not technically competent people anyway - I dealt with many
of them in my work :));
2. You do not risk wtmps file growth
beyond unmanageable size;
Even better, disable remshd and start
using SSH.
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008 06:58 PM
01-08-2008 06:58 PM
Re: prevent remshd from loggin entries into /var/adm/wtmps
# cat /dev/null > /var/adm/wtmps
But the file is being used by the pcnfsd process
# fuser ./wtmps
./wtmps: 594o
ps -ef | grep 594
root 594 1 0 Dec 11 ? 0:09 /usr/sbin/rpc.pcnfsd
Is it safe to run # cat /dev/null > /var/adm/wtmps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008 07:03 PM
01-08-2008 07:03 PM
Re: prevent remshd from loggin entries into /var/adm/wtmps
You need to edit /etc/inetd.conf and change the line
shell stream tcp nowait root /usr/lbin/remshd remshd
to
shell stream tcp nowait root /usr/lbin/remshd remshd -t
run "inetd -c"
It should prevent logging remshd in /var/adm/wtmp.
Thanks & Regards
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008 07:39 PM
01-08-2008 07:39 PM
Re: prevent remshd from loggin entries into /var/adm/wtmps
a) Yes, you can cp /dev/null over /var/adm/wtmps as long
as you do not care about lost records.
b) Frankly, I am not aware of flag "-t"
for remshd that Ramesh mentions. It is not
an official flag (unless it is
an undocumented one, or I am too much
enjoying my holidays and forgot about this
flag :)).
Cheers,
Vk2COT