Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 22
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2004
    Posts
    22

    Default users in dir other than /home

    Hi all,

    The /home directory on my server is 88%. I want to configure cPanel so that new users are added to a directory on a second hard drive I have installed in the box. Is this possible? I would like to leave /home on the primary drive and all the currnet users in it, and use the new drive for new users.

    TIA.

  2. #2
    Member RavenSoul_'s Avatar
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    95

    Default

    In WHM:
    Server Configuration > Basic cPanel/WHM Setup > Default Home Directory
    |
    Current config: SUN Fire V20z–server | WHM 10.3.1 cPanel 10.4.0-E244 | CentOS 3.5 x86_64
    |
    Current issue: none

  3. #3
    Member
    Join Date
    Mar 2005
    Posts
    28

    Default

    I have done this. Everything has been working just fine.

    The only problem I am having now is disk usage is not being calculated in cPanel for my users.

    Where do I change where cPanel is calculating disk usage for clients?

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Make sure that you have disk quotas enabled for the partition that you are using, both in /etc/fstab and using quota. /scripts/initquota and /scripts/fixquotas are a good place to start too.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member
    Join Date
    Mar 2005
    Posts
    28

    Default

    Edit fstab to this?

    Code:
    /dev/hdc1               /backup                 ext3    defaults,usrquota        1 1
    I'm not sure about quotas. This is what WHM says to me.

    Quote Originally Posted by WHM
    Warning: enabling quotas on a machine that does not have kernel support for quotas may result in an unbootable system. This should only happen if you have compiled a custom kernel on your machine WITHOUT quota support. Proceed at your own risk.
    I can't get /scripts/initquota to run and already tried /scripts/fixquotas with no change.

    Thanks!

  6. #6
    Member
    Join Date
    Mar 2005
    Posts
    28

    Default

    Any ideas?

  7. #7
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Once you have edited fstab you need to remount that partition or reboot the server (whichever is simplest for you) then run initquotas.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  8. #8
    Member
    Join Date
    Mar 2005
    Posts
    28

    Default

    All the users are located in /backup/home now.

    Do I need to edit fstab to match?

  9. #9
    Member
    Join Date
    Mar 2005
    Posts
    28

    Default

    I have also noticed that WHM shows the wrong partition for the accounts I had created prior to the new drive being installed.

    I did the reboot and I still can't run /scripts/initquotas.

    Code:
    -bash: /scripts/initquota: No such file or directory

  10. #10
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You've missed the s off the end of the script name which you correctly spelled in the line before

    /scripts/initquotas
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  11. #11
    Member
    Join Date
    Mar 2005
    Posts
    28

    Default



    Serious newbishness going on here.

    The script, of course, is running now.

  12. #12
    Member
    Join Date
    Mar 2005
    Posts
    28

    Default

    Quote Originally Posted by chirpy
    Make sure that you have disk quotas enabled for the partition that you are using, both in /etc/fstab and using quota.
    When you say 'and using quota" what exactly do you mean.

    I've done everything so far. I wonder if WHM needs to update for everyone's cPanel to reflect how much space they have used?

  13. #13
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    initquotas should take care of that, if not, run /scripts/fixquotas afterwards. Basically, you should see two files at the top of the partition that holds accounts:

    aquota.user
    quota.user

    These are the files that contain the data for the linux quota system.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  14. #14
    Member
    Join Date
    Mar 2005
    Posts
    28

    Default

    Ok, well, for some reason the changes I made to fstab didn't save. I must have done something wrong. I'll try this again.

    I do see those files. I bet that if I fix fstab, and save it right, everything will work.


    Thank you so much for your assistance!

  15. #15
    Member
    Join Date
    Mar 2005
    Posts
    28

    Default

    fstab isn't keeping my changes after I run those who scripts. It was after the reboot, I think.

Similar Threads & Tags
Similar threads

  1. Limit php to users home dir
    By sehh in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 10-25-2007, 02:15 AM
  2. Lock users into their /home dir
    By nurvox in forum New User Questions
    Replies: 12
    Last Post: 06-03-2007, 08:31 AM
  3. How i change either a cpanel users Home dir or there public_html path to /shoutcast
    By ste@kmh-hosting in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-13-2005, 09:28 AM
  4. Replies: 7
    Last Post: 04-15-2005, 10:56 AM
  5. Custom home dir... etc
    By vogue in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-20-2004, 05:44 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube