public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] web & ftp server
@ 2007-02-15  7:34 Nikolay Balov
  2007-02-15  8:42 ` support
  0 siblings, 1 reply; 3+ messages in thread
From: Nikolay Balov @ 2007-02-15  7:34 UTC (permalink / raw
  To: gentoo-user

Hi guys, i have a web server with IP based virtual hosts (3-4) and i
want to make a ftp account for every host. I'm thinking to use proftpd
and to make the root dir in /var/www so then every user will have home
directory to different web account (/var/www/domain1, /var/www/domain2,
etc.). For the ownership of the files i'm thinking to start the ftp
server with user and group apache to make possible for the web server to
read the files. Is my ideas right?
I'm open for other ideas :)
Thanks a lot

P.S. I was googling a lot of time but i can't find any suggestion for
this configuration.

Regards,
Niki

-- 
Cyberly yours,
Nikolay Balov

mail: dragnipur@vip.bg
Linux Registered User #382280
http://keyserver.linux.it/
Key fingerprint = D80E A05B 5727 B40C 7431  2CC0 0845 E79E 428A 1109

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] web & ftp server
  2007-02-15  7:34 [gentoo-user] web & ftp server Nikolay Balov
@ 2007-02-15  8:42 ` support
  2007-02-15  9:20   ` Nikolay Balov
  0 siblings, 1 reply; 3+ messages in thread
From: support @ 2007-02-15  8:42 UTC (permalink / raw
  To: gentoo-user

Hi,

> Hi guys, i have a web server with IP based virtual hosts (3-4) and i
> want to make a ftp account for every host. I'm thinking to use proftpd
> and to make the root dir in /var/www so then every user will have home
> directory to different web account (/var/www/domain1, /var/www/domain2,
> etc.). For the ownership of the files i'm thinking to start the ftp
> server with user and group apache to make possible for the web server to
> read the files. Is my ideas right?
> I'm open for other ideas :)

well, in general you are right, but please allow me some comments:

ProFTPD is supporting alternative user/passwd sources like files or a
mysql db. While mysql is a good solution for mass hosting, I would go for
"authuserfile" in your case. This allows you to work with FTP users
without adding any system users to your system. As well you can also give
the user an invidual UID and GID, so I would suggest the UID and GID of
apache.

I am not sure, if the ftpasswd program to handle this accounts is included
in the gentoo package. You will find it in the contrib directory of
proftpd.

Usuage: (example taken from an SuSE System I worked on last week):
ftpasswd --file /usr/local/etc/proftpd.user  --home <HOME> --name <NAME>
--shell  /bin/false  --passwd --uid 30 --gid 8

proftpd.conf:
AuthUserFile /usr/local/etc/proftpd.user
RequireValidshell off

the syntax should be clear, otherwise just ask.

If I am correct you have to recompile ProFTPD with the correct Useflag.
Also please note, that you still can login as a system user. To prevent
this you have to add the authorder option to your proftp.conf

Hope that helps

Stonki


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] web & ftp server
  2007-02-15  8:42 ` support
@ 2007-02-15  9:20   ` Nikolay Balov
  0 siblings, 0 replies; 3+ messages in thread
From: Nikolay Balov @ 2007-02-15  9:20 UTC (permalink / raw
  To: gentoo-user

Thanks a lot it was very helpfull :)

support@stonki.de wrote:
> Hi,
>
>   
>> Hi guys, i have a web server with IP based virtual hosts (3-4) and i
>> want to make a ftp account for every host. I'm thinking to use proftpd
>> and to make the root dir in /var/www so then every user will have home
>> directory to different web account (/var/www/domain1, /var/www/domain2,
>> etc.). For the ownership of the files i'm thinking to start the ftp
>> server with user and group apache to make possible for the web server to
>> read the files. Is my ideas right?
>> I'm open for other ideas :)
>>     
>
> well, in general you are right, but please allow me some comments:
>
> ProFTPD is supporting alternative user/passwd sources like files or a
> mysql db. While mysql is a good solution for mass hosting, I would go for
> "authuserfile" in your case. This allows you to work with FTP users
> without adding any system users to your system. As well you can also give
> the user an invidual UID and GID, so I would suggest the UID and GID of
> apache.
>
> I am not sure, if the ftpasswd program to handle this accounts is included
> in the gentoo package. You will find it in the contrib directory of
> proftpd.
>
> Usuage: (example taken from an SuSE System I worked on last week):
> ftpasswd --file /usr/local/etc/proftpd.user  --home <HOME> --name <NAME>
> --shell  /bin/false  --passwd --uid 30 --gid 8
>
> proftpd.conf:
> AuthUserFile /usr/local/etc/proftpd.user
> RequireValidshell off
>
> the syntax should be clear, otherwise just ask.
>
> If I am correct you have to recompile ProFTPD with the correct Useflag.
> Also please note, that you still can login as a system user. To prevent
> this you have to add the authorder option to your proftp.conf
>
> Hope that helps
>
> Stonki
>
>
>   


-- 
Cyberly yours,
Nikolay Balov

mail: dragnipur@vip.bg
Linux Registered User #382280
http://keyserver.linux.it/
Key fingerprint = D80E A05B 5727 B40C 7431  2CC0 0845 E79E 428A 1109

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-15  9:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-15  7:34 [gentoo-user] web & ftp server Nikolay Balov
2007-02-15  8:42 ` support
2007-02-15  9:20   ` Nikolay Balov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox