LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   unable to setup ftp in rhel5 (https://www.linuxquestions.org/questions/linux-server-73/unable-to-setup-ftp-in-rhel5-929875/)

sree.m 02-17-2012 05:22 AM

unable to setup ftp in rhel5
 
Hi there,

I have installed vsftpd (version0.9.1) package in my rhel5 server, however i am not able to start or stop my vsftpd service since the script is not available in the path /etc/init.d/ .

I am now able to ftp to my server but cant login as root.There are no ftpusers/ftpuser-list files preset in /etc directory to remove the root user entry.

Please guide me to resolve this problem.Thanks.

Sree

acid_kewpie 02-17-2012 05:46 AM

if there is no init script, then it sounds like you installed from source. Any reason for this? remove it - "make uninstall" in the dir you built it, and run "yum install vsftpd" and that'll install it properly with all redhat specific adjustments.

deep27ak 02-17-2012 05:50 AM

Quote:

Originally Posted by sree.m (Post 4604892)
Hi there,

I have installed vsftpd (version0.9.1) package in my rhel5 server, however i am not able to start or stop my vsftpd service since the script is not available in the path /etc/init.d/ .

I am now able to ftp to my server but cant login as root.There are no ftpusers/ftpuser-list files preset in /etc directory to remove the root user entry.

Please guide me to resolve this problem.Thanks.

Sree

I can only assume the way you have installed your ftp package. For the installation part you can take note of what acid_kewpie said

for your second question that you are unable to login as root then let me inform you in ftp server as per my knowldege root are not allowed to login
and the location of ftpusers file is
Code:

#cat /etc/vsftpd/ftpusers
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody


sree.m 02-17-2012 05:54 AM

Chris,
Well, i have no RHN connectivity,hence cant use yum utility. so the '.rpm' was downloaded and installed explicitly.No compilation have been made.

It seems the installation is not done properly.Can you provide me the link where i can download rpm file for vsftpd for rhel5-32 bit operating system.I could find only the one which i currently installed.

Thanks.
Sree

acid_kewpie 02-17-2012 05:57 AM

if you have no RHN subscription, you have no business running redhat in the first place. You should consider converting it to CentOS. http://www.unixmen.com/how-to-jul-co...5-to-centos-5/

deep27ak 02-17-2012 05:57 AM

Look for the package in the DVD which you used to install your RHEL

or try this link
ftp://ftp.redhat.com/redhat/linux/en...r/en/os/SRPMS/

but if you opt for rpm you will end up with lack of dependency so it is better configure yum using all the packages available in the RHEL DVD

sree.m 02-17-2012 05:59 AM

deepak,

There are only 2 files resides in /etc/vsftpd ,chroot_list and email_list.ftpusers file is not available anywhere in the server.

sree

acid_kewpie 02-17-2012 06:01 AM

just make your own, it's not exactly a complicated file.

deep27ak 02-17-2012 06:11 AM

Quote:

Originally Posted by sree.m (Post 4604922)
deepak,

There are only 2 files resides in /etc/vsftpd ,chroot_list and email_list.ftpusers file is not available anywhere in the server.

sree

tell me the output of
Code:

#which ftp
and follow what I said
copy all the RPMS from the source dvd to any directory and configure yum
if you want any help in configuring yum then look on google
how to configure yum in linux
I am sure you will end with a lot of results

this is the only way to work around if you dont have RHN support

Linux_Kidd 02-17-2012 10:39 AM

what is this "FTP" for?
i dont use any FTP package, instead i used the FTP subsystem in sshd, so i SFTP to the box when i need to move stuff on/off.

TB0ne 02-17-2012 11:20 AM

Quote:

Originally Posted by deep27ak (Post 4604927)
tell me the output of
Code:

#which ftp

...which will only tell the OP the name/path of the ftp CLIENT, not the server...
Quote:

and follow what I said copy all the RPMS from the source dvd to any directory and configure yum if you want any help in configuring yum then look on google
how to configure yum in linux I am sure you will end with a lot of results
this is the only way to work around if you dont have RHN support
This is misleading. What you're actually telling the OP is to set up a local yum repository, using the install media as a source. The OP doesn't HAVE to copy the RPM's to their hard drive, but just set up the DVD as a repository.

sree.m, if you are not paying for RedHat, YOU SHOULD NOT BE USING IT. You can 'work around' a repository issue and get things working, but you are then ignoring the fact that you won't get bugfixes, security updates/patches, kernel updates, etc., etc....ANYTHING that you'll need to keep a server running long term. Load CentOS instead, and you'll have a system that's 99.x% identical to RHEL, but have access to everything, including yum. You can just put your installation DVD in, and search for the vsftpd package, and install it with "rpm -i <package name>", then check Google for one of MANY tutorials on how to configure it.

Linux_Kidd 02-17-2012 11:56 AM

Quote:

Originally Posted by TB0ne (Post 4605181)
Load CentOS instead, and you'll have a system that's 99.x% identical to RHEL, but have access to everything, including yum.

so would Fedora be 99.(x+1)% ?

TB0ne 02-17-2012 12:31 PM

Quote:

Originally Posted by Linux_Kidd (Post 4605210)
so would Fedora be 99.(x+1)% ?

No, Fedora is NOT RHEL. It's a rapid development release. CentOS and 'server-grade' distros are meant to have LONG lifespans...years. Fedora is six months. Also, Fedora is a desktop/consumer-grade distro, so support for consumer devices (bluetooth, wifi, etc.), will be better out of the box than a server distro, which would not normally have those devices.

Look these things up on Google:
http://fedoraproject.org/wiki/Red_Ha...prise_Linux.3F

Linux_Kidd 02-17-2012 01:11 PM

yes, i fully understand the rapid dev of FC, but isnt RHEL based on FC? (plus, RH sponsors FC).
http://fedoraproject.org/wiki/Red_Ha...prise_Linux.3F

and btw, if you want RHEL w/o paying for support then download the free OEL. OEL is built by Oracle and not a community like FC or centOS.

sorry, i went off topic.
@OP - pick a free/stable distro that you can update.

TB0ne 02-17-2012 01:17 PM

Quote:

Originally Posted by Linux_Kidd (Post 4605270)
yes, i fully understand the rapid dev of FC, but isnt RHEL based on FC? (plus, RH sponsors FC).
http://fedoraproject.org/wiki/Red_Ha...prise_Linux.3F

Yes, to a point, but again, Fedora is *NOT* RHEL. Just because RHEL may have some of the same packages/software as Fedora, doesn't mean the systems are anywhere near identical.

RedHat 'sponsors' Fedora, to test/build new modules and other things. Those may (or may NOT) be included in RHEL, and if they are, may not have the same features. The two are very different, period. They are not compatible from a yum perspective. You *MAY* be able to shoehorn a Fedora repo onto RHEL, but all you'll really do is make the RHEL system unstable, and probably cause damage.


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