vsftpd: wite permissions to one directory

Hi all,

I have installed vsftpd with virtual users support.
Is it possible to configure all users to have read access only [ "write_enable=NO" ] and then wirte permissions only to one directory?

Thank you!
LVL 10
amprantiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DonConsolioCommented:
I am afraid vsftpd can't do what you would like, but you might consider
implementing this using file system permissions.

Did this for one of our projects and it seems to work quite well.

Add all users to a group (e.g. "ftpusers"), deny write permissions on readonly files
to the group and give write permissions on the desired directoy to ftpusers.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
amprantiAuthor Commented:
I am using virutal users, so I am afraid I cant do that :(

Do you know If proftpd support that functionality, using virtual users?!

Thank you
0
DonConsolioCommented:
Virtual users are mapped to the "guest_username" real user

Just set up permissions like this:

home directory of vuser: owner: root, permissions rwxr-xr-x
read-only directories: owner: root, permissions rwxr-xr-x
files in read-only directories: owner: root, permissions rw-r--r--
read-write directory: owner "guest_username", rwxr-xr-x
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

DonConsolioCommented:
proftp: sorry, don't use it, but should work the same way
0
amprantiAuthor Commented:
As I said, I am using virtual user; so the above doesnt aplly for me :(
0
amprantiAuthor Commented:
vsftpd doesnt support this kind of functionality! I moved on to proftpd
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

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.