[aklug] Re: Create empty file with specified permission bits

From: Jim Gribbin <jimgribbin@gmail.com>
Date: Sun Jan 02 2011 - 19:45:05 AKST

You could use "umask" to change the mask before creating the file.

http://linuxzoo.net/page/sec_umask.html

Jim G

On Sun, 2011-01-02 at 19:15 -0900, Christopher Howard wrote:
> Q: Is there a default Linux command (i.e., just a command, not a
> function in a programming language) to create an empty file with a
> specified set of permissions? I looked at TOUCH(1), but I didn't see
> anything about permission bits or a mode string.
>
> Please note, it is important that the file is /created/ with the
> specified permissions, not created with one set of permissions and
> altered to another.
>

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sun Jan 2 19:48:35 2011

This archive was generated by hypermail 2.1.8 : Sun Jan 02 2011 - 19:48:35 AKST