Welcome, Guest
Please Login or Register.
Lost Password?
Re:How to change Home Directory (/home to /other)? (1 viewing)
Post Reply

TOPIC: Re:How to change Home Directory (/home to /other)?

#18035
Guru (User)
Posts: 4
graphgraph
How to change Home Directory (/home to /other)? 2008/11/18 20:48  
I need to change user's default Home directory from /home/user to /other/user.

Within my Ubuntu machine, I have updated /etc/defaults/useradd to point to that other directory, but Virtualmin still creates user's home directory in /home.

I have also tried to manually insert /other into the Server Template, but still no use.

Please help. Thank you.

[Virtualmin 3.63.gpl on Ubuntu Linux 8.04.1]
  The administrator has disabled public write access.
#18040
andreychek (Moderator)
Posts: 859
graphgraph
Re:How to change Home Directory (/home to /other)? 2008/11/19 04:17  
Howdy,

You can do it -- just remember that suexec is compiled with support to work under /home. If you wish to use a directory outside of /home for your homedirs, that's fine, but it means that you either need to recompile suexec, or disable it.

To change the homedir, look in System Settings -> Module Config -> Defaults for new domain.
-Eric
  The administrator has disabled public write access.
#18077
sgrayban (User)
Posts: 604
graphgraph
Re:How to change Home Directory (/home to /other)? 2008/11/20 00:42  
Your gonna break apache !!! Take heed to what andreychek wrote.
Scott Grayban
BORGNET dot US Internet Hosting
VM Pro Reseller
  The administrator has disabled public write access.
#18147
Maurizio1230 (User)
Posts: 83
graphgraph
Re:How to change Home Directory (/home to /other)? 2008/11/22 04:03  
Is it possible to make double home directory.
For example one in /home and another one in /home2 (another monted hard disk)?

Thanks
  The administrator has disabled public write access.
#18197
Guru (User)
Posts: 4
graphgraph
Re:How to change Home Directory (/home to /other)? 2008/11/24 21:46  
Well that's bad in case of Amazon's EC2+EBS platform!

I was trying to setup Virtualmin on Amazon's EC2 platform + EBS storage ... and I thought it was ME who was doing something wrong, as I am a relative newbie when it comes to setting up a linux machine, and so I tried so hard to make it work ... customized the server templates etc!

This is what happens with EBS: To hook persistent storage from EBS on one's Linux virtual machine on Amazon, one has to mount the EBS volume on the EC2 machine (say /ebs). So, to create a virtual host .. it has to end up in /ebs/domain/........

Anyway, I hope there's a way to make Vitualmin work on EC2+EBS!
  The administrator has disabled public write access.
#18200
Joe (Admin)
Posts: 4213
graph
Re:How to change Home Directory (/home to /other)? 2008/11/24 23:28  
You can mount EBS anywhere you want, can't you? Why not mount it on /home? (It doesn't matter that a /home directory already happens to exist...Linux allows things to be mounted over existed directories, even if they are non-empty.)
  The administrator has disabled public write access.
#18203
Guru (User)
Posts: 4
graphgraph
Re:How to change Home Directory (/home to /other)? 2008/11/25 03:00  
^ Hmm that's not a bad idea. So in essence, I could move in all data directories, which I want to keep persistent between machine/instance terminations, inside a /home directory (/home/ebs)? Including data directories of apache, mysql, postgresql, subversion, etc?

Thanks for the tip Joe. I would certainly like to try that out! :)
  The administrator has disabled public write access.
#18217
Joe (Admin)
Posts: 4213
graph
Re:How to change Home Directory (/home to /other)? 2008/11/25 12:28  
inside a /home directory (/home/ebs)?

I meant mount it right on /home. No subdirectory at all. It should work fine. As I mentioned, mounting on top of an existing directory is perfectly sane with Linux.

Including data directories of apache, mysql, postgresql, subversion, etc?

Well, with Virtualmin data directories for Apache and Subversion are already in /home. /var has the databases...and that is in the persistent 10GB, by default, on an EC2 instance. So, as long as you're not getting bigger than that, you can probably leave them in place. But, you could also mount an EBS on each of the subdirectories of /var you need.

And, of course, moving them into /home is also an option...but probably not the easiest.
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.