Re: [Proftpd-user] [SPAM] Re: Proftpd with SQL and problem with groups

"TJ Saunders" <[email protected]> Sun, 12 Mar 2023 09:42:38 -0700
Newsgroups gmane.network.proftpd.user
Message-ID <[email protected]>
> What I wanted to say in previous mail is: ok, that case is working but 
> its not the end of whole case.
> If you suggesting to set group in folders to first additional groups of 
> users what will be with others additional groups ?

Rather than talking about specific SQL table rows and directory permissions, then, let's discuss what the overall behavior/functionality you are trying to achieve.

You have multiple users, and each user has a home directory.  You want some of those users to be able to access other users' directories.  A given directory/file can belong to only one group, not multiple groups.  Users can belong to multiple groups.

So if you want a given user to be able to access another user's directory, then that user needs to be a member of the group which owns that directory.  And these groups do not all have to be the same.

Here's an example:

  user A belongs to group1, group2, group3
  user B belongs to group2
  user C belongs to group3

  /srv/ftp/A is owned by user A, group1 and has 770 permissions
  /srv/ftp/B is owned by user B, group2 and has 770 permissions
  /srv/ftp/C is owned by user C, group3 and has 770 permissions

With this setup, user A can access all 3 directories, since user A belongs to group1 (for /srv/ftp/A access), to group2 (for /srv/ftp/B access), and to group3 (for /srv/ftp/C access).  User B and user C can only access their own directories.

There is no "first additional groups" requirement; the ordering of the groups does not matter.

Hope this helps,
TJ


_______________________________________________
ProFTPD Users List   <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html