LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH, fstab and encfs (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-fstab-and-encfs-4175492599/)

NotAComputerGuy 01-26-2014 04:04 AM

SSH, fstab and encfs
 
I'm using fstab to mount a sshfs folder, which it does but I don't have the permissions to view it.

Code:

drwxr-xr-x  1 user user      4096 Jan 25 14:12 .secret
Code:

ls .secret
ls: cannot access .secret: Permission denied


NotAComputerGuy 01-26-2014 06:10 AM

Solved by adding a bit more to my fstab:
Code:

sshfs#user@192.168.168.4:/media/Backup/ /home/user/.secret fuse defaults,nonempty,idmap=user,user,uid=1000,gid=1000,allow_other,IdentityFile=/home/user/.ssh/id_rsa 0 0


All times are GMT -5. The time now is 12:21 PM.