LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-09-2006, 03:00 AM   #1
guesspd
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
FTP directory problem


Hi all linux expert,

I have a problem with FTP directory.
My linux server is 7.0 and use sendmail for mail server.
I want to backup \etc\mail directory using FTP.
When I login use root account, I couldnot reach to \etc\mail directory because I am under root home directory.
Is there anyway I can modify the ftpaccess file to make me able to go any directory with root ftp account?

Thanks anyoen can help.

Alan
 
Old 01-09-2006, 03:36 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
First of all, "my linux server is 7.0" isn't clear. Which Linux distribution are you using (RedHat, Mandrake, Ubuntu, etc)?
Try "uname -a" to find out.

Secondly, Linux paths are written using forward slashes "/", not backslashes "\".
The correct path is thus /etc/mail, not \etc\mail.

After logging into ftp as root, try:
cd /etc/mail

If that doesn't work, we'll have a look at your ftp server configuration. It can be that:
-root access is blocked
-some other ftp access feature is blocking your access (ie chroot environment).
 
Old 01-09-2006, 07:50 PM   #3
guesspd
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for reply my question.
I am using linux readhat 7.0

I am using "root" account to login the FTP,
I am thinking using symbolic link (ie ln -s source_file link_name) in my root FTP directory to access my /etc/mail , but I could go to /etc/mail, but i cant copy file, do you know why?
thanks
 
Old 01-10-2006, 02:18 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Can you please post the exact commands you're trying? There may be a syntax problem you're overlooking.
Furthermore, post some "ls -l" output on /etc/mail and the symbolic link you're trying to use.
Please also post the "ln" command you're trying to use to create the symbolic link.

In short, the following should suffice:
ls -l /etc/mail
ls -ld /etc/mail
ls -l /your/root/FTP/directory/symbolic_link
ls -ld /your/root/FTP/directory
your "ln" command
your FTP commands
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get a whole directory through ftp? fssengg Linux - Newbie 2 08-25-2005 11:13 AM
ftp cannot cd to my home directory powah Linux - Software 0 06-03-2005 11:10 AM
Automatically Copying files from the ftp directory into the html directory swatward Linux - General 3 04-17-2005 10:55 PM
ftp centeral directory madfitz Linux - Networking 0 06-20-2003 12:59 PM
ftp-ing a directory princenux Linux - Networking 2 06-12-2003 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:26 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
Open Source Consulting | Domain Registration