From: andrea b. <and...@gm...> - 2014-07-02 16:50:14
|
il giorno Mon, 16 Jun 2014 17:36:45 +0200 andrea biancalana <and...@gm...> ha scritto: > Hi, > I'm trying to setup pam_mount + sshfs; I'd like to mount users home directories from a remote server. > It seems pmt-fd0ssh doesn't work fine: so I've put ssh="0" and password_stdin options. I found known_hosts must be set system wide (/etc/ssh/ssh_known_hosts) and now remote home-dir are mounted in /homeX mountpoint. The problem is that it doesn't work if I put /home/%(USER) as local mountpoint. Any idea? Thanks, Andrea ____________________________________________ pam_mount.conf.xml <?xml version="1.0" encoding="utf-8" ?> <pam_mount> <debug enable="2" /> <path>/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin</path> <volume fstype="fuse" path="/usr/bin/sshfs#%(USER)@xx.xx.xx.xx:" mountpoint="/homeX/%(USER)" options="password_stdin,reconnect,nonempty" ssh="0"/> <logout wait="0" hup="0" term="0" kill="0" /> <mkmountpoint enable="1" remove="true" /> <umount>umount %(MNTPT)</umount> <fusemount>mount.fuse %(VOLUME) %(MNTPT) -o %(OPTIONS)</fusemount> <fuseumount>fusermount -u %(MNTPT)</fuseumount> </pam_mount> |