LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Pleasehelp with proftpd.conf - trying to config user to write files as other user. (https://www.linuxquestions.org/questions/linux-software-2/pleasehelp-with-proftpd-conf-trying-to-config-user-to-write-files-as-other-user-67027/)

philg 06-21-2003 08:01 AM

Pleasehelp with proftpd.conf - trying to config user to write files as other user.
 
Hi All,

I have a small problem with proftpd. What Im trying to do is setup users that will when uploading files, creating directories and overwriting will use another system user and group.

For example I have mainuser with domain name maindomain.com and then I have subuser1, subuser2 and subuser3. All users have ftp access to /home/maindomain.com and all users have their own group that is the same as the username.

Now, how would I write my proftpd.conf to allow all users to overwrite files, upload files and created directories that are owned and grouped to mainuser?

So far my config file looks like this:
Code:

ServerName                      "ProFTPD Default Installation"
ServerType                      standalone
DefaultServer                  on
TimeoutIdle      900
TimeoutNoTransfer 900
Port                            21
Umask                          022
MaxInstances                    30

User                            nobody
Group                          nogroup

DefaultRoot ~

<Global>
        AllowOverwrite                                on
        IdentLookups                        off
</Global>

<Directory /home/maindomain.com/*>
        UserOwner                                        mainuser
        GroupOwner                                        mainuser
        AllowOverwrite                                on
</Directory>

Now this does work when creating new files and directories but will give a permission denied when trying to overwrite anything.

Any help would be muchly appreciated!

Edward78 06-21-2003 01:13 PM

Why aren't the users in the same group, that would let them do everything you want them to.


All times are GMT -5. The time now is 03:07 PM.