Andrew I have a question for you. So I have a server in the DMZ that always has issues with automount the NFS Shared home directory. So when I saw this I thought this might be a way to go. My question is with the 10min timeout what if say another user logs on 20 mins later if they did a cd / in the home directory would they be able to see the contents. If not and they need to re-run automount then I would be better off leaving the timeout off. I always enjoy your videos. I wish I lived closer as I would love to just be able to sit and chat with you and pick your brain. thanks again Andrew..
If you find the overhead of connecting to the share is excessive then don't do it. Often automounting is done for home directories and mounting 300 user home directories at boot may not be required. As always adjust to match your needs
Thanks I struggled with a while back. The point that the service needs to match the path is incredibly useful. Is there any reference for the naming conventions used? If you had a mount point that had a dash in the name as an example: /data-web/web ?
This is nifty. I rather would have referred to _man systemd-mount_ as I would have thought that the naming convention was outlined therein. But systemctl-escape is cool. I have never come across this command so far. Thank you Andrew!
Hi, nice work. I am mounting coporate CIFS shares. Automont works when forcing my-user-credentials. Question/request: How to automount with the accessor-user-credentials - NOT root-credentials. Your demo (nice point showing no-mount-before-access) seems to imply root can mount anything.
Root would need access on the CIFS share. You could add a credential file and refernece that in the automount file: Options=credentials=/etc/samba/my-credentials This would connect as the user in the credentials file. Connecting to CIFS share without automount would require root to pass the credential thriugh in anycase. Connecting to CIFS shares without kerberos can be messy.
I've had issues with docker containers volumes and autofs. This solution is working great !
Thanks!
Thank you for explaining in a clear and concise way. Much appreciated
You're very welcome!
like always, short & very useful video... thank you so much 👍
Thank you Andrew for a fantastic explanation. Much appreciated.❤
Thank you so much for the comment. Love that you took the time
Brain candy. Love the video. Thanks!
Thank you so much Brian
Nice simple explanation.
Thank you
Andrew I have a question for you. So I have a server in the DMZ that always has issues with automount the NFS Shared home directory. So when I saw this I thought this might be a way to go. My question is with the 10min timeout what if say another user logs on 20 mins later if they did a cd / in the home directory would they be able to see the contents. If not and they need to re-run automount then I would be better off leaving the timeout off. I always enjoy your videos. I wish I lived closer as I would love to just be able to sit and chat with you and pick your brain. thanks again Andrew..
If you find the overhead of connecting to the share is excessive then don't do it. Often automounting is done for home directories and mounting 300 user home directories at boot may not be required. As always adjust to match your needs
Thanks I struggled with a while back. The point that the service needs to match the path is incredibly useful. Is there any reference for the naming conventions used? If you had a mount point that had a dash in the name as an example: /data-web/web ?
Great question: use the systemd-escape command with -p to rewrite a path
systemd-escape -p /data-one
returns data\x2done
This is nifty.
I rather would have referred to _man systemd-mount_ as I would have thought that the naming convention was outlined therein.
But systemctl-escape is cool.
I have never come across this command so far.
Thank you Andrew!
Hi, nice work.
I am mounting coporate CIFS shares. Automont works when forcing my-user-credentials. Question/request: How to automount with the accessor-user-credentials - NOT root-credentials. Your demo (nice point showing no-mount-before-access) seems to imply root can mount anything.
Root would need access on the CIFS share. You could add a credential file and refernece that in the automount file: Options=credentials=/etc/samba/my-credentials This would connect as the user in the credentials file. Connecting to CIFS share without automount would require root to pass the credential thriugh in anycase. Connecting to CIFS shares without kerberos can be messy.
Nice
Thank you
👍Thanks!
What's the advantage of this compared to autofs?
This runs as part of systemd. Autofs does not need to be installed let alone running. It uses personal choice though.