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
  #1  
Old 14th January 2010, 10:47
cybertron cybertron is offline
Junior Member
 
Join Date: Jan 2010
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default Virtual Hosting With PureFTPd And MySQL - permissions

Hey guys, I'm kind of new to linux in general and still trying to understand this stuff so go easy on me. I've followed this tutorial here and have a couple questions.

My setup is: RAID5 configured @ /mnt/raid/ and FTP home is /mnt/raid/ftp/$username

Under FTP (username ftpuser) everything works great. However, when I try to delete something via SSH or Samba, it gives me (username josh) a permission denied. So I decided to add myself to the ftpgroup (I followed all the tutorials naming) using sudo usermod -a -G ftpgroup josh. I then noticed that the files in the FTP folder where as follows:

Code:
-rw-r--r-- 1 ftpuser ftpgroup 23602562 2010-01-14 03:42 MVI_2627.AVI
And so from what I read, that means the group cant do jack. This is a complete home setup, so I need my user josh to have full permissions over the ftp files. What am I doing wrong in this case? How can I get the FTP user to upload files in such a way that other groups can access it? OR how can I make my non-ftp user more powerful?

Thank you in advance,
Josh
Reply With Quote
Sponsored Links
  #2  
Old 15th January 2010, 14:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

ftpgroup only has read permissions, that's why a member of that group cannot delete files. To change that, you can either run chmod...
Code:
chmod 664 MVI_2627.AVI
or you change pure-ftpd's umask to 002 (instead of 022).
__________________
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
  #3  
Old 15th January 2010, 16:27
cybertron cybertron is offline
Junior Member
 
Join Date: Jan 2010
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thank you for your help. I was able to get a friend to help me with this yesterday and what we ended up doing was changing pureFTPd's umask to 017 per his suggestion.

For anyone else wondering how to do this the documentation mentions switches, but I created a file called Umask and placed "017 017" in it. Notice it's not "017:017". This file was placed in /etc/pureftpd/conf/


Thanks again.
Reply With Quote
The Following User Says Thank You to cybertron For This Useful Post:
falko (16th January 2010)
  #4  
Old 9th February 2010, 17:57
vpupkin vpupkin is offline
Junior Member
 
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Hello, thanks for the article, very helpful. But I have a problem:
1) all done strictly on the items
2) system CentOS 5.4 (though the system CentOS 5.3)
3) Vice Apache, lighttpd .... took all the necessary modules installed.
4) a bunch of Mysql + Lighttpd + phpMyAdmin + FCGI + PHP + PureFTPd
5) PureFTP in Mysql database creation all the same, only passwords pureftpuser changed.
6) all checked on line, all right.
But here's the problem with the entry in the database Mysql, not create the specified directory ... nothing, Please help! Although the record in the database table pureftp ftpd is! What is the problem do not understand ....

/var/log/pureftp.log - empty

Last edited by vpupkin; 9th February 2010 at 19:33.
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
Problems with Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Mana ikkem HOWTO-Related Questions 33 8th June 2012 19:27
Virtual Hosting With PureFTPd And MySQL quota problem GaulHahn Server Operation 3 29th July 2008 15:32
Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management) sEby HOWTO-Related Questions 3 22nd January 2008 04:21
Virtual Hosting with PureFTPd and MySQL - FC7 chalee HOWTO-Related Questions 1 6th September 2007 23:19
Virtual Hosting With PureFTPd And MySQL troubles Mave HOWTO-Related Questions 2 25th November 2006 04:08


All times are GMT +2. The time now is 12:07.


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