- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP:UX 10.2 FTP on local machine
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
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-04-2001 03:25 AM
01-04-2001 03:25 AM
I am using an ftp script that depending on the case does an ftp to different machines. One case is that the machine is actually the local machine. So in this case I am performing an ftp on the local machine.
This works fine, although each time a local ftp is performed, there is an entry written in the syslog.log file.
I would like to avoid that this entry is written to the syslog.log file, but haven't managed to find a reason why it does that.
The entry in the syslog.log file looks like this :
Dec 5 16:10:10 maca ftpd[16998]: connection from maca.dom.fi at Tue Dec 5 16:10:10 2000
Dec 5 16:10:10 maca ftpd[16998]: FTP LOGIN FROM maca.dom.fi, ftpsump
Dec 5 16:10:10 maca ftpd[16998]: PORT
Dec 5 16:10:11 maca ftpd[16998]: User ftpsump logged out
Anyone has an idea on how to avoid this happening ?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 03:35 AM
01-04-2001 03:35 AM
Solutionyou probably have an inetd.conf entry like:
ftp ...... root /usr/lbin/ftpd ftpd -l
The -l states that every log in using ftp
should be logged in the syslog file. Removing
the -l and executing inetd -c should switch
this behaviour off.
HTH, cu l8r,
Edgar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 03:39 AM
01-04-2001 03:39 AM
Re: HP:UX 10.2 FTP on local machine
You could disable the ftpd loggingto syslog entirely, if you felt this was absolutely necessary.
Edit /etc/inetd.conf and remove the "-l" flag from the ftpd entry. Then stop and restart inetd:
# /usr/sbin/inetd -k
# /usr/sbin/inetd
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 03:48 AM
01-04-2001 03:48 AM
Re: HP:UX 10.2 FTP on local machine
I suspect that when inetd was started, it was invoked with the -l option, which enables connection logging. This logs all connection attempts from telnet, rlogin, ftp, etc., so if you disable it for ftp, you disable it for everything.
inetd gets started in /sbin/init.d/inetd and this script reads a configuration file, which I think, is /etc/rc.config.d/netdaemons. Find the inetd options line and remove the -l to disable logging when /sbin/init.d/inetd is run.
--Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2001 06:04 AM
01-04-2001 06:04 AM
Re: HP:UX 10.2 FTP on local machine
When restarting inetd, you should use the /sbin/init.d/inetd script passing a 'stop' or 'start' argument, rather than directly invoke /usr/sbin/inetd as I wrote above. The script makes sure that the umask is set to 0 before starting inetd, thus insuring that the services started inherit this value too.
Alternately, you can reread /etc/inetd.conf by issuing: /usr/sbin/inetd -c
...JRF...