LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2008, 09:33 AM   #1
nirmit
Member
 
Registered: Feb 2008
Posts: 73

Rep: Reputation: 15
ftp problem


can anybody tell me the steps to do ftp as root.I am using REHL 4.0
 
Old 05-12-2008, 09:39 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Do you mean using [one of] the [many] text-based FTP client[s], or setting up an FTP server?
 
Old 05-12-2008, 09:47 AM   #3
nirmit
Member
 
Registered: Feb 2008
Posts: 73

Original Poster
Rep: Reputation: 15
i am asking about text based ftp client...
 
Old 05-12-2008, 09:49 AM   #4
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Root account is for local administration only, and as such does not initiate remote connections.
 
Old 05-12-2008, 09:51 AM   #5
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
...are you attempting to establish an FTP connection from your computer, as root, or are you trying to connect to a server with the "root" username?

You're not giving us much to go on, here.
 
Old 05-12-2008, 09:52 AM   #6
nirmit
Member
 
Registered: Feb 2008
Posts: 73

Original Poster
Rep: Reputation: 15
i have created another user named 'nirmit'
then it gives following error...
now what to do?

[nirmit@vasdb ~]$ ftp
ftp> open 218.248.186.103
ftp: connect: Connection refused
 
Old 05-12-2008, 10:00 AM   #7
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Discovered open port 389/tcp on 218.248.186.103
Discovered open port 22/tcp on 218.248.186.103
Discovered open port 80/tcp on 218.248.186.103

22/tcp open ssh
80/tcp open http
389/tcp open ldap

FTP service is not running on the host you mentioned.
 
Old 05-13-2008, 02:22 AM   #8
nirmit
Member
 
Registered: Feb 2008
Posts: 73

Original Poster
Rep: Reputation: 15
how to open a port.
 
Old 05-13-2008, 09:18 AM   #9
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Assuming you have access to the server, if it has an FTP server installed, it should be a matter of running the corresponding script in /etc/rc.d (or /etc/init.d) and modifying it so that it runs on boot.

If the server - for sure - has an FTP client up and running, and you're still not seeing a port to connect to, then more than likely there's a firewall running - or traffic to that port is being blocked. Unfortunately, my knowledge doesn't extend as far as Linux firewalls.
 
Old 05-13-2008, 07:27 PM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
ftp may be being run under the xinetd daemon, in which case look in /etc/xinetd.d dir
 
Old 05-13-2008, 10:11 PM   #11
llagunocap
LQ Newbie
 
Registered: May 2008
Posts: 16

Rep: Reputation: 0
I set up vsftpd in a Linux server and when using Explorer I am able to login and see the files in the /home/usr/ folder, but I cannot open or add files.

When I try to open the file in Explorer it just times out. When I do 'Open FTP Site in Windows Explorer' in the Page menu I get the following error message:

Quote:
Windows cannot access this folder. Make sure you typed the file name correctly and that you have permission to access the folder

Details:
220 (vsFTPd 2.0.5)
530 Permission denied.
If I use Safari, I only can have access by typing ftp://username:username@server-ip, in the address box, I can see and open files, but I cannot add files to the folder. I returns a message saying folder cannot be modified.

Thank you.
 
Old 05-13-2008, 10:28 PM   #12
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Don't hijack this thread, llagunocap.
 
Old 05-19-2008, 03:17 AM   #13
nirmit
Member
 
Registered: Feb 2008
Posts: 73

Original Poster
Rep: Reputation: 15
ftp service

how can i know which ftp service is running in my server?
does netstat -anp |grep 21 is suitable command to know that ftp port is open or not?
 
Old 05-19-2008, 04:46 AM   #14
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
It will tell you if the port is open and who is listening on it.
Code:
root@webserver:~# netstat -anp |grep 21
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN     5122/inetd
unix  3      [ ]         DGRAM                    12122    2616/syslogd        /dev/log
unix  2      [ ]         DGRAM                    2187     1074/udevd          @/org/kernel/udev/udevd
unix  2      [ ]         DGRAM                    12157    2620/klogd
root@webserver:~#
In my case, it's inetd and therefore will not reveal the actual program. In which case I'll have to check the inetd configuration to see which ftp service is running. It might however also give vsftpd or the name of another ftp daemon.
 
Old 05-19-2008, 10:30 AM   #15
buabeng
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
hi!
I have my ftp setup in rht enterprise version3 up and running.when i use telnet it connects.
but when i try it in windows explorer it doesn't show the login screen and gives the error message "the server name or address cannot be resolved.
kindly help me out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ftp problem qrshat Solaris / OpenSolaris 4 04-04-2006 02:09 AM
ftp from LInux to Serv-U ftp server problem csross Linux - General 2 11-07-2005 05:35 PM
problem with ftp on mandrake 10.1 Official, ftp speeds system wide (anybody noticed?) equinox Mandriva 15 11-10-2004 03:07 PM
ftp problem robmcw Linux - Newbie 8 03-11-2003 08:16 PM
FTP problem starea1 Linux - Networking 1 01-29-2003 02:59 PM


All times are GMT -5. The time now is 04:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration