|P is for Practical|
Re: mkdir with variable maskby ctilmes (Priest)
|on Jan 26, 2009 at 15:46 UTC||Need Help??|
I want to create a directory and give it the same permissions as its parent.
Just to go back a step... Why do you want to give it the same permissions as its parent?
Not to say you don't have a good reason, but in general things just work as they ought if you just make the directory and let the OS follow the user's umask and make the directory with defaults.
By explicitly setting permissions, you are often overriding things that the OS and user have set.