Debian – sshfs mount won’t start from /etc/rc.local

automountdebiansshfs

I have the following commands in /etc/rc.local

chmod 666 /dev/fuse  
chmod +x /usr/bin/fusermount  
/bin/su someuser -c "/usr/bin/sshfs someuser@someserver:/usr/local/storage /usr/local/storage_remote -o nonempty -o reconnect"  

If I run them from command line, as root, they work.
If I reboot the server they won't run from /etc/rc.local.
I try to figure out what I do wrong but I don't have console access and I couldn't find any errors in /var/log related to sshfs.

Best Answer

I figured out what it missed

  1. sudo addgroup root fuse
  2. sudo addgroup someuser fuse

Also there was an error in /etc/rc.local that prevented the lines with sshfs to be executed.

Related Topic