B
B
BlagoYar Silence2021-10-16 13:40:38
Debian
BlagoYar Silence, 2021-10-16 13:40:38

Why doesn't umask work?

There is a www directory
It has a lot of subfolders I install it
on www or even on some subfolder
umask 0022
I upload a file, I get permissions
600

Why?
Or how to make all newly created / uploaded folders have 755 and files 644?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Karabanov, 2021-10-16
@karabanov

The command umaskallows you to override the mask within the current session.
umask can be set, for example, in ~/.profileand ~/.bashrc
Look in the config for the ability to configure umask

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question