Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Apr 1999 12:38:00 +0300
From:      "Andy V. Oleynik" <andyo@prime.net.ua>
To:        Greg Lehey <grog@lemis.com>
Cc:        Keith Anderson <keith@apcs.com.au>, questions@FreeBSD.ORG
Subject:   Re: C and permissions ?
Message-ID:  <370B2777.7E213964@prime.net.ua>
References:  <Pine.BSF.3.96.990407153230.18821A-100000@localhost> <19990407151537.I2142@lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
umask.2  may be very usefull IMHO.
Greg Lehey wrote:

> On Wednesday,  7 April 1999 at 15:36:54 +1000, Keith Anderson wrote:
> >
> > I wrote some C programs that make files but need to set the permissions
> > inside the program, so the created files have the correct rw permission.
> >
> > Is there an include to handle file permissions.
>
> I think you mean a system call.  Yes, there's a system call "chmod".
> Try "man 2 chmod".
>
> Greg
> --
> When replying to this message, please copy the original recipients.
> For more information, see http://www.lemis.com/questions.html
> See complete headers for address, home page and phone numbers
> finger grog@lemis.com for PGP public key
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

--
WBW  Andy V. Oleynik  (When U work in virtual office
                       U have good chance to obtain virtual money ö%-)





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?370B2777.7E213964>