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 |
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). |
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 |
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 |
All times are GMT -5. The time now is 08:45 AM. |