E
E
Evgeny Ivanov2016-08-25 09:34:11
linux
Evgeny Ivanov, 2016-08-25 09:34:11

Why there are no rights to create a folder/file?

Installed linux debian + apache muscle php. Installed vsftpd.
Connected from the console.
1) Created user user. I gave him a password.
2) Edited the vsftpd config (anonymus_enable=nolocal_enable=yes). Restarted the vsftpd service.
3) Executed commands

sudo chown -R user:users /var/www/ 
sudo chmod 755 /var/www/

Filezilla connected via ftp as user user. Moved to the /var/www/ folder.
I'm trying to create a folder / file there - Filezilla writes - Answer: 550 Permission denied.
That is, it says that there is no permission.
But I appointed myself the owner of this folder. And he gave rights 755, which allow even a group to record (in theory, 755 was enough)
Why are there no rights to create a folder / file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Ivanov, 2016-08-25
@logpol32

Earned.
Changed write_enable=yes in vsftpd config

C
CityCat4, 2016-08-25
@CityCat4

Because the user on behalf of which vsftpd is running - it is unlikely that it is running as root, probably drops privileges, I don't use it - it does not have write permissions to the /var/www directory, it is not running from the user user :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question