Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th September 2012, 19:07
themark themark is offline
Member
 
Join Date: May 2011
Posts: 84
Thanks: 3
Thanked 1 Time in 1 Post
Default Create an FTP user read only.

Hi there,

I need to create two user FTP on the same directory (of the same website):

1) one in read write mode;
2) one in read only mode;

It's there a way to get this job done with ispconfig?
I have played around with permission, but with no good result.

Someone here can help?

Thank you in advacend.
Mark
Reply With Quote
The Following User Says Thank You to themark For This Useful Post:
lgfocuyqjf (15th September 2012)
Sponsored Links
  #2  
Old 6th September 2012, 07:57
cfoe cfoe is offline
ISPConfig Developer
 
Join Date: Oct 2011
Location: NRW, Germany
Posts: 233
Thanks: 27
Thanked 57 Times in 32 Posts
Send a message via Skype™ to cfoe
Default

I dont think that is possible with the current ISPConfig.

Maybe there is something to be done in the pureftpd config file.
http://www.pureftpd.org/project/pure-ftpd
__________________
Christian Foellmann

OpenSource-Projects - GitHub-Projects - SVN-Mirrors on GitHub - Foe Services
Reply With Quote
  #3  
Old 6th September 2012, 09:04
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,072
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
Default

The steps to create a FTP read only user are:

1) Create a FTP user.
2) Go to the options tab of the FTP user and change the UID and GID to www-data (or whatever user and group your apache is running on).
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 6th September 2012, 09:52
themark themark is offline
Member
 
Join Date: May 2011
Posts: 84
Thanks: 3
Thanked 1 Time in 1 Post
Default

thank you Till, but we can't follow this step.
Because our web server (apache) run under apache user (48uid) that is lower that 500 minimum gid accepted by pureftpd default config.

change this default pureftpd config i think that can be very dangerous...

any thought about? :-)
Reply With Quote
  #5  
Old 6th March 2014, 17:56
zion zion is offline
Junior Member
 
Join Date: Nov 2013
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Same problem here with www-data (uid 33) when try FTP login:
Quote:
Answer: 331 User demo2 OK. Password required
Command: PASS **************
Answer: 530 Sorry, but I can't trust you
I'v found this: http://marc.info/?l=pureftpd-list&m=127448475305253

So I'v crated a new site, then a new ftp user, and modifed the User identifier (UID) to "ftp-ro" + Group identifier (GID): "ftp-ro"
Then I modified the group of the directory to ftp-ro (chown -R .ftp-ro directory_name), and modified group priviliges to setgid (chmod g+s directory_name) at command line.
With setgid the group will be ftp-ro for all of the new files and subdirectories.

I hope it will help to others who find this thread.
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
FTP User Permissions: Can I create "read-only"? HarborTech General 5 23rd February 2012 16:25
Remote: FTP User Create :: SOAP Error: directory_error_notinweb DOLARiON Developers' Forum 4 26th May 2010 14:41
pure-ftpd / MySQL on Fedora 12 - user limit Tek12 HOWTO-Related Questions 2 28th December 2009 12:51
Ruby / FastCGI Problem Chad Server Operation 1 8th March 2008 20:38
Website users? ctroyp General 25 6th January 2006 18:02


All times are GMT +2. The time now is 10:32.


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