LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-01-2004, 01:47 PM   #1
rixride00
Member
 
Registered: Mar 2004
Posts: 31

Rep: Reputation: 15
ftp to root


How can you FTP to a directory like root or other system directory?


I.e We need to add files to

/usr/local/tomcat/webapps/ROOT/

Using FTP I get a 550 permission denied.

Do I have to chmod these to 755 or something? Are you allowed to ftp to these directories?

My current work around is to upload files in the virtual/home/sitename/xxx.
directory then log in via ssh and mv the file to the new location.

There has got to be an easier way.



Also I am assuming using ftp this way may cause some security holes, if so what are they?

What is the alternative if you can't ftp to these other directories?


Thanks for any light you can shed.
 
Old 04-01-2004, 02:35 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
How about using scp instead?

:)


Cheers,
Tink
 
Old 04-01-2004, 04:43 PM   #3
rixride00
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
would that be all you need?

Can you recommend a program?

Thanks
 
Old 04-01-2004, 04:55 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Well, if you already are using ssh I'd assume
scp has been installed with it ...


Cheers,
Tink
 
Old 04-01-2004, 05:25 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Using FTP to log in as root is not the best idea as basswords go unencrypted, so everyone with a sniffer can get it. SSH (or scp for files) is much better idea.
 
Old 04-02-2004, 03:09 PM   #6
rixride00
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
I am just now using putty, I am just getting familiar with it, what program would you use for SCP?

My ftp I use wsftp or smartftp are there any free SCP programs?

Thanks again,
 
Old 04-02-2004, 03:21 PM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
I understand you need Windows SCP. So here's an example: http://winscp.sourceforge.net/eng/
 
Old 04-02-2004, 04:05 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by rixride00
I am just now using putty, I am just getting familiar with it, what program would you use for SCP?

My ftp I use wsftp or smartftp are there any free SCP programs?

Thanks again,
Putty also comes with a scp program...


Cheers,
Tink
 
  


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
can't ftp as root to mandrake 10 burns1000 Linux - Software 4 10-18-2004 04:02 PM
ftp + root Morg666 Linux - Security 7 04-20-2004 06:19 PM
ftp as root lenlutz Red Hat 3 02-18-2004 05:08 PM
VSFTP....1 ftp root for all pmaxhammond Linux - Networking 2 10-30-2003 11:31 AM
WU-FTP root restriction atlantislim Linux - Security 6 09-05-2002 07:26 PM


All times are GMT -5. The time now is 08:25 AM.

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