Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So I'm trying to set up fstab so that users have access to their homedrive. All homedrives are on the same server, but of course need different credentials, so it's a 2 part question:
1. Is there a way to write the line in fstab so that the remote directory to be mounted is pulled from their username? IE - //remote/$user. I know this specifically doesn't work, but I'm wondering if there's anything that does the same in fstab?
2. Credentials file. Is there anything I can use for specifying the credentials file? IE - credentials=$home/.credentials so that each user passes the correct username/password? I know $home doesn't work, but is there anything I can do that would replicate?
Thanks!
Most of my users are clueless when it comes to linux, so I want as much of a hands-off click and go solution, and some of them share a single linux laptop for their group, so I need it set up to be able to work with multiple users on the same machine. I have it set up to work with a single user just fine.
Hmmm, this is basically exactly what I was looking for...just need to see if I can figure it out. Surprising I'd NEVER heard of this. Too bad that tutorial lacks anything that actually explains how to use it. Will have to do some googling.
Last edited by Timothy Miller; 04-19-2018 at 12:04 PM.
PITA to get working on Arch...was easy on Debian, Ubuntu and Fedora.
In the end, I had it mounting to say /mnt/company/x and with Debian, Ubuntu and Fedora, it didn't mind if the /mnt/company folders already existed. With Arch, if the company folder existed, it would fail to mount. Just a small bit of troubleshooting if anyone else runs into this in the future.
Last edited by Timothy Miller; 04-19-2018 at 04:55 PM.
On my desktop and 1 laptop (both Debian), this works perfectly with vers=3.0 in the mount options.
On another laptop, identical Debian installation, this WILL NOT work with vers=3.0, but does work with vers=2.0 in the mount options. However, if I pass the mount command directly, vers=3.0 does work!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.