Okay, so I've tried my best at finding the answer to this by searching and looking through possible duplicates, but I just can't so forgive me if it's out there somewhere anyways.
My issue is as follows. I've set the owner of /var/www
to myuser:www-data
and permissions of the folder and all (currently just the basic index.html) it's content to 750
, and Apache seems to run it as supposed, but I can't access it when I FTP into the server as the myuser
user. I mean, I can access it, but as soon as I try to edit, delete or add something I just get 500 Permission denied
, and if I try to edit the permissions I get 500 Unknown SITE command
.
Help! What do I do wrong? The idea on setting the user and group, and then the permissions as above was from a good friend of mine who is sort of an expert, but I feel like I'm bothering him when I ask so many questions, so if you can help me some more, that would be great!
I'm trying to put a backup with 4 vhosts back into the www-folder, but what I put there shouldn't be of any concern, right? That's just the confing of the vhosting later that has got anything to do with that, right?
Thanks in advance!
Added info:
I ran this:
myuser@myserver:/$ groups myuser
And got this:
myuser : myuser adm cdrom sudo dip plugdev lpadmin sambashare
Then I ran this:
myuser@myserver:/$ groups www-data
And got this:
www-data : www-data
And then this:
myuser@myserver:/var/www$ ls -l
And got this:
total 4
-rwxr-x--- 1 tjita1 www-data 177 Jan 25 17:45 index.html
Regarding the ftpserver, I didn't do anything in particular, I just installed vsftpd. Oh yeah, I also added a line in I think /etc/vsftpd.conf
or something like that, that reads something like this: chmod_enable=YES
.
Also, I can't get those 4-space-indents to work, sorry about that..
groups myuser
(as in; replace it with the username of the user) please? and alsols -l
ofwww
dir