Jan Ritzerfeld skrev:
Am Samstag, 10. April 2010 schrieb Verner Kjærsgaard:
[...] On the client I can get a 'standard' NFS /home thing to work. But now in auto.master and the other autofs.files I need to use wildcards for substitution of the logged in users name.
eh...now I'm stuck. Any hints or good ideas?
Yes, that was a bit tricky. I did something similar with CIFS: | My /etc/auto.cifs looks like this: | * -fstype=cifs,user=${USER},credentials=${HOME}/.cifs_credentials ://nas.local/& | | '*' is the wildcard key and '&' gets replaced by the provided key. | "${USER}" gets replaced by the user login name and "${HOME}" by their home directory. http://lists.opensuse.org/opensuse/2010-03/msg01007.html
Is this at all doable?
Try it. :)
HTH Jan
Hi again and thank you for your input. - I tried to get it running according to your lines...without much succes. The problem lies in the 'auto.nfs' file (this is what I named it), I can't seem to get the autofs to fetch the username and use it. Say like this: remotenfs/${USER}... This creates a directory structure like this...: /mnt/syn/remotenfs/${USER} - in other words, it takes the ${USER} rather litterally. I also tried with schemes like `whoami` and even with ``whoami``. Incredibly enough, it creates directories with these names litterally...and they duly disapear when I shut down autofs. Any ideas as to how I may get the username into the line in the auto.nfs file? PS: I also tried a two liner like this user=`whoami` remotefs/$user without succes... Again, thank you! -- ------------------------------ Med venlig hilsen/Best regards Verner Kjærsgaard O -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org