externpro / buildpro

build images for projects that use externpro
MIT License
2 stars 1 forks source link

owner:group on tar extracted packages #55

Closed smanders closed 1 year ago

smanders commented 1 year ago

currently a tar extracted package has owner:group from what appears to be from the build

smanders@bpbld23-04:/bpvol/buildpro (dev)
$ ls -al /opt/extern/* /usr/local/bin/doxygen 
-rwxrwxr-x 1 1000 1000 35055328 Dec 29  2016 /usr/local/bin/doxygen

/opt/extern/CRTool:
total 1036
drwxr-xr-x 2 root  root     4096 Sep 13 12:49 .
drwxr-xr-x 1 root  root     4096 Sep 13 12:54 ..
-rw-r--r-- 1 85428 users      76 Jul 22  2020 .crtoolrc
-rwxr-xr-x 1 85428 users 1044280 Jul 22  2020 CRTool
-rw-r--r-- 1 85428 users    1517 Jul 22  2020 Sectigo.cer

/opt/extern/CRToolImpl-22.03:
total 90440
drwxr-xr-x   3 root root     4096 Sep 13 12:53 .
drwxr-xr-x   1 root root     4096 Sep 13 12:54 ..
-rwxr-xr-x   1 1000 1000  7125512 Oct 17  2022 CRTool
-rwxr-xr-x   1 1000 1000  5904880 Oct 17  2022 CopyrightChecker
-rwxr-xr-x   1 1000 1000  2684480 Sep 28  2022 clang-format
-rwxr-xr-x   1 1000 1000   295304 Oct 17  2022 cmakeify
-rwxr-xr-x   1 1000 1000 76571464 Sep 28  2022 node
drwxr-xr-x 178 1000 1000     4096 Oct 17  2022 node_modules

/opt/extern/SDLPluginSDK-v3.4.6.0-gcc931-64-Linux:
total 32
drwxr-xr-x 7 root     root     4096 Sep 13 12:53 .
drwxr-xr-x 1 root     root     4096 Sep 13 12:54 ..
-rw-r--r-- 1 smanders smanders  192 Jan 18  2023 SDLPluginSDK_v3.4.6.0-gcc931-64.txt
drwxrwxr-x 2 smanders smanders 4096 Jan 18  2023 bin
drwxrwxr-x 3 smanders smanders 4096 Jan 18  2023 doc
drwxrwxr-x 3 smanders smanders 4096 Jan 18  2023 include
drwxrwxr-x 3 smanders smanders 4096 Jan 18  2023 lib
drwxrwxr-x 7 smanders smanders 4096 Jan 18  2023 share

/opt/extern/externpro-23.03-gcc931-64-Linux:
total 36
drwxr-xr-x  6 root     root      4096 Sep  6 17:03 .
drwxr-xr-x  1 root     root      4096 Sep 13 12:54 ..
drwxrwxr-x  2 smanders smanders  4096 Sep  6 13:42 bin
-rw-rw-r--  1 smanders smanders   232 Sep  6 12:31 externpro_23.03-gcc931-64.txt
drwxrwxr-x 42 smanders smanders  4096 Sep  6 13:43 include
drwxrwxr-x  3 smanders smanders 12288 Sep  6 13:42 lib
drwxrwxr-x  6 smanders smanders  4096 Sep  6 13:43 share

/opt/extern/internpro-23.05-gcc931-64-Linux:
total 28
drwxr-xr-x  6 root     root     4096 Sep 13 12:54 .
drwxr-xr-x  1 root     root     4096 Sep 13 12:54 ..
drwxrwxr-x  2 smanders smanders 4096 Aug  1 10:40 bin
drwxrwxr-x 10 smanders smanders 4096 Aug  1 10:40 include
-rw-rw-r--  1 smanders smanders  204 Aug  1 09:31 internpro_23.05-gcc931-64.txt
drwxrwxr-x  2 smanders smanders 4096 Aug  1 10:40 lib
drwxrwxr-x  3 smanders smanders 4096 Aug  1 10:40 share

/opt/extern/webpro-23.09-gcc931-64-Linux:
total 100
drwxr-xr-x 6 root root  4096 Sep 13 12:54 .
drwxr-xr-x 1 root root  4096 Sep 13 12:54 ..
drwxrwxr-x 2 1000 1000  4096 Jul 10 10:14 bin
drwxrwxr-x 4 1000 1000  4096 Jul 10 10:14 maps
drwxrwxr-x 4 1000 1000  4096 Jul 10 10:14 share
-rw-rw-r-- 1 1000 1000   196 Jul 10 10:05 webpro_23.09-gcc931-64.txt
drwxrwxr-x 2 1000 1000 77824 Jul 10 10:14 yarn-offline-mirror

it would be nice for these to be owner:group of root:root

smanders commented 1 year ago

completed with commit to dev branch referenced above

after, commit...

smanders@bpbldlatest:/bpvol/buildpro (dev)
$ ls -al /opt/extern/* /usr/local/bin/doxygen 
-rwxrwxr-x 1 root root 35055328 Dec 29  2016 /usr/local/bin/doxygen

/opt/extern/CRTool:
total 1036
drwxr-xr-x 2 root  root     4096 Sep 13 16:26 .
drwxr-xr-x 1 root  root     4096 Sep 13 16:31 ..
-rw-r--r-- 1 85428 users      76 Jul 22  2020 .crtoolrc
-rwxr-xr-x 1 85428 users 1044280 Jul 22  2020 CRTool
-rw-r--r-- 1 85428 users    1517 Jul 22  2020 Sectigo.cer

/opt/extern/CRToolImpl-22.03:
total 90436
drwxr-xr-x   3 root root     4096 Sep 13 16:30 .
drwxr-xr-x   1 root root     4096 Sep 13 16:31 ..
-rwxr-xr-x   1 1000 1000  7125512 Oct 17  2022 CRTool
-rwxr-xr-x   1 1000 1000  5904880 Oct 17  2022 CopyrightChecker
-rwxr-xr-x   1 1000 1000  2684480 Sep 28  2022 clang-format
-rwxr-xr-x   1 1000 1000   295304 Oct 17  2022 cmakeify
-rwxr-xr-x   1 1000 1000 76571464 Sep 28  2022 node
drwxr-xr-x 178 1000 1000     4096 Oct 17  2022 node_modules

/opt/extern/SDLPluginSDK-v3.4.6.0-gcc931-64-Linux:
total 32
drwxr-xr-x 7 root root 4096 Sep 13 16:30 .
drwxr-xr-x 1 root root 4096 Sep 13 16:31 ..
-rw-r--r-- 1 root root  192 Jan 18  2023 SDLPluginSDK_v3.4.6.0-gcc931-64.txt
drwxrwxr-x 2 root root 4096 Jan 18  2023 bin
drwxrwxr-x 3 root root 4096 Jan 18  2023 doc
drwxrwxr-x 3 root root 4096 Jan 18  2023 include
drwxrwxr-x 3 root root 4096 Jan 18  2023 lib
drwxrwxr-x 7 root root 4096 Jan 18  2023 share

/opt/extern/externpro-23.03-gcc931-64-Linux:
total 36
drwxr-xr-x  6 root root  4096 Sep 13 16:02 .
drwxr-xr-x  1 root root  4096 Sep 13 16:31 ..
drwxrwxr-x  2 root root  4096 Sep  6 13:42 bin
-rw-rw-r--  1 root root   232 Sep  6 12:31 externpro_23.03-gcc931-64.txt
drwxrwxr-x 42 root root  4096 Sep  6 13:43 include
drwxrwxr-x  3 root root 12288 Sep  6 13:42 lib
drwxrwxr-x  6 root root  4096 Sep  6 13:43 share

/opt/extern/internpro-23.05-gcc931-64-Linux:
total 28
drwxr-xr-x  6 root root 4096 Sep 13 16:31 .
drwxr-xr-x  1 root root 4096 Sep 13 16:31 ..
drwxrwxr-x  2 root root 4096 Aug  1 10:40 bin
drwxrwxr-x 10 root root 4096 Aug  1 10:40 include
-rw-rw-r--  1 root root  204 Aug  1 09:31 internpro_23.05-gcc931-64.txt
drwxrwxr-x  2 root root 4096 Aug  1 10:40 lib
drwxrwxr-x  3 root root 4096 Aug  1 10:40 share

/opt/extern/webpro-23.09-gcc931-64-Linux:
total 100
drwxr-xr-x 6 root root  4096 Sep 13 16:31 .
drwxr-xr-x 1 root root  4096 Sep 13 16:31 ..
drwxrwxr-x 2 root root  4096 Jul 10 10:14 bin
drwxrwxr-x 4 root root  4096 Jul 10 10:14 maps
drwxrwxr-x 4 root root  4096 Jul 10 10:14 share
-rw-rw-r-- 1 root root   196 Jul 10 10:05 webpro_23.09-gcc931-64.txt
drwxrwxr-x 2 root root 77824 Jul 10 10:14 yarn-offline-mirror
smanders commented 1 year ago

discussion on tar --no-same-owner https://unix.stackexchange.com/questions/125419/modify-file-ownership-for-files-inside-tar-archive