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
あるいは、ログアウトして再度ログインすることもできます。