Submitted by vBorraq on Fri, 08/12/2016 - 06:38
I am using Virtualmin for my server having Linux Debian OS. I found a strange problem. My every new host home directory contains directories with the name of previous host accounts created. e.g. 1. a.com has a space and directory /home/a, it will create directory structure as /home/a/a 2. b.com is a second v server its directory will be like this, (/home/b/a and /home/b/b), the next v server will have three directories and so on. How can I prevent virtialmin to create duplication of directories? any help appreciated.
Thanks,
Status:
Active
Comments
Submitted by andreychek on Fri, 08/12/2016 - 08:37 Comment #1
Howdy -- hmm, that's an odd one!
Is this a new server, has it been doing that since it was initially installed?
Submitted by vBorraq on Fri, 08/12/2016 - 09:14 Comment #2
Thanks for replay, Yes, its new server with fresh virtualmin installation using installation script, everything is default except I change documents home directory to /home/ for all virtual servers in templates.
Submitted by andreychek on Fri, 08/12/2016 - 09:34 Comment #3
Hmm, can you clarify which option it is that you changed, when you're referring to the documents home directory?
Submitted by vBorraq on Sat, 08/13/2016 - 05:08 Comment #4
Virtualmin > Server Template > Default Settings > Select Home Directory > Skeleton directory for files I selected option Directory and enter the value as /home
Submitted by andreychek on Sat, 08/13/2016 - 08:19 Comment #5
Ah! That explains it.
Normally, that points to /etc/skel.
The /etc/skel directory on Linux systems contains all the files that will be made part of each new users home directory.
By changing that to /home, that means every file and directory in /home is being copied into each new domain that's created.
My suggestion would be to keep that set to /etc/skel.