HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   General (
-   -   Create an FTP user read only. (

themark 5th September 2012 19:07

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.

cfoe 6th September 2012 07:57

I dont think that is possible with the current ISPConfig.

Maybe there is something to be done in the pureftpd config file.

till 6th September 2012 09:04

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).

themark 6th September 2012 09:52

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? :-)

zion 6th March 2014 17:56

Same problem here with www-data (uid 33) when try FTP login:

Answer: 331 User demo2 OK. Password required
Command: PASS **************
Answer: 530 Sorry, but I can't trust you
I'v found this:

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.

All times are GMT +2. The time now is 00:02.

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