On Thu, 2007-06-28 at 23:31 -0400, William Prochazka wrote: Hi,
> Hi, I am sort of new to autofs, but love it as it is truly great. > We currently do all of our automounts through LDAP (works great), but > I would love to do some programmatic mounts (improvements to the > auto.smb script that is distributed with FC6). I have made a number > of improvements, but I would really like to know if there is a way of > determining the user that is attempting to traverse into the then > automounted directory. I have some methods of guessing the info, but > they are just guesses. Since the script is run by the service, $USER > is worthless. Any help would be much appreciated. Thanks and great > work! This was a problem with with version 4 as that information wasn't recorded in the request that came from the kernel and so it couldn't be done. In version 5 the kernel module sends uid as well and it is used to set several environment variables, $USER is one. Ian _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs