Re: [Proftpd-user] How set ProFtpd read-write permission for specific user without chown
Matus UHLAR - fantomas <[email protected]>
| Newsgroups | gmane.network.proftpd.user |
|---|---|
| Message-ID | <[email protected]> |
On 04.07.19 16:13, Davide Marchi wrote: >I know that the matter is much debated and therefore excuse me in >advance if I have not yet understood it.. :-) > >I'm using Debian Jessie and Proftpd 1.3.5-1.1.. > >I would like to allow read-write permission for a specific user >"myuser" within the directory /var/www/mysite.it/public_html. >For make this, I've added "myuser" to "www-data" group, and then >assigned write permission to the specific directory (in which this >user must operate): > >chmod -R g+w /var/www/mysite.it/public_html.. > > >I would like to know if it is the only possible way or if it is >possible to make, through the configuration of ProFtpd, to assign >these permissions without the use of chown. When you run as user, the permissions of that user are used. Therefore, it's impossible to write to a file/directory into which the user doesn't have write permissions. So, you can't give the user less permissions and expect proftpd to do more. You must give the user more permissions (carefully) and then you can limit them through proftpd; note that if the user can log in other way (shell access), the full permissions will be available. -- Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. How does cat play with mouse? cat /dev/mouse _______________________________________________ ProFTPD Users List <[email protected]> Unsubscribe problems? http://www.proftpd.org/list-unsub.html