Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'am wondering what the consequences in linux can be when we assign non default home directory to the users. So, use e.g. /encrypted-home/user instead of /home (that is, btw, also the reason why i am asking) I've already noticed that X-server doesn't function properly and additional configuration is required (i.e. cannot connect to X server). What else could be a potential source of issues? Is changing default home dir a good practice?


share|improve this question
up vote 2 down vote accepted

If the home directory is properly set in /etc/passwd (or LDAP etc.) for a given user, there should be no consequence at all for any well-maintained system. Of course, if you run something that expects the home directory to be /home/username instead of $HOME (or other ways to get the actual home dir), you might run into trouble but such a thing is not worth using anyway. Even with X11, I never experienced any issues with non-standard home directories. What do you mean with "additional config is required"?

Of course you have to make sure that e.g. /encrypted-home is backed up as well.

share|improve this answer
ok thanks. The case where apps use hard-coded links, will be taken care of by creating a link between /home/user and /ecrypted-home/user – user1092608 Apr 5 '13 at 15:15
I just did some tests. I noticed that one of the Drawbacks is SELinux, which can become a tricky configuration. – user1092608 Apr 6 '13 at 9:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.