Sponsored Content
Operating Systems SCO Config FTP on SCO Like proftpd Post 303037446 by Arcanisgk on Thursday 1st of August 2019 01:24:27 PM
Old 08-01-2019
Quote:
Originally Posted by MadeInGermany
Did you correctly (with wait) configure the ftpd in /etc/inetd.conf ?
yes, i have this like ... but i dont know much around config this:

Code:
#      @(#)$Id: inetd.conf,v 6.8 1996/01/09 21:48:54 aes Exp $ - STREAMware TCP/
IP  source
#
# Copyrighted as an unpublished work.
# (c) Copyright 1987-1994 Legent Corporation
# All rights reserved.
#
#      SCCS IDENTIFICATION
ftp     stream  tcp     nowait  root    /etc/ftpd       ftpd -a
telnet  stream  tcp     nowait  NOLUID  /etc/telnetd    telnetd
shell   stream  tcp     nowait  NOLUID  /etc/rshd       rshd
login   stream  tcp     nowait  NOLUID  /etc/rlogind    rlogind
exec    stream  tcp     nowait  NOLUID  /etc/rexecd     rexecd
finger  stream  tcp     nowait  nouser  /etc/fingerd    fingerd
#uucp   stream  tcp     nowait  NOLUID  /usr/lib/uucp/uucpd     uucpd
# Enabling this allows public read files to be accessed via TFTP.
#tftp   dgram   udp     wait    nouser  /etc/tftpd      tftpd
# This is the more secure method, since only files from /tftpboot can
# be accessed via TFTP.   This must be root in order to do the chroot
# to /tftpboot.  /tftpboot must be created by hand.
#tftp   dgram   udp     wait    root    /etc/tftpd      tftpd -s /tftpboot
comsat  dgram   udp     wait    root    /etc/comsat     comsat
ntalk   dgram   udp     wait    nouser  /etc/talkd      talkd
#
# Entries for BOOTP and DHCP servers & relay agent
#
# If running tftpd in secure mode, use bootpd with "-c securedir"
# where securedir is the argument to tftpd -s.
#
# To run bootpd by itself, use:
#bootps dgram   udp     wait    root    /etc/bootpd     bootpd
#
# To run dhcpd by itself, use:
#bootps dgram/i udp     wait    root    /etc/dhcpd      dhcpd
#
# When running dhcpd and bootpd, bootpd must be run in "slave mode" (with the
# -S option).  In this mode, bootpd listens on an alternate port.  The port
# bootps-alt is defined to be 950 in /etc/services, but it can be anything
# < 1024.  To run dhcpd and bootpd, use the following two lines:
#bootps dgram/i udp     wait    root    /etc/dhcpd      dhcpd -b bootps-alt
#bootps-alt dgram udp   wait    root    /etc/bootpd     bootpd -S
#
# To run the BOOTP/DHCP relay agent bootpgw, use:
#bootps dgram/i udp     wait    root    /etc/bootpgw    bootpgw server-name
tcpmux  stream  tcp     nowait  root    internal
echo    stream  tcp     nowait  root    internal
discard stream  tcp     nowait  root    internal
chargen stream  tcp     nowait  root    internal
daytime stream  tcp     nowait  root    internal
time    stream  tcp     nowait  root    internal
echo    dgram   udp     wait    root    internal
discard dgram   udp     wait    root    internal
chargen dgram   udp     wait    root    internal
daytime dgram   udp     wait    root    internal
time    dgram   udp     wait    root    internal
pop3    stream  tcp     nowait  root    /etc/popper popper
imap    stream  tcp     nowait  root    /etc/imapd imapd

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

using ftp on sco

I'm using SCO unix - 5 as server and stallion board to connect my users on serial comm. I want some of my files generetd on unix to be copied to one of my window'95 based system. I can use crosstalk loaded on windows system to log in automatically and 'cat the file' which will be than stored... (1 Reply)
Discussion started by: skant
1 Replies

2. UNIX for Dummies Questions & Answers

[sos]How to config my Sco openserver 5.06

How to config my Sco openserver 5.06 to link on the Internet.MY Etherent sever is Winme........... Can u tell me from the configure of netcard start......... thanx for help...............thanx a lot (1 Reply)
Discussion started by: dingxf
1 Replies

3. IP Networking

RH 7.2 FTP Server Config

Is it possible to ftp from WinXp to a Linux box? I have the the ftp server set up to take the request from the WinXp box but each time I try to connect I keep getting an error, Connection established, unknown error(windows ftp program) or if I try to ftp from the DOS prompt I get ftp connect:... (3 Replies)
Discussion started by: flounder
3 Replies

4. UNIX for Advanced & Expert Users

FTP - Sco Unix to ProFTPD Error

First off I did try google for help on this topic, didn't really find anything. When I try to ftp from my SCO Unix box (SCO_SV servername 3.2 5.0.5 i386) to a proFTPD server within my company I get this error Connected to 10.?.?.?. 220 ProFTPD Server ftp.hostname.com Name (10.?.?.?:root):... (1 Reply)
Discussion started by: whegra
1 Replies

5. UNIX for Dummies Questions & Answers

Enable FTP on SCO

My goal is to use FTP to transfer file between PC and SCO Unix server.When I try to connect via FTP with root user, it failed. What should I do? How to configure ftpaccess? Thanks in advance! (2 Replies)
Discussion started by: Vladan
2 Replies

6. UNIX for Dummies Questions & Answers

FTP from SCO UNIX to Windows XP PC

I am trying to start an FTP session from my UNIX PC to a PC running XP. I aim to run a cron to manipulate remote files on the Windows M/C. I cannot connect to the Windows M/C when i start rthe FTP session on the UNIX box. I can do it fine the other way round. I have set entries in /etc/hosts... (2 Replies)
Discussion started by: farmacy
2 Replies

7. UNIX for Dummies Questions & Answers

Problem with FTP o n Unix SCO

my problem is like this while ftping locally it works, but when users from WAN try the ftp services it doesnt comes the message it displays is as follows "connection closed by remote host " please help Thanks (5 Replies)
Discussion started by: Athos19
5 Replies

8. Shell Programming and Scripting

FTP credentials from a config file

Hi, I am using the following syntax to connect to an FTP server and paste the file. Based on the value in the variable $Folder, i want to connect to different folders on the same server. The credential is different to access different folders. How to get the user name and password from a... (3 Replies)
Discussion started by: ashok.k
3 Replies

9. Solaris

RBAC with ftp/sftp using proftpd

I'm using proftpd to manage my ftp/sftp connections but would like to use RBAC to only allow ftp/sftp connections. Has anyone done this or can point me in the right direction? This is my first experience trying to use RBAC. Thanks in advance. (2 Replies)
Discussion started by: toor13
2 Replies

10. Shell Programming and Scripting

Odd looping issue with NET::FTP and Proftpd

Hello, I'm a UNIX SysAdmin at a large webhosting company and we have a vendor that provides a service which involves the ftp'ing of files from their servers to ours. They initiate FTP using a perl script with NET::FTP. When they try to transfer files (and delete files over ftp), there is... (3 Replies)
Discussion started by: tmmgeekette
3 Replies
INETD(8)						      System Manager's Manual							  INETD(8)

