View Issue Details

IDProjectCategoryView StatusLast Update
0017122CentOS-8tarpublic2020-03-11 10:41
Reportercristiano.vitali@gmail.com 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
PlatformVmware VMOSCentosOS Version8.1
Product Version8.1.1911 
Target VersionFixed in Version 
Summary0017122: tar fail to set file permission to match user umask
DescriptionWhen 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
     --no-same-permissions
              Apply the user's umask when extracting permissions from the archive (default for ordinary users).

Steps To Reproduceextract 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
Tagscentos 8, permission

Activities

cristiano.vitali@gmail.com

cristiano.vitali@gmail.com

2020-03-11 10:41

reporter   ~0036488

Version of tar package installed
tar-2:1.30-4.el8.x86_64

Issue History

Date Modified Username Field Change
2020-03-09 14:21 cristiano.vitali@gmail.com New Issue
2020-03-09 14:21 cristiano.vitali@gmail.com Tag Attached: centos 8
2020-03-09 14:21 cristiano.vitali@gmail.com Tag Attached: permission
2020-03-11 10:41 cristiano.vitali@gmail.com Note Added: 0036488