LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   FTP not working (libwrap.so.0 error ) (https://www.linuxquestions.org/questions/linux-networking-3/ftp-not-working-libwrap-so-0-error-452343/)

viv_pol 06-07-2006 04:35 AM

FTP not working (libwrap.so.0 error )
 
hi.. i am new to linux. i had installed redhat advanced application server. i am trying to configure FTP for this i had installed vsftpd RPM but still its not working. it was giving some error related to libwrap.so.0 ( something regarding shared memory ) it says this libwrap.so.0 doesnot exists. i had tried to install related RPM's also but still the issue has not been resolved. so can anybody help me out.

routers 06-07-2006 05:02 AM

can u post your /etc/ld.so.conf content

viv_pol 06-07-2006 05:29 AM

FTP not working (libwrap.so.0 error)
 
content of the desired file /etc/ld.so.conf is

/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-2.3.1/lib

routers 06-07-2006 05:34 AM

i sure u have to thing in /usr/lib/ and /lib

so add in ur ld.so.conf

/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-2.3.1/lib
/usr/lib
/lib


save it then proceed

# /sbin/ldconfig
# updatedb <- this will chunk for awhile dont panic

and try to config ur ftp again hope success

viv_pol 06-07-2006 05:47 AM

i had added those lines and then given updatedb command but nothing is happening.. what to do with this /sbin/ldconfig i had opened it but was not able to see its contents..

viv_pol 06-07-2006 05:53 AM

i had tried this after editing /etc/ld.so.conf we had given updatedb command . then tried to start vsftp service but still getting the same error. error message is.......
Starting vsftpd for vsftpd: /usr/sbin/vsftpd: error while loading shared libraries: libwrap.so.0: cannot open shared object file: No such file or directory

routers 06-07-2006 05:53 AM

/sbin/ldconfig is to reload the library depent to what have u set at ld.so.conf

and updatedb is to built the file cache

yeah nothing u can see with those comand , btw still cant configure? , if still cannot then u have to install tcp_wrappers

viv_pol 06-07-2006 06:06 AM

i had tried all the steps still its not working tcp_wrappers is already installed...again i am getting the same error message

routers 06-07-2006 06:13 AM

if u already installed the tcp_wrappers its provide 2 file

tcp_wrappers itself and libwrap.so.0

try
# locate libwrap.so.0
# locate tcp_wrappers

see if u get anything reply ?

viv_pol 06-07-2006 06:18 AM

# locate libwrap.so.0
command is not returning any thing...

# locate tcp_wrappers

it had returned
/usr/share/doc/tcp_wrappers-7.6
/usr/share/doc/tcp_wrappers-7.6/Banners.Makefile
/usr/share/doc/tcp_wrappers-7.6/BLURB
/usr/share/doc/tcp_wrappers-7.6/DISCLAIMER
/usr/share/doc/tcp_wrappers-7.6/CHANGES
/usr/share/doc/tcp_wrappers-7.6/README.IRIX
/usr/share/doc/tcp_wrappers-7.6/README
/usr/share/doc/tcp_wrappers-7.6/README.NIS
/usr/src/redhat/RPMS/i386/tcp_wrappers-7.6-36.i386.rpm
/usr/src/redhat/RPMS/i386/tcp_wrappers-7.6-34.i386.rpm
/root/tcp_wrappers-7.6-36.src.rpm
/root/tcp_wrappers-7.6-34.x86_64.rpm
/root/tcp_wrappers-7.6-34.src.rpm

routers 06-07-2006 06:23 AM

errkk!!
what machine u have ?

are u installing 64 bit over 32 bit machine ?

because in the machine u have 2 , one for 32 bit and one for 64 bit

proceed # uname -an

viv_pol 06-07-2006 06:26 AM

uname -an give this message
Linux c-3176 2.4.9-e.3 #1 Fri May 3 17:02:43 EDT 2002 i686 unknown

routers 06-07-2006 06:59 AM

i hope u still follow

# rpm -qa |grep tcp_wrappers

this is to check which one u install

viv_pol 06-07-2006 07:05 AM

it shows this only ...
tcp_wrappers-7.6-19


resulting files of locate tcp_wrappers in /root were dump files . only installed component is
tcp_wrappers-7.6-19

routers 06-07-2006 07:11 AM

could u update to the new one maybe this old tcp_wrappers not come with libwrap

i using [
rou@nc test]$ rpm -qa |grep tcp_wrappers
tcp_wrappers-7.6-39

try use ur up2date but if yum available for u then use it

routers 06-07-2006 07:17 AM

u have it sorry
# rpm -ql -p /usr/src/redhat/RPMS/i386/tcp_wrappers-7.6-36.i386.rpm

if libwrap available then

# rpm -Uvh /usr/src/redhat/RPMS/i386/tcp_wrappers-7.6-36.i386.rpm

viv_pol 06-07-2006 10:55 PM

Thanks dear... i did as u had told results are as below...
now i am getting some other error while starting vsftpd service....

[root@c-3176 root]# rpm -ql -p /usr/src/redhat/RPMS/i386/tcp_wrappers-7.6-36.i386.rpm
/usr/include/tcpd.h
/usr/lib/libwrap.a
/usr/lib/libwrap.so
/usr/lib/libwrap.so.0
/usr/lib/libwrap.so.0.7.6
/usr/sbin/safe_finger
/usr/sbin/tcpd
/usr/sbin/try-from
/usr/share/doc/tcp_wrappers-7.6
/usr/share/doc/tcp_wrappers-7.6/BLURB
/usr/share/doc/tcp_wrappers-7.6/Banners.Makefile
/usr/share/doc/tcp_wrappers-7.6/CHANGES
/usr/share/doc/tcp_wrappers-7.6/DISCLAIMER
/usr/share/doc/tcp_wrappers-7.6/README
/usr/share/doc/tcp_wrappers-7.6/README.IRIX
/usr/share/doc/tcp_wrappers-7.6/README.NIS
/usr/share/man/man3/hosts_access.3.gz
/usr/share/man/man5/hosts.allow.5.gz
/usr/share/man/man5/hosts.deny.5.gz
/usr/share/man/man5/hosts_access.5.gz
/usr/share/man/man5/hosts_options.5.gz
/usr/share/man/man8/tcpd.8.gz

[root@c-3176 root]# service vsftpd start
Starting vsftpd for vsftpd: /usr/sbin/vsftpd: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by /usr/sbin/vsftpd)
[ OK ]

