# Group Ownership and FTP

**URL:** <https://forum.virtualmin.com/t/group-ownership-and-ftp/35827>\
**Category:** Help! (Home for newbies)\
**Created:** [February 26, 2010, 12:46pm UTC](https://forum.virtualmin.com/t/group-ownership-and-ftp/35827 "2010-02-26T12:46:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fatbear](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/f/5fc32e/32.png) [@fatbear](https://forum.virtualmin.com/u/fatbear)\
**Post date:** [February 26, 2010, 12:46pm UTC](https://forum.virtualmin.com/t/group-ownership-and-ftp/35827/1 "2010-02-26T12:46:39Z")

</div>

In Virtualmin, if I have a customer whose UID:GID is custid:custid, and there are e-mail accounts on the domain whose UID:GID values are mail1.custid:custid, mail2.custid:custid, etc., it would seem to me that the domain owner would be able to create/delete/inspect the files found in each of the mail user accounts (in the /homes/mail1, /home/mail2, … directories).

In my /etc/proftpd.conf file, I’ve set:

Umask 007

When user directories are created via Virtualmin (Edit Mail and FTP Users), the directory created (e.g., /home/mail1) has mode 0700. Of course, then the domain owner can’t login as the domain owner and read/write files and directories.

I’d like the account owner to be able to have complete access to all content within the account (all domains, all homes areas, etc.).

What do I need to do to make this work?

---

<div class="post-metadata">

**Author:** ![fatbear](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/f/5fc32e/32.png) [@fatbear](https://forum.virtualmin.com/u/fatbear)\
**Post date:** [February 27, 2010, 3:16am UTC](https://forum.virtualmin.com/t/group-ownership-and-ftp/35827/2 "2010-02-27T03:16:02Z")

</div>

Any ideas on how a domain owner can read/write into mail users directories? Go ahead, prove you’re a virtualmin god or goddess!

---

<div class="post-metadata">

**Author:** ![fatbear](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/f/5fc32e/32.png) [@fatbear](https://forum.virtualmin.com/u/fatbear)\
**Post date:** [March 1, 2010, 2:32am UTC](https://forum.virtualmin.com/t/group-ownership-and-ftp/35827/3 "2010-03-01T02:32:04Z")

</div>

I’ve done some work on the code and I’ve found a solution. It amounts to modifying the file:

/usr/libexec/webmin/virtual-server/virtual-server-lib-funcs.pl

in the function:

set\_usermin\_imap\_password

The solution was to change every occurrence of 0700 with 0770, and every occurrence of 0600 with 0660. In addition to this, the file:

/etc/proftpd.conf

needed to be modified. It needs to have the directive:

Umask 007

If absent, add it; if there is another value (e.g., 027), then change it to 007.

With those two changes, the account (top-level server) owner can now read and write files that belong to users created via Edit Mail and FTP Users.

It would be nice if there were a GUI that allows one to choose the one mode or the other. It might have to be a solution that applies to all domains. But, if the Virtualmin team can figure out an even more elegant way to do this, it would be a big help for people who want the top-level server user to have the ability to read and write all files in the account.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 5:32am UTC](https://forum.virtualmin.com/t/group-ownership-and-ftp/35827/4 "2020-04-30T05:32:32Z")

</div>

Closed on April 30, 2020, 5:32am UTC


