p.s. before I forget... It is essential that the credentials of the user at login are used, not those of root or else I could simply use fstab.
rob 2010/4/4 Rob Verduijn <[email protected]>: > As far as I can tell from the betwork manager man page the scripts in > /etc/NetworkManager/dispatcher.d would be executed as root. > This means pam_mount would be initialised as root and not with the > credentials of the user that just logged in. > > Do you know a nifty way to obtain the credentials of the user that > just logged in so that a script using that could do something like > "su <current-user> -c true" > so that the pam_mount get's kicked into action for that user ? > > Cheers > Rob > > > > 2010/4/4 Will Stephenson <[email protected]>: >> On Saturday 03 April 2010 14:10:38 Rob Verduijn wrote: >>> I was wondering if anyone has any experience in the following situation. >>> >>> I am using kde on opensuse 11.2 on my laptop. >>> >>> I am trying to get pam_mount to mount a share after kde network >>> manager has enabled my wifi. >>> >>> But since pam_mount is already finished trying to mount the share by >>> the time network manager has enabled my wifi it always failes to >>> mount. >>> >>> Is it possible to make pam_mount to wait for kde network manager or is >>> it possible to explain kde network manager to start pam_mount when it >>> has enabled the wifi ? >> >> KNetworkManager is not the appropriate place for this. Look in >> /etc/NetworkManager/dispatcher.d, that's the general mechanism for doing >> stuff >> on connect. >> >> Will >> _______________________________________________ >> kde-networkmanager mailing list >> [email protected] >> https://mail.kde.org/mailman/listinfo/kde-networkmanager >> > _______________________________________________ kde-networkmanager mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-networkmanager
