5
5
I managed to configure my Raspberry Pi as an FTP server with ProFTPD. The only problem is, I can´t upload and rename files and Windows Explorer says:
350 File or directory exists,ready for destination name
550 Rename xyz permission denied
Now I´ve read I have to chown
this folder to the FTP user, but this does not work.
I have tried:
sudo chown -R pi /var/www (my default pi account)
sudo chown -R piftp /var/www (the ftp account)
sudo su
chown -R root /var/www
All I´m getting is
chown:changing ownership of ... : Operation not permitted
I already chmodded this directory to 777.
/var/www
is mounted from a vfat
volume on my external hard disc. Looking at it with ls -l
I see all files and folders have owner root
and group root
and all of these folders have permissions drwxr-xr-x
.
Can someone please help?
2What is the current owner of the folder? – Ramhound – 2014-03-22T15:10:46.403
The owner of www is pi – Marian Klühspies – 2014-03-22T15:26:09.933
Are you able to sudo other commands that normally require it. Its almost like the
root
doesn't even exist. – Ramhound – 2014-03-22T19:10:43.030yes I am, I was also able to change the root password – Marian Klühspies – 2014-03-23T02:29:57.583
What does
ls -l
give for the failing file or folder? And your "All I'm getting is chown:changing ownership of ... : Operation not permitted" applies to all files and folders, right? Or do some succeed? If some do succeed, is the file or folder that is failing any special? Like maybe that is a file that has been uploaded by Windows Explorer with some temporary name? – Arjan – 2014-03-23T07:59:40.560Which OS are you running on your Raspberry Pi? And what file system? (For that
/var/www
folder.) And maybe specifying the group is required in thechown
command too? – Arjan – 2014-03-23T08:06:12.997ls -l gives me root root for all folders/files. if I´m root, im not getting the permission error. the rights of these folders are drwxr-xr-x. I´m running raspbian, the file system of my external hdd which is mounted in /var/www is vfat. No it´s no file or folder from windows explorer as the upload is not permitted :( – Marian Klühspies – 2014-03-23T10:13:02.267
I've rolled back your edit; please note we're not a forum. (That's not different from Stack Overflow, which you've used a lot.) If you have additional questions, then post a new question for that. Of course, first search, as it might have been asked before. – Arjan – 2014-03-23T12:01:32.600
possible duplicate of Can't change permission/ownership/group of external hard drive on Ubuntu
– Arjan – 2014-03-23T12:02:07.913I am going to have to roll back this question myself also. If you have resolved it yourself post an answer, don't post the solution in the question, thats not how this website works. – Ramhound – 2014-03-23T13:23:12.213