Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Protect your files, modify the Linux value Umask     - The difference Docker save and export commands (Linux)

- VMware virtual machines to install virt-manager unable to connect to libvirt's approach (Linux)

- Linux more command Detailed (Linux)

- Ten linux version of the system (Linux)

- Monitor traffic Linux Shell Edition (Programming)

- Linux system performance monitoring with Nmon (Linux)

- Ubuntu uses conky add desktop control (Linux)

- Experience PHP 7.0 on CentOS 7.x / Fedora 21 (Server)

- Linux CentOS configuration SVN + SVN hook (Server)

- Ubuntu Froxlor Server Administration panel installation (Server)

- ORA-12537: TNS: connection closed error process (Database)

- DM9000 timing settings (Programming)

- To install Samba server on CentOS 6.6 (Server)

- Security of data to create a safe .mdb database (Linux)

- MySQL IO SSD attempt at optimization (Database)

- NaSC using simple mathematical operations on Ubuntu and Elementary OS (Linux)

- Android Studio quick overview of Gradle (Programming)

- CentOS 6.5 opens the Xmanager Remote Desktop login (Linux)

- WEB-based Android Remote Tools Python implementation (Programming)

- Why you can have JavaScript string method (Programming)

 
         
  Protect your files, modify the Linux value Umask
     
  Add Date : 2018-11-21      
         
         
         
  Any rules for the new files (including folders) Linux-based operating system adds the default permissions. For educational purposes, here are some that can be used to set file permissions mask octal values:

0- read, write, execute (rwx)
1- read and write (rw-)
2- Reading and executable (r-x)
3- read-only (r--)
4- write and executable (-wx)
5- Write Only (-w-)
6- only executable (--x)
7- no authority (---)
Umask default values ​​in almost all Linux distributions is 0022 (or 022), you can enter umask command in a terminal emulation program to view. You can also run "umask octal value mask" command (for example, umask 027) to temporarily change this value.

As you probably know, the default permissions of new files created was supposed to be 0666, the folder is 0777. The application of the above mentioned umask value obtained after 644 and 755 permissions.

Many expressed that 022 masks will bring privacy issues, meaning that the file you create other user is free to view, I thought this was very cool!

Closer to home, the user can press their wish to modify the default value of Umask, of course, we must first ensure that the modified values ​​legitimate. To modify the default values, write a new Umask values ​​in your shell configuration file or / etc / profile file.

Well, this done! From now on, the file or files on your Linux system, the newly created folder will have the permissions set correctly. However, please note the permissions for files or folders that already exist and will not be changed because of the above operations.

If you are using the command line, you can run the command ls -lah in any directory, you can see the current file permissions. In addition, the novice can easily view the file permissions, based on the GNOME desktop environment by right-clicking the file, select Properties -> Permissions tab.
     
         
         
         
  More:      
 
- pkg-config to use (Linux)
- Partition contrast manifestations under Windows and Linux (Linux)
- Linux user directory (Linux)
- Ubuntu 14.04 install AMD graphics driver is fully dual monitor solution (Linux)
- Cacti Linux-based system monitoring and alarm (Linux)
- Import and export myloader accelerate mydumper (Database)
- Xshell upload files to achieve Windows host Linux (Linux)
- Windows Desktop use VNC remote connect Linux (Linux)
- WebLogic 12c Configuration Node Manager Managed Server (Database)
- CentOS 6.5 start ActiveMQ being given to solve (Server)
- Oracle bug Ora-04043 (Database)
- Physical backup and recovery SYSTEM table space (Database)
- APT-GET commonly used Linux command (Linux)
- JavaScript property of checkbox.disabled (Programming)
- Several Methods of SSH Auto - login (Linux)
- The principle Httpclient4.4 (execution request) (Programming)
- Depth understanding of Python character set encoding (Programming)
- Ora-00439: feature not enabled: managed standby (Database)
- Using Vagrant create cross-platform development environment (Linux)
- Nginx1.8 version upgrade method AMH4.2 Free manually compile (Server)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.