View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0017122||CentOS-8||tar||public||2020-03-09 14:21||2020-03-11 10:41|
|Platform||Vmware VM||OS||Centos||OS Version||8.1|
|Summary||0017122: tar fail to set file permission to match user umask|
|Description||When extracting file from an archive (compressed or not) the files are restored keeping the orignal permission and not the user umask.|
Also specifiying the option --no-same-permissions files are restored with original permissions.
If UMASK of the user executing the command are more restrictive than the permission of the file on the archive then the user umask is being applied to the file.
According to the man page I would expect user umask is applied by default to all files and folder
Apply the user's umask when extracting permissions from the archive (default for ordinary users).
|Steps To Reproduce||extract a tar archive that contain file with 600 permission with a user with umask 0002. I've tried with esx log bundle which is collected with file with permission 600|
|Tags||centos 8, permission|