FTP, pam_mount and LUKS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everybody,
I am trying to enable pam_mount for a FTP server. So, my home directory is encrypted and shared by FTP should be mounted when I connect trough ftp. However, it doesn't work very well, even if pam_mount seems to run correctly. Here is what I got in syslog:

Apr 27 10:53:04 pc-francois vsftpd: pam_unix(ftp:session): session opened for user francois by (uid=0) Apr 27 10:53:04 pc-francois vsftpd: pam_mount(mount.c:182) realpath of volume "/home/francois" is "/home/francois" Apr 27 10:53:05 pc-francois ReiserFS: dm-7: found reiserfs format "3.6" with standard journal
Apr 27 10:53:05 pc-francois ReiserFS: dm-7: using ordered data mode
Apr 27 10:53:06 pc-francois ReiserFS: dm-7: journal params: device dm-7, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
Apr 27 10:53:06 pc-francois ReiserFS: dm-7: checking transaction log (dm-7)
Apr 27 10:53:06 pc-francois ReiserFS: dm-7: Using r5 hash to sort names
Apr 27 10:53:06 pc-francois vsftpd: pam_unix(ftp:session): session closed for user francois

So, pam_mount has worked and my home directory is mounted, but immediately after that, the FTP connexion is immediately closed. I have tried vsftpd, proftpd and pure-ftpd and it's always the same. It only works if my session is already opened on the FTP server. Then my home directory doesn't need to be mounted and I can connect via FTP. I also noticed that if I don't use LUKS for encryption but rather a SSL key (with a key generated with the command dd if=/dev/urandom bs=1c count=32 | openssl enc -aes-256-ecb > /root/home_bob.key), then it works correctly whether my home directory is mounted or not when I open the FTP connection.

Does anybody know what's happening ?
Thanks for your help,

François Valenduc

---------------------------------------------------------------------
dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux