Home Forums OS X Server and Client Discussion File Serving ProFTP Group Permission problem

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #356118
    filmo
    Participant

    Hi,

    I want files that are uploaded to have a different Group id from the User Id.

    Assuming that the normal ftp user is ‘admin’, using the stock settings a file uploaded to a directory would end up looing like:
    [code:1:c491dee2f4]
    -rw-r–r– 1 admin admin 2343 Jul 15 10:37 test.mp3
    [/code:1:c491dee2f4]

    Using Umask inside a <Directory> config, I can get the file to become
    [code:1:c491dee2f4]
    <Directory /var/www/html/media>
    Umask 0002
    </Directory>
    result:
    -rw-rw-r– 1 admin admin 2343 Jul 15 10:37 test.mp3
    [/code:1:c491dee2f4]

    However, when I add the GroupOwner directive, nothing changes. In /etc/group, I’ve defined ‘www3’ as a new group:

    www3:x:605:admin3,apache

    and modifyed the above directive as follows:

    [code:1:c491dee2f4]
    <Directory /var/www/html/media>
    Umask 0000
    GroupOwner www3
    </Directory>
    [/code:1:c491dee2f4]

    But when I upload a file, it still shows up as:

    -rw-rw-r– 1 admin admin 2343 Jul 15 10:37 test.mp3

    instead of the desired:

    -rw-rw-r– 1 admin www3 2343 Jul 15 10:37 test.mp3

    Any thoughts? Am I using the right directive for Proftpd — version 1.2.8

    Other notes: These directives are encapulated in a <VirtualHost xx.xx.xx.xx> directive. (I’ve tried using the ‘group’ name from the ‘virtual host’ also, but no luck either.)

    #357723
    Anonymous
    Participant

    I don’t understand why you need a different group.
    Where is the file uploaded?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed