Re: what is umask?
"Osman" <osmansm@xxxxxxxxx> writes:
> Dear Member what is umask?
> and what is the relationship between umask and the file permission
man umask
Umask dictates the default permissions given to newly created files.
$ umask 0077
$ touch foo
foo will have -rw------- permissions
$ umask 0007
$ touch foo2
foo2 will have -rw-rw---- granting group members write access
(generally not what you want).
Best Regards,
--
Todd H.
http://www.toddh.net/
.
Relevant Pages
- Re: what is umask?
... > Dear Member what is umask? ... umask identifies which file permission bits you /don't/ ... If a program sets those bits, ... Lew Pitcher, IT Specialist, Enterprise Data Systems ... (comp.os.linux.misc) - Setting Default File Permissions on Server for Use with Secure FTP
... When users transfer files to the server using Secure FTP, ... the default file permission when using SFTP set to '755'. ... to 'umask 022'. ... Placing 'umask 022' in /etc/ssh2/ssh2_config ... (comp.security.ssh) - Umask strange behaviour 555=444 ?
... Why is umaks 654 and 644 returning the same file permission? ... would not be allowed for common files. ... why would umaks 555 produce the same result as umask 444 ?? ... (comp.os.linux.misc) - what is umask?
... Dear Member what is umask? ... and what is the relationship between umask and the file permission ... thanks for your attention ... Prev by Date: ... (comp.os.linux.misc) - Re: completely share a directory using NFS
... > umask since it might cause serious security problem somewhere else. ... group that everyone is a member of and set the SGID bit on it. ... What will happen is that new files and directories in the shared space ... project-specific directory trees. ... (comp.os.linux.networking) |
|