Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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:

/user1/

/user1/user2/

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)

share|improve this question
    
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

1 Answer 1

up vote 1 down vote accepted

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
share|improve this answer
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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