Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to set umask in linux

umask # shows current octal permissions mode
umask -S # human readable notation
u=rwx, g=rx, o=rx
umask 002 # set new octal permission mode
 	  ugo
# 	 0 -> read, write and execute
#    1 -> read and write
#    2 -> read and execute
#    3 -> only read
#    4 -> write and execute
#    5 -> only write
#    6 -> only execute
# 	 7 -> no permissions
umask g+r # set global rol to read
Comment

how to set umask in bashrs in linux

cd
umask 0027 >> .bashrc
Comment

PREVIOUS NEXT
Code Example
Shell :: docker secrets max lenght 
Shell :: check space available ubuntu gui 
Shell :: cmder find parameter formate not correct 
Shell :: aws ec2 "ubuntu" "sudo yum install nginx" "No package ngix available." 
Shell :: using both ca cert and certificate between server and client 
Shell :: install scratchpad jupyter notebook 
Shell :: silent installation with powershell 
Shell :: install ripgrep redhat 8 
Shell :: go2shell settings 
Shell :: motioneyeos terminal setup 
Shell :: command prompt change directory to network drive 
Shell :: goodix debug linux 
Shell :: tor new identity command line 
Shell :: batch malware 
Shell :: how to install ruby on rails with curl 
Shell :: sns3 github 
Shell :: uaing awk to print columns from multiple files 
Shell :: git add interactively 
Shell :: zmq.hpp not found 
Shell :: openssl convert openssh to rsa 
Shell :: teletalk number check code 
Shell :: systemd stop/start sshd services 
Shell :: disk usuage 
Shell :: centos 7 install grub 
Shell :: pip install notifiy 
Shell :: get wasmtime 
Shell :: posix function on defined in php 
Shell :: git log get out hotkey 
Shell :: screen sharung zoom linux x11 
Shell :: wtmp is not readable 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =