tatsuno
November 3rd, 2008, 05:16 PM
Hi,
I wanted to take advantage of Intrepid's new 'Private' directory feature by moving my .smbcredentials file into it. The problem is that the Samba shares seem to be mounted before the Private directory, so the .smbcredentials file cannot be read at the time the Samba shares are supposed to mount.
Looking for different solutions, I tried to forget about credentials and use pam_mount instead of editing /etc/fstab, which sounds like a better alternative to me, but according to https://wiki.ubuntu.com/MountWindowsSharesPermanently#Mount password protected network folders without credentials file using libpam_mount, you have to make sure "your username and password are the same on the Ubuntu machine and on the network drive", which is not the case, so I gave up this solution.
Could anybody please tell me either how to use pam_mount with different usernames on the network drive and local machine (preferably) or how to mount the Samba shares once the Private directory has been mounted?
Any feedback greatly appreciated.
I wanted to take advantage of Intrepid's new 'Private' directory feature by moving my .smbcredentials file into it. The problem is that the Samba shares seem to be mounted before the Private directory, so the .smbcredentials file cannot be read at the time the Samba shares are supposed to mount.
Looking for different solutions, I tried to forget about credentials and use pam_mount instead of editing /etc/fstab, which sounds like a better alternative to me, but according to https://wiki.ubuntu.com/MountWindowsSharesPermanently#Mount password protected network folders without credentials file using libpam_mount, you have to make sure "your username and password are the same on the Ubuntu machine and on the network drive", which is not the case, so I gave up this solution.
Could anybody please tell me either how to use pam_mount with different usernames on the network drive and local machine (preferably) or how to mount the Samba shares once the Private directory has been mounted?
Any feedback greatly appreciated.