NAME
inetd - internet ``super-server'' SYNOPSIS
inetd [-d] [-R rate] [configuration file] DESCRIPTION
The inetd program should be run at boot time by /etc/rc (see rc(8)). It then listens for connections on certain internet sockets. When a connection is found on one of its sockets, it decides what service the socket corresponds to, and invokes a program to service the request. The server program is invoked with the service socket as its standard input, output and error descriptors. After the program is finished, inetd continues to listen on the socket (except in some cases which will be described below). Essentially, inetd allows running one daemon to invoke several others, reducing load on the system. The options available for inetd: -d Turns on debugging. -R rate Specifies the maximum number of times a service can be invoked in one minute; the default is 1000. Upon execution, inetd reads its configuration information from a configuration file which, by default, is /etc/inetd.conf. There must be an entry for each field of the configuration file, with entries for each field separated by a tab or a space. Comments are denoted by a ``#'' at the beginning of a line. There must be an entry for each field. The fields of the configuration file are as follows: service name socket type protocol wait/nowait user server program server program arguments There are two types of services that inetd can start: standard and TCPMUX. A standard service has a well-known port assigned to it; it may be a service that implements an official Internet standard or is a BSD-specific service. As described in RFC 1078, TCPMUX services are nonstandard services that do not have a well-known port assigned to them. They are invoked from inetd when a program connects to the ``tcpmux'' well-known port and specifies the service name. This feature is useful for adding locally-developed servers. The service-name entry is the name of a valid service in the file /etc/services. For ``internal'' services (discussed below), the service name must be the official name of the service (that is, the first entry in /etc/services). For TCPMUX services, the value of the service- name field consists of the string ``tcpmux'' followed by a slash and the locally-chosen service name. The service names listed in /etc/services and the name ``help'' are reserved. Try to choose unique names for your TCPMUX services by prefixing them with your organi- zation's name and suffixing them with a version number. The socket-type should be one of ``stream'', ``dgram'', ``raw'', ``rdm'', or ``seqpacket'', depending on whether the socket is a stream, datagram, raw, reliably delivered message, or sequenced packet socket. TCPMUX services must use ``stream''. NOTE: ``rdm'' and ``seqpacket'' are not supported in 2.11BSD. The protocol must be a valid protocol as given in /etc/protocols. Examples might be ``tcp'' or ``udp''. TCPMUX services must use ``tcp''. The wait/nowait entry specifies whether the server that is invoked by inetd will take over the socket associated with the service access point, and thus whether inetd should wait for the server to exit before listening for new service requests. Datagram servers must use ``wait'', as they are always invoked with the original datagram socket bound to the specified service address. These servers must read at least one datagram from the socket before exiting. If a datagram server connects to its peer, freeing the socket so inetd can received further messages on the socket, it is said to be a ``multi-threaded'' server; it should read one datagram from the socket and create a new socket connected to the peer. It should fork, and the parent should then exit to allow inetd to check for new service requests to spawn new servers. Datagram servers which process all incoming datagrams on a socket and eventually time out are said to be ``single-threaded''. Comsat(8), biff(1) and talkd(8) are examples of the latter type of datagram server. Tftpd(8) is an example of a multi-threaded datagram server. Servers using stream sockets generally are multi-threaded and use the ``nowait'' entry. Connection requests for these services are accepted by inetd , and the server is given only the newly-accepted socket connected to a client of the service. Most stream-based ser- vices operate in this manner. Stream-based servers that use ``wait'' are started with the listening service socket, and must accept at least one connection request before exiting. Such a server would normally accept and process incoming connection requests until a timeout. TCPMUX services must use ``nowait''. The user entry should contain the user name of the user as whom the server should run. This allows for servers to be given less permission than root. The server-program entry should contain the pathname of the program which is to be executed by inetd when a request is found on its socket. If inetd provides this service internally, this entry should be ``internal''. The server program arguments should be just as arguments normally are, starting with argv[0], which is the name of the program. If the service is provided internally, the word ``internal'' should take the place of this entry. The inetd program provides several ``trivial'' services internally by use of routines within itself. These services are ``echo'', ``dis- card'', ``chargen'' (character generator), ``daytime'' (human readable time), and ``time'' (machine readable time, in the form of the num- ber of seconds since midnight, January 1, 1900). All of these services are tcp based. For details of these services, consult the appro- priate RFC from the Network Information Center. The inetd program rereads its configuration file when it receives a hangup signal, SIGHUP. Services may be added, deleted or modified when the configuration file is reread. TCPMUX
RFC 1078 describes the TCPMUX protocol: ``A TCP client connects to a foreign host on TCP port 1. It sends the service name followed by a carriage-return line-feed <CRLF>. The service name is never case sensitive. The server replies with a single character indicating posi- tive (+) or negative (-) acknowledgment, immediately followed by an optional message of explanation, terminated with a <CRLF>. If the reply was positive, the selected protocol begins; otherwise the connection is closed.'' The program is passed the TCP connection as file descriptors 0 and 1. If the TCPMUX service name begins with a ``+'', inetd returns the positive reply for the program. This allows you to invoke programs that use stdin/stdout without putting any special server code in them. The special service name ``help'' causes inetd to list TCPMUX services in inetd.conf. EXAMPLES
Here are several example service entries for the various types of services: ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l ntalk dgram udp wait root /usr/libexec/ntalkd ntalkd tcpmux/+date stream tcp nowait guest /bin/date date tcpmux/phonebook stream tcp nowait guest /usr/local/phonebook phonebook ERROR MESSAGES
The inetd server logs error messages using syslog(3). Important error messages and their explanations are: service/protocol server failing (looping), service terminated. The number of requests for the specified service in the past minute exceeded the limit. The limit exists to prevent a broken program or a malicious user from swamping the system. This message may occur for several reasons: 1) there are lots of hosts requesting the service within a short time period, 2) a 'broken' client program is requesting the service too frequently, 3) a malicious user is running a program to invoke the service in a 'denial of service' attack, or 4) the invoked service program has an error that causes clients to retry quickly. Use the -R option, as described above, to change the rate limit. Once the limit is reached, the service will be reenabled automatically in 10 minutes. service/protocol: No such user 'user', service ignored service/protocol: getpwnam: user: No such user No entry for user exists in the passwd file. The first message occurs when inetd (re)reads the configuration file. The second message occurs when the service is invoked. service: can't set uid number service: can't set gid number The user or group ID for the entry's user is invalid. SEE ALSO
comsat(8), fingerd(8), ftpd(8), rexecd(8), rlogind(8), rshd(8), telnetd(8), tftpd(8) HISTORY
The inetd command appeared in 4.3BSD. TCPMUX is based on code and documentation by Mark Lottor. 4.4 Berkeley Distribution November 7, 1996 INETD(8)
All times are GMT -4. The time now is 10:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy