LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-17-2012, 05:22 AM   #1
sree.m
Member
 
Registered: Feb 2012
Posts: 56

Rep: Reputation: Disabled
Question 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
 
Old 02-17-2012, 05:46 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 02-17-2012, 05:50 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by sree.m View Post
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
 
Old 02-17-2012, 05:54 AM   #4
sree.m
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-17-2012, 05:57 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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/
 
1 members found this post helpful.
Old 02-17-2012, 05:57 AM   #6
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
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
 
Old 02-17-2012, 05:59 AM   #7
sree.m
Member
 
Registered: Feb 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-17-2012, 06:01 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just make your own, it's not exactly a complicated file.
 
Old 02-17-2012, 06:11 AM   #9
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by sree.m View Post
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
 
Old 02-17-2012, 10:39 AM   #10
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Rep: Reputation: 78
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.
 
1 members found this post helpful.
Old 02-17-2012, 11:20 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,776

Rep: Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996
Quote:
Originally Posted by deep27ak View Post
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.
 
2 members found this post helpful.
Old 02-17-2012, 11:56 AM   #12
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Rep: Reputation: 78
Quote:
Originally Posted by TB0ne View Post
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)% ?
 
Old 02-17-2012, 12:31 PM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,776

Rep: Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996
Quote:
Originally Posted by Linux_Kidd View Post
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
 
Old 02-17-2012, 01:11 PM   #14
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Rep: Reputation: 78
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.

Last edited by Linux_Kidd; 02-17-2012 at 01:18 PM.
 
Old 02-17-2012, 01:17 PM   #15
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,776

Rep: Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996Reputation: 7996
Quote:
Originally Posted by Linux_Kidd View Post
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.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to setup a NIS server setup on CentOS system swatidas11 Linux - Server 3 01-19-2010 07:01 PM
[SOLVED] how to setup ftp server in rhel5 kinamedebo Linux - Newbie 6 12-06-2009 11:30 PM
How do I setup multiple FTP servers with distinct data sets with 1 master FTP server? tekky Linux - Networking 1 08-28-2009 05:00 AM
how to install RHEL5 Desktop from FTP server iinfi Linux - Server 2 01-20-2009 04:24 PM
RHEL5, configure telnet and FTP on server? forudal Linux - Enterprise 2 11-29-2008 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration