Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to start FTP service on my unix box......

Status
Not open for further replies.

hedap

Technical User
Jun 9, 2002
18
IN
Hi Guys,

I can connect ftp from my unix machine but from other machines when i try to ftp to my machine it fails with message 'connection refuses'

I am new to unix and don't know how to enable FTP service on a fresh installed box. I am having root login to do my job.

Appriciate if anybody point me a link if installation required for FTP, or thwe process to enable??

Thanks in advance..
 
That link didn't help...
It looks like something is wrong from the start as I can't find any of the directories/files u want me to look in...

[root@webtrends04 root]# cat /etc/inetd.conf
cat: /etc/inetd.conf: No such file or directory
[root@webtrends04 root]# cat /etc/default/login
cat: /etc/default/login: No such file or directory
[root@webtrends04 root]# cd /
[root@webtrends04 /]# cat /etc/default/login
cat: /etc/default/login: No such file or directory
[root@webtrends04 /]# cat /etc/ftpusers
cat: /etc/ftpusers: No such file or directory
[root@webtrends04 /]# cd /etc/ftpusers
-bash: cd: /etc/ftpusers: No such file or directory
[root@webtrends04 /]# cat inetd.conf
cat: inetd.conf: No such file or directory
[root@webtrends04 /]# find -name inetd.conf


Thanks in advance..
Prakash
 
Sorry - ain't got much time today. Thread60-25552 offers another solution based around /etc/shells.

If that doesn't help, try a keyword search (tab at the top of the forum)using ftp allow as the search keys and you'll get more threads to search which will hopefully provide the info. you're looking for. Good luck.
 
This is the file contents of shells file...

[root@webtrends04 etc]# cat shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/bash2
/bin/ash
/bin/bsh
/bin/tcsh
/bin/csh
/bin/ksh


File structure of etc....

[root@webtrends04 etc]# ls
a2ps.cfg fam.conf initlog.conf mime-magic printcap services
a2ps-site.cfg fb.modes inittab mime-magic.dat printcap.local sgml
adjtime fdprm inputrc mime.types printcap.old shadow
aep filesystems ioctl.save minicom.users printconf.local shadow-
aep.conf fonts iproute2 modules.conf profile shells
aeplog.conf fstab isdn modules.conf~ profile.d skel
alchemist fstab.REVOKE issue motd protocols slrn.rc
aliases gconf issue.net mtab pwdb.conf smrsh
aliases.db gnome krb5.conf mtools.conf rc snmp
alternatives gnome-vfs-2.0 krb.conf Muttrc rc0.d sound
anacrontab gnome-vfs-mime-magic krb.realms named.custom rc1.d squid
at.deny gpm-root.conf ldap.conf nscd.conf rc2.d ssh
auto.master group ld.so.cache nsswitch.conf rc3.d sudoers
auto.misc group- ld.so.conf nsswitch.conf.rpmnew rc4.d sysconfig
bashrc grub.conf lftp.conf ntp rc5.d sysctl.conf
bonobo-activation gshadow libuser.conf ntp.conf rc6.d syslog.conf
CORBA gshadow- lilo.conf.anaconda oaf rc.d termcap
cron.d gtk locale openldap rc.local tux.mime.types
cron.daily gtk-2.0 localtime opt rc.sysinit updatedb.conf
cron.hourly host.conf log.d pam.d redhat-release updfstab.conf
cron.monthly hosts login.defs pam_smb.conf resolv.conf updfstab.conf.default
crontab hosts.allow logrotate.conf pango resolv.conf.bak vfontcap
cron.weekly hosts.bak logrotate.d paper.config rmt vfs
csh.cshrc hosts.deny lpd.conf passwd rndc.conf warnquota.conf
csh.login hotplug lpd.perms passwd- rndc.key webalizer.conf
default httpd lvmtab pbm2ppa.conf rpc wgetrc
DIR_COLORS im_palette.pal lvmtab.d pcmcia rpm wvdial.conf
DIR_COLORS.xterm im_palette-small.pal mail php.ini samba X11
dumpdates im_palette-tiny.pal mailcap pinforc screenrc xinetd.conf
esd.conf imrc mail.rc pnm2ppa.conf scrollkeeper.conf xinetd.d
ethereal info-dir makedev.d postfix securetty xml
exports init.d man.config ppp security yp.conf

Processes running try to grep processes having 'f'

[root@webtrends04 etc]# ps -e | grep f
5 ? 00:00:00 ksoftirqd_CPU0
6 ? 00:00:00 ksoftirqd_CPU1
8 ? 00:00:00 bdflush
722 ? 00:00:00 xfs


Is it useful or tell me if you wanna look something else.....

Thanks..
Prakash

 
To quote the inetd man page "the inetd.conf file lists the services that inetd is to provide", one of which will be ftp, e.g.
# ftp telnet shell login exec tftp finger printer
ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd

I should start by trying to find out why this file is not there. Another thing to check is the file /etc/ftpusers, if the user name appears in this file, access is denied.

Regards
Richard
 
Try to find inetd.conf but not able to find any reasons??
here is the output...


[root@webtrends04 /]# find -name inetd.conf
[root@webtrends04 /]#
[root@webtrends04 /]# find -name inet*
./dev/inet
./proc/sys/net/ipv4/inet_peer_gc_maxtime
./proc/sys/net/ipv4/inet_peer_gc_mintime
./proc/sys/net/ipv4/inet_peer_maxttl
./proc/sys/net/ipv4/inet_peer_minttl
./proc/sys/net/ipv4/inet_peer_threshold
./usr/lib/perl5/5.8.0/Net/demos/inetd
./usr/lib/perl5/5.8.0/i386-linux-thread-multi/linux/inetdevice.ph
./usr/lib/perl5/5.8.0/i386-linux-thread-multi/linux/inet.ph
./usr/sbin/inetdconvert
./usr/share/doc/bash-2.05b/functions/inetaddr
./usr/share/man/man3/inet.3.gz
./usr/share/man/man3/inet_addr.3.gz
./usr/share/man/man3/inet_aton.3.gz
./usr/share/man/man3/inet_lnaof.3.gz
./usr/share/man/man3/inet_makeaddr.3.gz
./usr/share/man/man3/inet_netof.3.gz
./usr/share/man/man3/inet_network.3.gz
./usr/share/man/man3/inet_ntoa.3.gz
./usr/share/man/man3/inet_ntop.3.gz
./usr/share/man/man3/inet_pton.3.gz
./usr/X11R6/lib/X11/xkb/symbols/inet

is it helpful??

Thanks
Prakash
 
This is the output from one of our servers, using find from the /etc directory:

./default/inetinit
./inet
./inet/inetd.conf
./inetd.conf
./init.d/inetinit
./init.d/inetsvc
./rc0.d/K42inetsvc
./rc0.d/K43inet
./rc1.d/K42inetsvc
./rc1.d/K43inet
./rc2.d/S69inet
./rc2.d/S72inetsvc
./rcS.d/K42inetsvc
./rcS.d/K43inet

It seems possible to me that you've a faulty install. Can your reinstall?
 
Do not have option to reinstall server. Other things are working fine on the machine. Hasn't anybody faced this problem where these directories are not visible or possibly this system put things in some other directory?

Thanks
Prakash
 
I think that you are not running SUN Solaris OS. It seems to me that you are on LINUX OS.
 
Yep now I know it's gnu/linux 8 version...
Sorry for that...


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top