Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    VSFTPD - virtual users, shared folder, read only users

    Hi there,

    I have setup a VSFTPD server (on Centos 5), with virtual users.

    Now what I want to do is setup a second user to access the home folder of a primary user as read/download only.

    So long story short... I have for read / write:

    -> /home/ftproot/user1 (home folder)

    Then I would like to create user2 and have read only:

    -> /home/ftproot/user1

    Now because the virtual users don't use regular permissions, I am not sure how to go about that.

    I am sure I need to use a "per user" config option, and set the home folder, as well as some permissions related VSFTPD options... but just not sure how to do it.


  2. #2
    useradd vsftpdguest

    vi /etc/vsftpd/vsftpd.conf

    # mkdir /etc/vsftpd/vsftpd_user_conf
    cd /etc/vsftpd/vsftpd_user_conf
    echo /home/user1 > user1
    echo /home/user2 > user2

    chmod 555 /home/user1 <-- just for read.
    chmod 777 /home/user2 <-- full access.

    try it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts