[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 509
  • Last Modified:

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!
0
ampranti
Asked:
ampranti
  • 3
  • 3
1 Solution
 
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
 
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
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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