• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 764
  • Last Modified:

Access for webmaster to /htdocs on Linux Apache

Olah!

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.
0
automatic_script
Asked:
automatic_script
  • 2
  • 2
1 Solution
 
automatic_scriptAuthor Commented:
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.

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

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

0
 
automatic_scriptAuthor Commented:
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?

Regards.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now