Date: Wed, 07 Apr 1999 22:53:02 +1000 From: Greg Black <gjb@comkey.com.au> To: Keith Anderson <keith@apcs.com.au> Cc: questions@FreeBSD.ORG Subject: Re: C and permissions ? Message-ID: <19990407125303.15796.qmail@alpha.comkey.com.au> In-Reply-To: <Pine.BSF.3.96.990407153230.18821A-100000@localhost> of Wed, 07 Apr 1999 15:36:54 %2B1000 References: <Pine.BSF.3.96.990407153230.18821A-100000@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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. If you're talking about the permissions at the time of creation of the files, read the man pages for umask(2) and open(2). If you want to fix permissions on existing files, then you'll need chmod(2). -- Greg Black <gjb@acm.org> 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?19990407125303.15796.qmail>