if in Linux my permissions are 777 and I umask 020 what are my permissions now?
if in Linux my permissions are 666 and I umask 022 what are my permissions now?
Answer)
if your permission is 777 and umask value 020 is subtracted, so it goes to 757. And this 757 will be applied on directory.
And if your permission is 666 then umask value is 022 is subtracted, then 644 is your permission for files.
777 is the default permission for directories from which the umask value is subtracted and assign to directory.
Same way 666 is the default permission for file, from which the umask value is subtracted and assign to a file.
There is no way to assign x(execute) permission for a file, when created or by default but it is possible for directory.
Get Answers For Free
Most questions answered within 1 hours.