in reply to mkdir with variable mask
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: mkdir with variable mask
by kreetrapper (Scribe) on Jan 27, 2009 at 07:43 UTC | |
by linuxer (Curate) on Jan 27, 2009 at 12:24 UTC |
In Section
Seekers of Perl Wisdom