G
G
ganbatte2019-05-31 08:52:08
Access rights
ganbatte, 2019-05-31 08:52:08

How to automatically give access to the www-data file?

I am a beginner Linux server user.
I go to the server folder via ftp, and when I create files there and upload all sorts of cms systems, they swear that they don’t have rights, and how can I do something to automatically give him rights? permissions for www-data:www-data.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Wolf, 2019-05-31
@ganbatte

How to automatically give access to the www-data file?

There are several options:
1. You can log in as the www-data user and upload files under it
2. You can set the access rights to the uploaded files in such a way that other users can read (and / or write)
3. You may also using umask
UPD will help. Alternatively, after uploading the files, you can reassign their owner to www-data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question