:: Re: [DNG] Question: Why does "mkdir…
Forside
Slet denne besked
Besvar denne besked
Skribent: Stefan Krusche
Dato:  
Til: dng
Emne: Re: [DNG] Question: Why does "mkdir -p" produce unexpected file permissions and group
Am Samstag, 25. Januar 2020 schrieb Stefan Krusche:
> Why does group get the 's' bit and becomes 'staff'? Is this normal?
> If yes, where is it documented?


Okay, I think I found it. In:

/usr/share/doc/debian-policy/policy.html/ch-opersys.html#s9.1.2

the last paragraph says this:

"The /usr/local directory itself and all the subdirectories created by
the package should (by default) have permissions 2775 (group-writable
and set-group-id) and be owned by root:staff."

I still don't get the overall picture of what the policy for /usr/local
is. What is the difference between "below /usr/local"
and "in /usr/local" for directory "/usr/local/something"?! (as referred
to in this section of the debian policy.)

Kind regards,
Stefan