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

I have an FTP server set up where, off the root, there is a file structure laid out by city. Underneath each city's folder are more folders organized by project. I would like to be able to restrict my guest users (using a specific login/password) in such a way that they are unable to view the folders under the city name, but instead have be brought directly to them via an FTP link.

Example:

/
--City1
----Project1
----Project2
----Project3
--City2
----Project4
--City3
----Project5

link: ftp://ftp.company.com/City2/Project4

share|improve this question

1 Answer 1

To do this, when you create the user you set their home directory to be for example /City2/Project4. You also configure the proftpd DefaultRoot directive in proftpd.conf to lock the user to their home directory.

DefaultRoot ~
share|improve this answer
    
Unfortunately, we use one guest account for all users. I can't restrict to a specific project directory without creating hundreds of accounts that may only be used one time. –  Larry G. Wapnitsky Jul 27 '11 at 12:55
    
I don't think you can do that. –  Iain Jul 27 '11 at 13:07
    
OK. Thank you. I'll see how I can change my environment –  Larry G. Wapnitsky Jul 27 '11 at 13:27

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.