I was hoping to program a mount of each users home directory (not the
general home area) when they login. This would be very useful for
security reasons. I currently do it successfully via xdm on X-console
logins, but I wanted it for remote logins too. Unfortunately it seems
impossible.
The map should be:
<key> <mount>
eagle/u002 eagle:/usr/eagle/u002
Note the two-level key. The program map should do a mkdir -p /-/eagle/u002
to provide the mountpoint.
I can get rid of the two-level key with an awful lot of symlinks. Maybe
JIT ones.
But the *important* point is that this mount should only be makeable by
user u002. So I must know the uid of the process asking for this mount,
and have it available to the program map. User u002 will have just done
a login with password, and be running his /etc/profile or /etc/csh.login
or whatever.
Any ideas or pointers?
Peter