users accounts in /home and /home1

shirker

New member
Joined
Jan 20, 2008
Messages
3
Hi guys! Sorry for my english!:(

I have FreeBSD 6.3, 3 HDD and 2 directories home (home, home1).
How I can use both home and home1 for creating users accounts?
I try symlink - but it's not worked

Example: user - user, two domains - domain.com and file.domain.com

I need:
This user placed his sites in two home directories:

/home/user/domains/domain.com
/home1/user/domains/file.domain.com

In users httpd.conf I make changes for site file.domain.com root folder to /home1/user/domains/file.domain.com . This site working. Next I create link in /home/user/domains/ to /home1/user/domains/file.domain.com . But this link don't show in users Directadmin CP.
How legal use for user both home directories?
 
Thank you, smtalk.
To use /home2, first edit /etc/default/useradd

Change:
HOME=/home
to
HOME=/home2

DA does not specify the path for new homes, it's determined by the settings of the useradd program (or pw for freebsd).

This will create users in /home2.

Note that you'll need to setup quotas for the 2nd partition:
http://www.directadmin.com/features.php?id=611

John
Reply With Quote
For all, who use FreeBSD: setting pw programm placed in pw.conf. But you will not see this file! First this need create: pw useradd -D. Then you can modify new file in /etc
/etc/pw.conf:
Code:
[CENTER]* * *[/CENTER]
# Root directory in which $HOME directory is created
home = "/home"
[CENTER]* * *[/CENTER]
 
Last edited:
Back
Top