Answer the question
In order to leave comments, you need to log in
Why can't you write to a file even with 777 permissions?
I'm trying to mount a VPS, I created a user to see the /var/www folder via ssh using this method:
useradd sftp -d /var/www
chown -hR sftp /var/www
passwd sftp
Answer the question
In order to leave comments, you need to log in
At 777 anyone can record, see folder permissions above.
Make yourself the owner of the files.
To do this, use the chown command.
For example:
To create a developers group, use groupadd.
To add yourself to this group, use usermod
Here is an article on the topic , read it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question