camperbait |
06-04-2013 11:23 AM |
curlftpfs mount fails with "fuse: failed to open /dev/fuse: Permission denied"
Hi, I'm trying to use curlftpfs to mount my ftp server so that I can rsync to it for backups.
I've spent almost a day and it's still not working. When I try to mount the drive I get "Permission denied". Here's what I've tried so far (hostname removed, username changed):
Code:
[root@----- ~]# curlftpfs user@208.109.96.16 /root/FTP_Drive/
fuse: failed to open /dev/fuse: Permission denied
[root@----- ~]# ls -la
crw-rw-rw- 1 root fuse 10, 229 Jun 4 08:54 /dev/fuse
I've tried many different permissions for /dev/fuse including removing all positions for other, adding execute permissions for user and group, etc.
More info:
Code:
[root@----- ~]# modprobe fuse
FATAL: Module fuse not found.
[root@----- ~]# locate fuse.ko
/lib/modules/2.6.32-358.2.1.el6.centos.plus.x86_64/kernel/fs/fuse/fuse.ko
Linux ----- 2.6.18-028stab101.1 #1 SMP Sun Jun 24 19:50:48 MSD 2012 x86_64 x86_64 x86_64 GNU/Linux
I've tried putting my FTP login information into /root/.netrc and adding the mount to fstab as follows, then mounting with "mount -a" but no luck:
Code:
[root@----- ~]# cat /etc/fstab
none /dev/pts devpts rw 0 0
curlftpfs#208.109.96.16 /root/FTP_Drive fuse allow_other,uid=1000,gid=1000,umask=0022 0 0
[root@----- ~]# mount -a
fuse: failed to open /dev/fuse: Permission denied
Finally, I tried a different command I found by Googling. It looks like the FTP connection is fine.
Code:
[root@----- ~]# curlftpfs -v -o allow_other -o user="user:passwd" 208.109.96.16 /root/FTP_Drive/
* Couldn't find host 208.109.96.16 in the .netrc file; using defaults
* About to connect() to 208.109.96.16 port 21 (#0)
* Trying 208.109.96.16... * connected
* Connected to 208.109.96.16 (208.109.96.16) port 21 (#0)
< 220 p3plnebftp01.prod.phx3.secureserver.net FTP server (GD-Ftp/1.2-1) ready.
> USER -----
< 331 Username OK, please send password.
> PASS -----
< 230 Welcome -----.
> PWD
< 257 "/"
* Entry path is '/'
* Remembering we are in dir ""
* Connection #0 to host 208.109.96.16 left intact
fuse: failed to open /dev/fuse: Permission denied
> QUIT
< 221 Goodbye. Service closing connection.
* Closing connection #0
So, I can't modprobe it because it says it's not found, but the module seems to be there. Any ideas?
|