You are not logged in.
So the problem I have is that when I upload files via pure-ftpd to my http folder they will have ancide:ancide as the user and group.
For apache to be able to run those files I have to change all the files manually so that they are ancide:http or http:http.
So my question is, can I change so when I upload files in the http folder they will automatically have the http group set?
Or is there a better solution to solve this problem?
Thanks!
Last edited by ancide (2009-07-14 11:53:46)
Offline
I've never used pure-ftpd but can't you configure chmod from withi the program, or use umask?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Is pure-ftpd running as the ancide user or...?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
set the setgid in the directory and change to the desire group.
chmod g+s upload
chgrp http upload
Offline
I came up with a solution to solve this.
By using pure-ftpd with mysql in the database you can set the uid and gid of the ftp users!
The problem for me was that I had to download the unsupported pure-ftpd-mysql and compile it myself, but that's another story.
Thanks for the replies though.
Last edited by ancide (2009-07-14 11:54:46)
Offline