Access for webmaster to /htdocs on Linux Apache

Posted on 2006-05-02
Last Modified: 2008-02-26

Can you please suggest what would be the best method to allow a Webmaster to access a Suse Linux box to allow him to build and develop his stupid website?

Any tips on this would be appreciated, I tried giving him SSH, but this gives him access to more than just /htdocs.

Best Regards.
Question by:automatic_script
    LVL 19

    Expert Comment


    Author Comment

    Much appreciated, but I already looked at chrooting the user into  /htdocs, but when this is done you end up with a /bin, /etc and /home within the htdocs which for obvious security reasons is a no-go situation.

    LVL 19

    Accepted Solution

    Chroot the user to his home dir (such as /home/webmaster), and remount /htdocs inside the jail:

    mount --bind /htdocs /home/webmaster/htdocs


    Author Comment

    Thanks for the tip, implemented glftpd and jailed the user to his home directory there.
    The mount --bind worked fine, but now the user has no rights to make folders or to edit the file because the /htdocs is outside
    the /jail environment.

    Do you know how to get around this?


    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
    The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now