HP3000-L Archives

November 1998, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Date:
Wed, 11 Nov 1998 13:45:05 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
John Zoltak writes:
>
> Lee,
>
> Right out of LaserRom is the text about cmask.
>
> umask
>
> Sets a process's file mode creation mask.
>
> Syntax
>
>      #include <sys/types.h>
>      #include <sys/stat.h>
>      mode_t umask (mode_t cmask);

Or from SH.HPBIN.SYS:

        umask cmask

Or from CI.PUB.SYS:

        :XEQ UMASK.HPBIN.SYS cmask

Where cmask corresponds to the file permissions you want to *deny* by default.
I like a cmask of 022, which denies write access to anybody but me.  You might
prefer 077 which denies all access to anybody but you.
--
Mark Bixby                      E-mail: [log in to unmask]
Coast Community College Dist.   Web: http://www.cccd.edu/~markb/
District Information Services   1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
Technical Support               Voice: +1 714 438-4647
"You can tune a file system, but you can't tune a fish." - tunefs(1M)

ATOM RSS1 RSS2