I have a ftp user chrooted to a sub directory of another user which can read and write but the main user needs to be able to edit the files also

like this:



how can I get this working in proftpd?

since its an www directory also it has to be secure also (no write for apache user)

  • you're not too specific, and the way you're describing your question tells there's no good solution for your problem. it's more like 'please someone do my job' question than a short question - short answer - which this site is mainly about – asdmin Jul 29 '09 at 12:02

You can create a group, add the two users to it and make this directory owned by this group and writable, like this:

addgroup ftpeditors
adduser user1 ftpeditors
adduser user2 ftpeditors
chgrp ftpeditors /user1/user2
chmod g+w /user1/user2
  • 1
    Either put user1 and user2 using the ftpeditors group as their primary group, or make /user1/user2 group-sticky, and you have a winner. – David Mackintosh Jul 29 '09 at 12:54
  • you can also do newgrp ftpeditors before creating any files. – chmeee Jul 29 '09 at 16:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.