Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 3rd May 2006, 11:02
mtpocket mtpocket is offline
Junior Member
 
Join Date: Dec 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Like this:
Code:
chown ftpuser:ftpgroup /path/to/directory
This would change the ownership of that directory only. If you also want to change the ownership of the files and directories that are in that directory, you'd run

Code:
chown -R ftpuser:ftpgroup /path/to/directory
Hello,
I really love this howto guide!
One question about ownership.. What do i need to change in order to permanently change the ownership? Ive tryed to just change
"('exampleuser', '1', MD5('secret'), '2001', '2001', '/home/www.example.com',"

To
"('exampleuser', '1', MD5('secret'), '33', '33', '/home/www.example.com',"

But it didn't work. I mainly use this guide to run a webserver, and i often get ownership problems when installing CMS's like Joomla and such. I use Debian and want the ownership set to Apache.

Last edited by mtpocket; 3rd May 2006 at 14:20.
Reply With Quote
Sponsored Links
  #12  
Old 3rd May 2006, 15:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I think I read somewhere that you cannot use user ids below 1000...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #13  
Old 3rd May 2006, 17:34
mtpocket mtpocket is offline
Junior Member
 
Join Date: Dec 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your answer.

Ok, is there any other solution to my "problem" that dont include changing user/group settings in httpd.conf?
Reply With Quote
  #14  
Old 3rd May 2006, 22:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

You could add the Apache user to the ftpgroup group and then change the umask in /etc/proftpd.conf to 002 so that all uploaded files are also writable for the group.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #15  
Old 4th May 2006, 11:58
mtpocket mtpocket is offline
Junior Member
 
Join Date: Dec 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ah crap, im running pure-ftpd
Ive looked up some information about umask in pure-ftpd, and it seems to be a bit pain in the a**..

Well thanks for your help anyways
Reply With Quote
  #16  
Old 2nd June 2006, 11:30
mtpocket mtpocket is offline
Junior Member
 
Join Date: Dec 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
You could add the Apache user to the ftpgroup group and then change the umask in /etc/proftpd.conf to 002 so that all uploaded files are also writable for the group.
Hello falko,
I switched to Virtual Hosting With Proftpd And MySQL (Incl. Quota), this time and im wondering about the stuff you said earlyer. My Linux knowledge is somewhat limited (still learning). What did you mean by adding Apache user to ftpgroup, was it the groupmod -G thing; or something else?
Reply With Quote
  #17  
Old 2nd June 2006, 12:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

You can simply open /etc/group and add the Apache user to the ftp group.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #18  
Old 2nd June 2006, 12:24
mtpocket mtpocket is offline
Junior Member
 
Join Date: Dec 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Faklo
Ive added Apache to Ftpgroup now like this: ftpgroup:x:2001:www-data
One thing about Umask. There are two valuse to change:
Umask 022 022. Do i need to change both?

Thanks for your help Falko
Reply With Quote
  #19  
Old 2nd June 2006, 17:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Try
Code:
Umask 002 002
so that groups can write, too.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #20  
Old 2nd June 2006, 18:54
mtpocket mtpocket is offline
Junior Member
 
Join Date: Dec 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Super, it worked
My questions is like a never ending story When i used Pureftp i never had to wait to login, now with Proftpd it takes a while to login.. Any ideas?
I use Debian 3.1 (minimal install).

Edit:
I got the ftp problem sorted

Last edited by mtpocket; 2nd June 2006 at 22:59.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
proftpd with mysql? pontifex Feature Requests 3 26th October 2005 15:40
Mysql ejs Installation/Configuration 5 12th August 2005 07:01


All times are GMT +2. The time now is 19:16.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.