Mount FTP directory under Linux

Support Wissensdatenbank

Du bist hier:

On your own server you can easily mount an FTP storage space.

To be able to mount the cloud memory without problems it is necessary to install the curlftpfs package first:

Debian / Ubuntu:

apt-get install curlftpfs

CentOS, Fedora, openSUSE:

yum install curlftpfs

Then you have to create a local directory where you want to mount the FTP memory.

mkdir /mnt/ftpshare

To store the FTP access data safely, create the file /root/.netrc.

touch /root/.netrc

Now fill the file with the following content (use either vi, nano over SSH or an editor over SFTP):

machine srXX.firestorm.ch (hostname or IP)
login web00 (FTP username)
password 12345 (FTP password)
[//code]

Now we give the created file only the most necessary rights so that this file can not be read by any undermined users:

chmod 600 /root/.netrc

Next, add the following line to the end of /etc/fstab (use the hostname and directory you set in the previous step):

curlftpfs#srXX.firestorm.ch /mnt/ftpshare fuse allow_other,uid=1000,gid=1000,umask=0022 0 0

The last step is to run the following command to activate the changes:

mount -a
War dieser Artikel hilfreich?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
Wie können wir diesen Artikel verbessern?
Brauchst du Hilfe?
Related Post