Home arrow Journal arrow Today Quick Tip: Create Files or Directories With a Particular Read-Write Permission
Today Quick Tip: Create Files or Directories With a Particular Read-Write Permission PDF
Saturday, 30 April 2011
If we want for example to create some files or directories from command line and all of them to have Owner Read, Write and Execute permisions, Read and Write permisions for group and no permissions for others we will use umask command. After that command all files or directories created will have Owner= R W X,   Group=RW, Other= no right.

  umask 017


To use proper permissions see the next table:
umask permissions
0 - read, write, execute
1 - read, write
2 - read, execute
3 - read
4 - write, execute
5 - write
6 - execute only
7 - no rights


Last Updated ( Thursday, 12 May 2011 )
 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?