cat /dev/home of Dragos Fedorovici

.. there's a quote by Oscar Wilde and it goes like this: "I choose my friends for their good looks, my acquaintances for their good characters, and my enemies for their good intellects".

cat /dev/home of Dragos Fedorovici

Main menu

Skip to primary content
Skip to secondary content
  • Home

Tag Archives: location

[cPanel] Change home root and rearrange an account

Posted on January 27, 2011 by Admin
Reply

You may find yourself in the situation when you would like any new account created from WHM (WebHost Manager) to be created on a different partition. I will assume that a new cPanel account is currently created on the /home partition and due the low disk space from this partition, you will need to use another one (/home2 in my example) to store any new accounts.

WHM (WebHost Manager) is reading the configuration of a new account (at creation time) from /etc/wwwacct.conf , where it has defined the values for the default IP, the homedir, the hostname, the nameservers etc:

root@server [~]# cat /etc/wwwacct.conf | grep HOMEDIR
HOMEDIR /home

You will simply need to edit this file and change the HOMEDIR path to the new partition (in my example it was /home2):

root@server [~]# cat /etc/wwwacct.conf | grep HOMEDIR
HOMEDIR /home2

Once a new account is created, the home directory will be created on the new partition:

+=======================================+
| New Account Info                                                                                  |
+=======================================+
| Domain: dragostest.com
| Server Ip: 67.210.111.70
| UserName: dragos
| PassWord: root1234
| HomeRoot: /home2/dragos
| NameServer1: ns1.fedorovici.com / 67.210.111.70
| NameServer2: ns2.fedorovici.com / 67.210.111.70
| Contact Email: dragos@fedorovici.com
+=======================================+

If you consider moving an existent account into the new partition, starting with WHM (WebHost Manager) 11.28 a feature allows you to perform this process automatically (you can change the hard drive on which an account will be stored). This feature is only relevant to servers with more than one hard disk. This feature can be useful if one hard drive is beginning to fill or if you have added an additional hard drive with which you intend to split the load.

To change an account’s hard drive:

1. Select the desired account from the list.
* You may use the Account Search feature to search for an account by domain or by user.
2. Click Rearrange.
3. Select the drive from the pull-down menu.
4. Click Move Account.

That’s all for today!

Posted in cPanel | Tagged /etc/wwwacct.conf, cPanel, destination, homedir, homeroot, location, move an account, rearrange an account, WebHost Manager, wwwacct.conf | Leave a reply

Quote of the day

"When love is in excess, it brings a man no honor, nor worthiness." Euripides

Recent Posts

  • Bit, byte and the conversion from/to decimal
  • Windows – change the port for Remote Desktop
  • CSF on Virtuozzo
  • dig, host, and nslookup
  • InnoDB: Operating system error number 13

Categories

  • cPanel (2)
  • How To (6)
  • Miscellany (4)
  • News (1)
  • Plesk (2)
  • Security (2)
  • Troubleshooting (4)
  • Windows (1)

Blogroll

  • Texas Holdem Freerols

Archives

  • October 2014 (1)
  • July 2013 (1)
  • May 2012 (2)
  • January 2012 (1)
  • December 2011 (1)
  • November 2011 (1)
  • July 2011 (1)
  • June 2011 (1)
  • April 2011 (1)
  • January 2011 (2)
  • December 2010 (2)
  • November 2010 (6)
  • October 2010 (2)

Tag Cloud

  • /etc/wwwacct.conf
  • binary digit
  • bit
  • byte
  • cat /proc/mdstat
  • check bind version
  • check named version
  • clar mail queue
  • clear qmail
  • clear queue
  • converstion
  • cPanel
  • csfpre.sh
  • destination
  • eight bits
  • hide bind version
  • hide named version
  • homedir
  • homeroot
  • linux
  • location
  • lowest siginificant bit
  • mismatch
  • mismatch_cnt
  • most significant bit
  • named.conf
  • octet
  • options
  • plesk
  • Plesk clear qmail queue
  • qmail
  • qmail-qstat
  • raid
  • reboot
  • reboot notification
  • restart
  • restart notification
  • security
  • server restart
  • server uptime
  • synchronized
  • uptime
  • WebHost Manager
  • word
  • wwwacct.conf
Proudly powered by WordPress