HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Create an FTP user read only. (http://www.howtoforge.com/forums/showthread.php?t=58559)

themark 5th September 2012 20: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.
Mark

cfoe 6th September 2012 08:57

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

till 6th September 2012 10: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 10: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 18:56

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.

pebkac 28th October 2014 19:14

But what if you want to have RO on an existing site/directory. Changing to ftp-ro will break other things.

I too need to have a RO ftp account so I can give access to developers, so they can review some code we have. How can the effectively be done?


All times are GMT +2. The time now is 20:22.

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