R
R
Reshat2014-08-11 19:40:23
Windows
Reshat, 2014-08-11 19:40:23

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

I went via ssh, uploaded a script (SXD), but now it turned out that there is no write access to files, even if I set 777. Where to dig?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sanan Yuzb, 2016-06-04
@yarkov

Type in terminalsudo update-grub

S
Sergey, 2014-08-11
@butteff

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 question

Ask a Question

731 491 924 answers to any question