[pure-ftpd] Permissions of the current FTP user
[email protected] Tue, 3 Mar 2020 18:31:17 +0100 (CET)
| Newsgroups | gmane.network.pureftpd.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I was wondering if it's possible to get the permissions for files/directories in the context of the current FTP user. I know that you can use MLST or MLSD to get the unix permissions, the UID, and the GID for objects. What I 'm missing are the UID and the GIDs of the currently logged in FTP user. One possibility would be to download and parse /etc/passwd and /etc/group but that seems like a really fragile way to handle this problem. I guess this also wouldn't work when using LDAP authentication or virtual users? RFC 3659 describes such a permission query[1] as part of MLST/MLSD but Pure-FTPd doesn't implement this feature. Does Pure-FTPd have a feature which allows for such a permission query? What approach would you recommend? [1]: https://tools.ietf.org/html/rfc3659#section-7.5.5 Greetings Michael