Score:0

Linux: How to auto mount home for specific users from remote

lr flag

I hope this question was not asked before, but I could not find something which really matches my problem.

Following scenario: We a park of 10 (or more) linux machines with the same user accounts (same uid). We want to assign each user to one machine, which should be his main machine, but he should still be able to work on other machines, but then automount the home from his main machine via nfs. What is the best way to achieve that?

I could specify the mount points for each user in /etc/fstab and mirror this on all machines, but I fear that becomes a bit annoying if the number of our users grows and a machine might be done for maintenance. Is there an elegant way to achieve what I want?

Score:0
ir flag

If you want to keep it very simple, you can set the launch of mount command for each user (specifying its mount point) using the ~/.bashrc file you can find in every user home folder. A more elegant way to achieve that would be introducing configuration management software such as Puppet to manage system users, their grants, define specific behaviours and so on.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.