Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.