On Fri, Jan 03, 2003 at 01:39:47PM +0800, Holden Hao wrote: > How are default file permissions created? Which application is > responsible for it?
A mask set by umask(2) is consulted by open(2) to set initial file permissions on newly-created files in the UNIX environment. This is the case most of the time, except I believe with ACLs, where you can specify more extensive defaults per directory. > I already know about setgid or setuid using chmod to implement default > ownerships to a directory. I know little about umask but know that I > can use it to set default file permissions when mounting filesystems. > Any good site discussing this matter in detail? The manual page for mount(8) seems to have decent information on the umask option. The umask(2) manual page has information as well. Aside from the per-mount option, you can use the umask command to set the umask of a session. --> Jijo -- Federico Sevilla III : http://jijo.free.net.ph : When we speak of free Network Administrator : The Leather Collection, Inc. : software we refer to GnuPG Key ID : 0x93B746BE : freedom, not price. _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
