Results 1 to 2 of 2
  1. #1
    tomandrew is offline Member
    Join Date
    Sep 2008
    Posts
    72

    Linux FTP Server

    Using vsftpd on a FC4 server. What I need to do is create a master FTP account on our server that will have permissions to change directory into other account's home directory and move/delete files that were ftp'ed into that directory. So, I have a master account "masterftp" that belongs to the group "ftpuser". I created a test account called "testftp" and assigned it to the same group - "ftpuser" (usermod -a -G ftpuser $username).

    After I created the two accounts, here is what the home directory entries look like:
    drwx------ 4 testftp testftp 4096 Feb 26 10:37 testftp
    drwx------ 4 masterftp masterftp 4096 Feb 26 10:37 masterftp

    And here is the /etc/group entry:
    ftpuser:x:529:masterftp,testftp
    masterftp:x:528:
    testftp:x:530:

    To test, I ftped test.txt using account estftp into the /home/testftp directory. Here is what the entry looks like after ftp'ed in:
    -rw-rw-r-- 1 testftp testftp 18 Feb 26 10:41 test.txt

    Next, I login as "masterftp" to attempt to change directory into /home/testftp and delete the test.txt file. Here is what I get:
    cd /home/testftp
    -bash: cd: /home/testftp: Permission denied

    I expected that masterftp would have permission to enter /home/testftp and/or delete the file since they are in the same group.

    Any help on setting this up to work correctly will be GREATLY appreciated. I am at my wit's end.

  2. #2
    Alexandre is offline Junior WHC Addict
    Join Date
    Oct 2008
    Posts
    154
    The following tutorial will help you to configure your vsftpd in an appropriate order.
    Quick HOWTO : Ch15 : Linux FTP Server Setup - Linux Home Networking
    HostingZoom webhosting
    -------------------------
    Power, speed, reliability

Posting Permissions

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