The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mount nfs under user directory problem

Discussion in 'General Discussion' started by carock, Oct 22, 2003.

  1. carock

    carock Well-Known Member

    Joined:
    Sep 25, 2002
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    St. Charles, MO
    We have a server were using for mass storage, and we set up a mount point in fstab of /home/tengb/tengb as it's mount point in the local file system.

    When we did this, a new account on the system was then added. When I went to enable FrontPage, it showed me the directory path of /home/tengb/tengb/newacct which does not exist.

    vipw showed the path of this user as /home/tengb/tengb/newuser as well.

    I believe it has something to do with the code in the /scripts/wwwacct and/or pkgadd

    Both use some strange matching from the output of a 'df' command.

    My df command shows this...

    root@cpanel [/home/carock]# df
    Filesystem 1k-blocks Used Available Use% Mounted on
    /dev/ida/c0d0p7 2015904 1322528 590972 70% /
    /dev/ida/c0d0p1 79017 34455 40482 46% /boot
    /dev/ida/c0d0p9 31207980 2839336 26783364 10% /home
    none 1032344 0 1032344 0% /dev/shm
    /dev/ida/c0d0p8 1007928 16560 940168 2% /tmp
    /dev/ida/c0d0p5 8064032 2568352 5086052 34% /usr
    /dev/ida/c0d0p2 8064048 331292 7323124 5% /var
    ip.ip.ip.ip:/storage/cpanel2_storage/tengb
    210031896 61456716 137906188 31% /home/tengb/tengb

    So this matching script will find two matches in the df output because it's only looking for ^/home and since there's only one variable, I'm assuming it's taking the last one that matches.

    Why can't /home be it? Why do you need to do some kind of searching for a /home directory in the df output? If I didn't use Cpanel to add the user I want to control with Cpanel, then I must be stupid. right?

    I really need to mount this nfs drive under the /home/username directory. Can someone fix the Cpanel code so I don't have to add another thing to modify each time I upgrade?

    Thanks,
    Chuck
     
Loading...

Share This Page