我正在嘗試在 ubuntu 12.04 上使用 sshfs 安裝遠端磁碟機。
我按照這裡的步驟操作: http://xmodulo.com/2013/04/how-to-mount-remote-directory-over-ssh-on-linux.html
但當我成功之後sshfs
,我做到了ls
,
我得到:
ls: cannot access sshdrive: Permission denied
total 8
drwxr-xr-x 4 root root 4096 Oct 30 09:10 ./
drwxr-xr-x 26 root root 4096 Apr 23 2013 ../
d????????? ? ? ? ? ? sshdrive/
我該如何解決我的問題?
答案1
執行 usermod 後,請確保群組成員資格變更生效。
為此,您可以運行:
$ exec su -l $USER
或者,您可以登出並重新登入。