
27th October 2011, 15:53
|
|
Junior Member
|
|
Join Date: Oct 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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?).
|

27th October 2011, 16:21
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,181 Times in 3,200 Posts
|
|
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.
|

27th October 2011, 16:38
|
|
Junior Member
|
|
Join Date: Oct 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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
|

27th October 2011, 16:45
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,181 Times in 3,200 Posts
|
|
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.
|
|
The Following User Says Thank You to till For This Useful Post:
|
|

27th October 2011, 16:58
|
|
Junior Member
|
|
Join Date: Oct 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by till
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/*
|

27th October 2011, 17:08
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,181 Times in 3,200 Posts
|
|
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
|

27th October 2011, 17:15
|
|
Junior Member
|
|
Join Date: Oct 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
I got this when I tried like this :
chown: cannot access `/var/www/www.exemplo.com.br/web/*': No such file or directory
|

27th October 2011, 17:26
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,181 Times in 3,200 Posts
|
|
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.
|

27th October 2011, 17:37
|
|
Junior Member
|
|
Join Date: Oct 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Sure how stupid I'm, theres no www
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 07:30.
|
Recent comments
7 hours 13 min ago
10 hours 8 min ago
11 hours 22 min ago
12 hours 46 min ago
14 hours 24 min ago
15 hours 52 min ago
17 hours 6 min ago
1 day 9 hours ago
1 day 9 hours ago
1 day 13 hours ago