file permission template
freebsd at edvax.de
Sat May 12 15:18:06 UTC 2012
On Sat, 12 May 2012 23:37:00 +0900, fake fake wrote:
> I need a sort of file permission template.
> Under some particular directory (like ~/secret), I need all those
> files (including newly creating one) mode 700.
> Is there any template-trick? Or "chmod -R 700" every time?
Depending on your shell, there is a "umask" command that
can be used as a "template". For example, if you're using
the default dialog shell csh, put the required "umask <value"
into ~/.cshrc. Note that this will cause _all_ file creations
by that user to have that predefined value.
See "man csh" for details. (In case you're using bash or a
different shell, consult the respective documentation.)
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions