Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[gentoo-user] ftp user, local user, apache group

 
   Soft32 Home -> Linux -> User RSS
Next:  Accepted xtartan 2.3-15 (source i386)  
Author Message
laurent

External


Since: Feb 23, 2009
Posts: 11



(Msg. 1) Posted: Fri Oct 09, 2009 1:20 pm
Post subject: [gentoo-user] ftp user, local user, apache group
Archived from groups: linux>gentoo>user (more info?)

Hi,

Now I've setup vsftpd with local user.
For exemple I log with the user laurent, I create a folder via ftp.

This folder is own by laurent, so it's not exessible via apache.
How could I make that, like put laurent in a apache group?

I don't really know how to play with groups and user, any good tutorial
on that?

Thanks
Laurent
Back to top
Login to vote
laurent

External


Since: Feb 23, 2009
Posts: 11



(Msg. 2) Posted: Fri Oct 09, 2009 3:20 pm
Post subject: Re: [gentoo-user] ftp user, local user, apache group [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

should I go for vsftpd virtual users?

would need to have all file, folder created under any ftp account
viewable with apache.
So those files should be own by apache:apache

should it be this way?

Thanks
Laurent

laurent a écrit :
> Hi,
>
> Now I've setup vsftpd with local user.
> For exemple I log with the user laurent, I create a folder via ftp.
>
> This folder is own by laurent, so it's not exessible via apache.
> How could I make that, like put laurent in a apache group?
>
> I don't really know how to play with groups and user, any good
> tutorial on that?
>
> Thanks
> Laurent
>
>
>
Back to top
Login to vote
laurent

External


Since: Feb 23, 2009
Posts: 11



(Msg. 3) Posted: Thu Oct 15, 2009 7:22 pm
Post subject: Re: [gentoo-user] ftp user, local user, apache group [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Frank Steinmetzger a écrit :
> Am Freitag, 9. Oktober 2009 schrieb laurent:
>
>> Hi,
>>
>> Now I've setup vsftpd with local user.
>> For exemple I log with the user laurent, I create a folder via ftp.
>>
>> This folder is own by laurent, so it's not exessible via apache.
>> How could I make that, like put laurent in a apache group?
>>
>
> My setup is a combination of apache and pure-ftpd. My user is member of the
> apache group, and I have set my home dir to
>
> $ ls -ld /home/frank
> drwxr-x--- 115 frank apache 16384 2009-10-09 22:30 frank
>
> That way apache can enter my directory to get into ~/public_html, but other
> users (such as guests, it's my laptop) cannot.
>
> If I log into pure-ftpd with a local user account, it puts me into the
> respective user's home. Anonymous logins are made for user "ftp", which is
> set up in /home/ftp:
>
> $ ls -ld /home/ftp
> dr-xrwx--- 4 ftp users 4096 2009-09-19 19:45 ftp
>
> $ ls -ld /home/ftp/incoming
> drwxrwxr-x 2 ftp users 4096 2009-09-16 23:58 /home/ftp/incoming/
>
> This setup allows me as the "admin user" to have control over the files in the
> anonymous ftp root, and anonymous users may only upload stuff in the incoming
> directory.
>
>
>> I don't really know how to play with groups and user, any good tutorial
>> on that?
>>
>
> Just search for it, keywords such as file permissions chown may help:
> http://www.overclock.net/linux-unix/513350-linux-file-permissions-exec...bles-ho
> http://penguinpetes.com/b2evo/index.php?title=chmod_squad_howto_use_li..._file_p
>
> The latter is more informative on how to use groups in detail.
>
Hi Franck

Ok, after reading that I guess: I could create a 'connects' group and
put my apache user in it.
So apache will have control over the files in www own by
apache:connects. set to 760 recursively, for exemple.

And then add other local user to the connector group. Then as they will
be able to connect on ftp as a local user they will be able to read
write files that apache will be able to execute.

I'm gonna do that now Smile
thx
Laurent
Back to top
Login to vote
laurent

External


Since: Feb 23, 2009
Posts: 11



(Msg. 4) Posted: Thu Oct 15, 2009 7:22 pm
Post subject: Re: [gentoo-user] ftp user, local user, apache group [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

laurent a écrit :
> Frank Steinmetzger a écrit :
>> Am Freitag, 9. Oktober 2009 schrieb laurent:
>>
>>> Hi,
>>>
>>> Now I've setup vsftpd with local user.
>>> For exemple I log with the user laurent, I create a folder via ftp.
>>>
>>> This folder is own by laurent, so it's not exessible via apache.
>>> How could I make that, like put laurent in a apache group?
>>>
>>
>> My setup is a combination of apache and pure-ftpd. My user is member
>> of the apache group, and I have set my home dir to
>>
>> $ ls -ld /home/frank
>> drwxr-x--- 115 frank apache 16384 2009-10-09 22:30 frank
>>
>> That way apache can enter my directory to get into ~/public_html, but
>> other users (such as guests, it's my laptop) cannot.
>>
>> If I log into pure-ftpd with a local user account, it puts me into
>> the respective user's home. Anonymous logins are made for user "ftp",
>> which is set up in /home/ftp:
>>
>> $ ls -ld /home/ftp
>> dr-xrwx--- 4 ftp users 4096 2009-09-19 19:45 ftp
>>
>> $ ls -ld /home/ftp/incoming
>> drwxrwxr-x 2 ftp users 4096 2009-09-16 23:58 /home/ftp/incoming/
>>
>> This setup allows me as the "admin user" to have control over the
>> files in the anonymous ftp root, and anonymous users may only upload
>> stuff in the incoming directory.
>>
>>
>>> I don't really know how to play with groups and user, any good tutorial
>>> on that?
>>>
>>
>> Just search for it, keywords such as file permissions chown may help:
>> http://www.overclock.net/linux-unix/513350-linux-file-permissions-exec...bles-ho
>>
>> http://penguinpetes.com/b2evo/index.php?title=chmod_squad_howto_use_li..._file_p
>>
>>
>> The latter is more informative on how to use groups in detail.
>>
> Hi Franck
>
> Ok, after reading that I guess: I could create a 'connects' group and
> put my apache user in it.
> So apache will have control over the files in www own by
> apache:connects. set to 760 recursively, for exemple.
>
> And then add other local user to the connector group. Then as they
> will be able to connect on ftp as a local user they will be able to
> read write files that apache will be able to execute.
>
> I'm gonna do that now Smile
> thx
> Laurent
>
>
>
760 does not work. ftp can't change directory...so I put 770 to www, it
works.

L
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[gentoo-user] "554 Relay access denied" when use ssmtp to .. - Hi lists: Today the ssmtp in my gentoo installation could not deliver local mail to local user. Here is the log..

[gentoo-user] automatically adding a new user to cdrom gro.. - Would it be reasonable to request that useradd automatically adds a new user to the cdrom group? For a long time I..

[gentoo-user] How do I add a user to a group without delet.. - usermod is painfully lacking. You can't really add a user to a supplemental group. You effectively wipe out all..

[gentoo-user] user-group; root-0 - My newest install machine shows user-root and group-0 on most root files and dirs, while all my others show root-root....

[gentoo-user] User group problem - I sometimes have to add my user to a group. This of course doesn't take effect until I log out and back in. However,....

[gentoo-user] apache user and forced password change? - $ su - apache You are required to change your password immediately (root enforced) su: Authentication token is no longe...
       Soft32 Home -> Linux -> User All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]