Access for webmaster to /htdocs on Linux Apache

Posted on 2006-05-02
Medium Priority
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
  • 2
  • 2
LVL 19

Expert Comment

ID: 16594227

Author Comment

ID: 16595087
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

CoccoBill earned 1000 total points
ID: 16595161
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

ID: 16596345
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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

862 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