sudo apt-get install curlftpsThe directories on the remote ftp server are then mounted using:
curlftpfs ftp://[username]:[password]@[server address] [local directory mount point]This works fine (you do not even need to be root to do it), but the password will be present if you do 'ps -ef | grep ftp'.
A solution is to create a .netrc file in the /root directory containing:
machine [server address]
You can then add the file system to /etc/fstab by adding the following line to /etc/fstab:login [username]
password [password]
curlftpfs#[server address] [local directory mount point]You can then just dofuse allow_other,rw,user,noauto 0 0
sudo mount [local directory mount point]and you get the same effect with the server password invisible.
No comments:
Post a Comment