on my server running Virtualmin GPL I have created a virtual server and a matching ftp account. When I create a FTP connection I’m not able to chmod files or directories and I also can’t upload any files… This is for every Ftp account on every virtual server.
When I’m logged in on Virtualmin as root I can upload files through the Filemanager module, but as a user I can’t. Where can I set the permissions for this?
Thanks in advance!
What error do you get when you attempt to upload files?
A user could only upload files into a dir that they are the owner of, or are part of the same group.
By default, the users home directory should allow them to upload files into it.
But, given the error, that should help track down the issue
Thanks for your comment.
The error I get in my FTP client is
Commando: STOR thomas.png
Antwoord: 550 thomas.png: Permission denied
I think I get it because I’ve uploaded a tar file to the public_html and Unpacked it as root…
How can I change the owner of the dir?
Yeah, untarring an archive as root will certainly do that
The safest way to fix it is probably to use the Webmin filemanager as root, go to that directory, and select the correct username and group to change the permissions to.
You can do that from the command line using chown -R, but you have to be super careful, chown -R makes it really simple to mess up your whole system if you were to accidentally run it in the wrong place
Thanks a lot Eric! That completely solved my problem!
I keep recieving the following message when trying to upload files to web server. I have disabled filrewall on router and windows, I have changed my home router from huawei to dlink to eliminate the firewall settings, I have allowed ports. This has only been a recent problem. I am with talk talk for work and home.
I have tried in Total Commander and Filezilla.
This is the report from Filezilla
Response: 200 Type set to A
Command: PORT 192,168,1,2,194,232
Response: 200 PORT command successful
Command: STOR artists.html
Response: 550 artists.html: Permission denied
Error: Critical file transfer error
Status: Disconnected from server
Apache Error Log
[Thu Nov 04 21:27:12 2010] [error] [client 220.127.116.11] File does not exist: /home/the…eart/public_html/Images, referer: http://www…com/layout.css