routers 06-08-2006 01:55 AM

hehehe now others thing come out FYI "rpm -ql -p" is to check wether file needed inside or not , to install use "rpm -ivh" and to upgrade use "rpm -Uvh"

so for this glibc u have to install

1) glibc
2) glibc-devel
3) glibc-common

to check what is installed, proceed

# rpm -qa |grep glibc


this is mine

[root@nc rou]# locate libc.so.6
/lib/libc.so.6
/lib/obsolete/linuxthreads/libc.so.6
/lib/obsolete/linuxthreads/i686/libc.so.6
/lib/i686/nosegneg/libc.so.6

viv_pol 06-08-2006 07:33 AM

hey thanks.. i did some research with ur help and now its working.. thanks alot..
now i had some other problem i am installing a software on this machine which has to be installed remotely. now ftp is ok working file . but it is giving some error like "logging from REXEC " ... i had started rexec services also but still its not working.. can u help in this ....

thanks once again

routers 06-08-2006 08:34 AM

nice :)

could u tell me what u want to install i will look into it because if installing the progy which is required root cannot be done via ftp, permission issue

u might use wget to get the file in then proceed with root on the system with ssh from your workstation


btw i am happy with ur success , i just worry one thing " u give up" but looks not hehe good :)

viv_pol 06-08-2006 09:52 PM

Rexec problem
 
hi... routers!

actually we are installing SSA ERP package on Linux server. And this installation is done through remote login. SSA ERP uses REXEC protocol for communication. we are installing ERP through a windows machine when we give IP address of linux service it's giving error in "Rexec"

We've also enable rexec service in .PAM file.
Now when we manually try to start rexec on windows
machine it is not giving any error nor its responding
Please help me out.

routers 06-09-2006 12:28 AM

erm this is beyong my knowledge since i also not found the packages after googling , i suggest you open new thread/topic for this , its mightbe someone have done it before, btw i will follow up also :)


All times are GMT -5. The time now is 08:16 PM.