Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

mount nfs under user directory problem

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

  1. carock

    carock Well-Known Member

    Sep 25, 2002
    Likes Received:
    Trophy Points:
    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
    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?


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice