Managing arbitrary user permissions under PureFTPd

Posted by Sebastián Grignoli on Super User See other posts from Super User or by Sebastián Grignoli
Published on 2011-01-16T18:00:23Z Indexed on 2011/01/16 18:55 UTC
Read the original article Hit count: 256

Filed under:

I need to provide an FTP service that needs to be web-managed in the simplest way possible. My customer wants to create folders and users, and give them read only or read/write access arbitrarily.

For example:

The folder 'Documents' should be read only for several users, writable for internal users, and invisible for the rest.

The folder 'Pictures' should be read only for journalists, writable for associates, and invisible for the rest.

The folder 'Media' should be read only, writable or invisible for arbitrary users specified on the admin.

There could be a large number of users and folders.

I can't find a good way to accomplish that.

I thought that I could give each user a home folder and put symlinks for the folders he has read access to, and make the user part of the folder's group when he has write access too, but now I think that this wouldn't work, because with PureFTPd (or ProFTPd) I can only specify the virtual user's mapping to a system user, and only one GUID for each virtual user. My approach requires that I could specify several GUIDs for each user (one by each folder he has write access to).

I need to start programming this admin and I still don't know wich approach would work, if any.

¿Any ideas?

© Super User or respective owner

Managing arbitrary user permissions under PureFTPd

Posted by Sebastián Grignoli on Ask Ubuntu See other posts from Ask Ubuntu or by Sebastián Grignoli
Published on 2011-01-16T17:58:52Z Indexed on 2011/01/16 18:58 UTC
Read the original article Hit count: 256

Filed under:

I need to provide an FTP service that needs to be web-managed in the simplest way possible. My customer wants to create folders and users, and give them read only or read/write access arbitrarily.

For example:

The folder 'Documents' should be read only for several users, writable for internal users, and invisible for the rest.

The folder 'Pictures' should be read only for journalists, writable for associates, and invisible for the rest.

The folder 'Media' should be read only, writable or invisible for arbitrary users specified on the admin.

There could be a large number of users and folders.

I can't find a good way to accomplish that.

I thought that I could give each user a home folder and put symlinks for the folders he has read access to, and make the user part of the folder's group when he has write access too, but now I think that this wouldn't work, because with PureFTPd (or ProFTPd) I can only specify the virtual user's mapping to a system user, and only one GUID for each virtual user. My approach requires that I could specify several GUIDs for each user (one by each folder he has write access to).

I need to start programming this admin and I still don't know wich approach would work, if any.

¿Any ideas?

© Ask Ubuntu or respective owner

Related posts about proftpd