Hum, not sure to understand. You want to use pam to take into account the new user group and silently relaunch the nautilus-share dialog with the same user (so that NTLM password hash is created and the user in the right group), right?
If it's the case, think about a second share that the user wants to do in the same session (without having logout/login). He will not be abled to do that since changing dynamically the user group is not possible (even though, in this case, NTLM password hash will be, I think, created). Keep in mind also that sudoers aren't in the right sambashare group in hardy, contrary to intrepid.
Hum, not sure to understand. You want to use pam to take into account the new user group and silently relaunch the nautilus-share dialog with the same user (so that NTLM password hash is created and the user in the right group), right?
If it's the case, think about a second share that the user wants to do in the same session (without having logout/login). He will not be abled to do that since changing dynamically the user group is not possible (even though, in this case, NTLM password hash will be, I think, created). Keep in mind also that sudoers aren't in the right sambashare group in hardy, contrary to intrepid.