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 27th October 2011, 15:53
flynns.br flynns.br is offline
Junior Member
 
Join Date: Oct 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Exclamation FTP user with read - write access [HELP]

Hello guys this is my first post in this forum, and I'm new to ISPconfig, my question is, when I add a ftp-user for my client, they can log in but they can't write the files, they have read-only access to their files, how can I possibly solve this, i try to google it but din't find anything that helped me, so I dicided to post it here.

ps. I installed IPSconfig 3 on a ubuntu 10.04, I've followed the perfect server ispconfig3 at howtoforge,(i cloudn't set quota, could be this?).
Reply With Quote
Sponsored Links
  #2  
Old 27th October 2011, 16:21
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,034
Thanks: 826
Thanked 5,382 Times in 4,229 Posts
Default

Where do you try to upload files by FTP? Upload is only possible to the "web" directory as this is the directory weher html and php files are stored for the website.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 27th October 2011, 16:38
flynns.br flynns.br is offline
Junior Member
 
Join Date: Oct 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Sure, i have already put the files in there with root access, but when i login with the client account i can't write on the directory
Reply With Quote
  #4  
Old 27th October 2011, 16:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,034
Thanks: 826
Thanked 5,382 Times in 4,229 Posts
Default

Quote:
Sure, i have already put the files in there with root access
Ahh, ok, so that the problem. FTP users can not upload or change files when you uploaded them as root user. The root user is the administrative user of a Linux server, files that are uploaded by him vcan not be changed by normal users. To fix this, you have to chown all files and folders recursively to the web user and client group of this website.

Example:

chown -R web1:client1 /var/www/www.domain.tld/web/*

replace web1 with the web user that owns the website and client1 with the group that owns the website. You can find client and group on the options tab of the website settings.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
flynns.br (27th October 2011)
  #5  
Old 27th October 2011, 16:58
flynns.br flynns.br is offline
Junior Member
 
Join Date: Oct 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
Ahh, ok, so that the problem. FTP users can not upload or change files when you uploaded them as root user. The root user is the administrative user of a Linux server, files that are uploaded by him vcan not be changed by normal users. To fix this, you have to chown all files and folders recursively to the web user and client group of this website.

Example:

chown -R web1:client1 /var/www/www.domain.tld/web/*

replace web1 with the web user that owns the website and client1 with the group that owns the website. You can find client and group on the options tab of the website settings.
Thanks man you are a life saver !!!!! it worked like a charme, I just had to change the comand like this:

chown -R web1:client1 /var/www/clients/client1/web1/*

Reply With Quote
  #6  
Old 27th October 2011, 17:08
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,034
Thanks: 826
Thanked 5,382 Times in 4,229 Posts
Default

The path /var/www/www.domain.tld/web/ would have worked as well, because /var/www/www.domain.tld/web/ is a symlink to /var/www/clients/client1/web1/. Its just easier to navigate and remember for the admin on the shell
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 27th October 2011, 17:15
flynns.br flynns.br is offline
Junior Member
 
Join Date: Oct 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I got this when I tried like this :

chown: cannot access `/var/www/www.exemplo.com.br/web/*': No such file or directory
Reply With Quote
  #8  
Old 27th October 2011, 17:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,034
Thanks: 826
Thanked 5,382 Times in 4,229 Posts
Default

Then the path might be just:

/var/www/exemplo.com.br/web/*

You can see the paths of existing websites by executing:

ls

in the /var/www directory.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 27th October 2011, 17:37
flynns.br flynns.br is offline
Junior Member
 
Join Date: Oct 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Sure how stupid I'm, theres no www
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
Failed during pvmove, howto: set up software raid 1 on running LVM system sbh77 HOWTO-Related Questions 2 8th October 2010 00:11
Vhosts...conf not synced to changes crypted General 50 24th April 2010 00:54
Spamsnake - Problem with spamassassin, FuzzyOcr and MySQL debuguser HOWTO-Related Questions 6 16th September 2008 18:37
Howto Switch the ftp folder that a user has access to? cyelinek HOWTO-Related Questions 1 4th April 2007 09:43
Need to setup access to particular directory for particula FTP user. kanour Installation/Configuration 1 6th August 2006 13:57


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


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