Re: [CentOS] Tar of files
On 3/3/21 6:53 AM, Jerry Geis wrote: When I "tar" up an archive the files have an owner bob, when I extract that to another machine bob is there also but user number is different. So when I extract bob is no longer the owner of the files but someone else. Is there a good way to account for this ? In order to answer that question, we need to know what system is creating the tar file and what system is extracting the file. There are several formats for tar archives (see the --format option to GNU tar for a list), and tar will have different options on different platforms. This process works the way you expect, by default, on CentOS systems. I can demonstrate that by creating a CentOS container, adding a user and creating a tar archive with a file owned by that user. A new container, with users that have different numeric IDs will extract that archive and preserve the file's ownership by name and not numeric IDs: $ podman run -v $(pwd):$(pwd):z -w $(pwd) -it centos:8 [root@9d60934a7390 tartest]# useradd user1 [root@9d60934a7390 tartest]# touch user1file [root@9d60934a7390 tartest]# chown user1 user1file [root@9d60934a7390 tartest]# tar cf user1.tar user1file [root@9d60934a7390 tartest]# exit $ podman run -v $(pwd):$(pwd):z -w $(pwd) -it centos:8 [root@49a5818ef7a6 tartest]# useradd user2 [root@49a5818ef7a6 tartest]# useradd user1 [root@49a5818ef7a6 tartest]# rm user1file rm: remove regular empty file 'user1file'? y [root@49a5818ef7a6 tartest]# tar xf user1.tar [root@49a5818ef7a6 tartest]# ls -l total 12 -rw-r--r--. 1 root root 10240 Mar 3 19:21 user1.tar -rw-r--r--. 1 user1 root 0 Mar 3 19:21 user1file ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Koji packages
Am 03.03.21 um 18:48 schrieb Stephen John Smoogen: On Wed, 3 Mar 2021 at 12:40, Frederick wrote: Thank you! I am specifically looking for the dlm package that seems to be missing from the repos in 8. I went to https://git.centos.org/rpms/dlm but I cannot find the source. Is there anywhere I can get the source to build this package? Without it I cannot set up a gfs2 cluster on centos8. I've seen many discussions about RedHat having it but its not available for centos, so I just need the source so I can move forward. Any help would be greatly appreciated! I followed the directions in https://wiki.centos.org/Sources ``` $ mkdir centos-sources; cd centos-sources $ git clone https://git.centos.org/centos-git-common.git $ git clone https://git.centos.org/rpms/dlm.git -b c8 $ cd dlm $ ../centos-git-common/get_sources.sh Retrieving https://git.centos.org/sources/dlm/c8/3655865fa215e6b50e6b82ba66cb13f2d8005f67 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 100 124k 100 124k0 0 443k 0 --:--:-- --:--:-- --:--:-- 443k $ ls SOURCES/ SPECS/ $ ls SOURCES/ dlm-4.0.9.tar.gz $ ls SPECS/ dlm.spec ``` or https://vault.centos.org/centos/8/BaseOS/Source/SPackages/dlm-4.0.9-3.el8.src.rpm -- Leon ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Koji packages
Thank you! On Wed, Mar 3, 2021 at 12:49 PM Stephen John Smoogen wrote: > > On Wed, 3 Mar 2021 at 12:40, Frederick wrote: > > > Thank you! > > > > I am specifically looking for the dlm package that seems to be missing > > from the repos in 8. I went to https://git.centos.org/rpms/dlm but I > > cannot find the source. Is there anywhere I can get the source to > > build this package? Without it I cannot set up a gfs2 cluster on > > centos8. I've seen many discussions about RedHat having it but its > > not available for centos, so I just need the source so I can move > > forward. Any help would be greatly appreciated! > > > > > I followed the directions in https://wiki.centos.org/Sources > ``` > $ mkdir centos-sources; cd centos-sources > $ git clone https://git.centos.org/centos-git-common.git > $ git clone https://git.centos.org/rpms/dlm.git -b c8 > $ cd dlm > $ ../centos-git-common/get_sources.sh > Retrieving > https://git.centos.org/sources/dlm/c8/3655865fa215e6b50e6b82ba66cb13f2d8005f67 > % Total% Received % Xferd Average Speed TimeTime Time > Current > Dload Upload Total SpentLeft > Speed > 100 124k 100 124k0 0 443k 0 --:--:-- --:--:-- --:--:-- > 443k > $ ls > SOURCES/ SPECS/ > $ ls SOURCES/ > dlm-4.0.9.tar.gz > $ ls SPECS/ > dlm.spec > > > ``` > > On Mon, Mar 1, 2021 at 9:41 AM Johnny Hughes wrote: > > > > > > On 2/28/21 10:24 AM, Frederick wrote: > > > > Good Day All! > > > > > > > > I am trying to grab some packages from the Koji site. Any idea why it > > > > seems to be down and if/when it will be back? > > > > > > > > 403 Forbidden > > > > Request forbidden by administrative rules. > > > > > > > > https://koji.mbox.centos.org/pkgs/packages/ > > > > > > Access is limited to only developers for now .. it is the only > > > 'bandwidth' we have for development. > > > > > > There are plans to mirror the content and make it all available in the > > > future. > > > > > > For now all the source code is available on git.centos.org. It is where > > > all the content is built from. > > > ___ > > > CentOS mailing list > > > CentOS@centos.org > > > https://lists.centos.org/mailman/listinfo/centos > > ___ > > CentOS mailing list > > CentOS@centos.org > > https://lists.centos.org/mailman/listinfo/centos > > > > > -- > Stephen J Smoogen. > ___ > CentOS mailing list > CentOS@centos.org > https://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Koji packages
On Wed, 3 Mar 2021 at 12:40, Frederick wrote: > Thank you! > > I am specifically looking for the dlm package that seems to be missing > from the repos in 8. I went to https://git.centos.org/rpms/dlm but I > cannot find the source. Is there anywhere I can get the source to > build this package? Without it I cannot set up a gfs2 cluster on > centos8. I've seen many discussions about RedHat having it but its > not available for centos, so I just need the source so I can move > forward. Any help would be greatly appreciated! > > I followed the directions in https://wiki.centos.org/Sources ``` $ mkdir centos-sources; cd centos-sources $ git clone https://git.centos.org/centos-git-common.git $ git clone https://git.centos.org/rpms/dlm.git -b c8 $ cd dlm $ ../centos-git-common/get_sources.sh Retrieving https://git.centos.org/sources/dlm/c8/3655865fa215e6b50e6b82ba66cb13f2d8005f67 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 100 124k 100 124k0 0 443k 0 --:--:-- --:--:-- --:--:-- 443k $ ls SOURCES/ SPECS/ $ ls SOURCES/ dlm-4.0.9.tar.gz $ ls SPECS/ dlm.spec ``` On Mon, Mar 1, 2021 at 9:41 AM Johnny Hughes wrote: > > > > On 2/28/21 10:24 AM, Frederick wrote: > > > Good Day All! > > > > > > I am trying to grab some packages from the Koji site. Any idea why it > > > seems to be down and if/when it will be back? > > > > > > 403 Forbidden > > > Request forbidden by administrative rules. > > > > > > https://koji.mbox.centos.org/pkgs/packages/ > > > > Access is limited to only developers for now .. it is the only > > 'bandwidth' we have for development. > > > > There are plans to mirror the content and make it all available in the > > future. > > > > For now all the source code is available on git.centos.org. It is where > > all the content is built from. > > ___ > > CentOS mailing list > > CentOS@centos.org > > https://lists.centos.org/mailman/listinfo/centos > ___ > CentOS mailing list > CentOS@centos.org > https://lists.centos.org/mailman/listinfo/centos > -- Stephen J Smoogen. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Koji packages
Thank you! I am specifically looking for the dlm package that seems to be missing from the repos in 8. I went to https://git.centos.org/rpms/dlm but I cannot find the source. Is there anywhere I can get the source to build this package? Without it I cannot set up a gfs2 cluster on centos8. I've seen many discussions about RedHat having it but its not available for centos, so I just need the source so I can move forward. Any help would be greatly appreciated! On Mon, Mar 1, 2021 at 9:41 AM Johnny Hughes wrote: > > On 2/28/21 10:24 AM, Frederick wrote: > > Good Day All! > > > > I am trying to grab some packages from the Koji site. Any idea why it > > seems to be down and if/when it will be back? > > > > 403 Forbidden > > Request forbidden by administrative rules. > > > > https://koji.mbox.centos.org/pkgs/packages/ > > Access is limited to only developers for now .. it is the only > 'bandwidth' we have for development. > > There are plans to mirror the content and make it all available in the > future. > > For now all the source code is available on git.centos.org. It is where > all the content is built from. > ___ > CentOS mailing list > CentOS@centos.org > https://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Tar of files
On Wed, 3 Mar 2021 at 09:54, Jerry Geis wrote: > When I "tar" up an archive the files have an owner bob, > when I extract that to another machine bob is there also but user number is > different. > So when I extract bob is no longer the owner of the files but someone else. > > Is there a good way to account for this ? > User ID on one box being different to the next box ? > > I was expecting to untar and bob still be the owner . > > The system has no way of knowing that bob:uid1 and bob:uid2 are the same person and in fact on a lot of systems they are not (aka if you downloaded a tar ball from my box and it had the user bob on it.. it definitely is not your bob). The ways to do this are any of the following or a list of ones not there. 1. find ./tree_you_untarred -uid -print0 | xargs -0 chown bob2 2. su bob2 (cd /tree_place_to_untar; tar xzvf ) 3. use gnu tar's many options to create the tar file with the correct uid/gid you wanted using --owner --group (or a map if there are multiple). > Thanks, > > Jerry > ___ > CentOS mailing list > CentOS@centos.org > https://lists.centos.org/mailman/listinfo/centos > -- Stephen J Smoogen. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Tar of files
I think on linux (most systems I ran into actually), UIDs and GIDs are numerical with just a "human friendly" translation (from passwd/group. If you extract a tar file, for example, and the owner/group (numerically) does not exist on the target system, you get to see the 'old' uid/gid from the src system. On 3/3/21 8:06 AM, Bernstein, Noam CIV USN NRL (6393) Washington DC (USA) via CentOS wrote: Does anyone understand why there exists a "--numeric-owner" flag? I replied off-list with the same information as others posted here, but the existence and docs for that flag at least imply that the default is usernames, not UIDs. Noam ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Tar of files
Regular users don't have the ability to change file ownership (only group, assuming they're a member of the target group and own the file), so this is mainly a consideration if you're running tar as root. By default, if you're running as root, GNU tar assumes the --same-owner switch, which preserves the ownership in the archive. If the IDs are different, you can use --owner or --owner-map to translate the IDs. If you need to get even trickier, you can use --to-command and pass the stream to your own custom filter. On Wed, Mar 03, 2021 at 09:53:42AM -0500, Jerry Geis wrote: > When I "tar" up an archive the files have an owner bob, > when I extract that to another machine bob is there also but user number is > different. > So when I extract bob is no longer the owner of the files but someone else. > > Is there a good way to account for this ? > User ID on one box being different to the next box ? > > I was expecting to untar and bob still be the owner . > > Thanks, > > Jerry > ___ > CentOS mailing list > CentOS@centos.org > https://lists.centos.org/mailman/listinfo/centos -- -- Skylar Thompson (skyl...@u.washington.edu) -- Genome Sciences Department (UW Medicine), System Administrator -- Foege Building S046, (206)-685-7354 -- Pronouns: He/Him/His ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Tar of files
Does anyone understand why there exists a "--numeric-owner" flag? I replied off-list with the same information as others posted here, but the existence and docs for that flag at least imply that the default is usernames, not UIDs. Noam ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Tar of files
On 3/3/21 8:53 AM, Jerry Geis wrote: When I "tar" up an archive the files have an owner bob, when I extract that to another machine bob is there also but user number is different. If you pack and extract as root, then numeric UID will be the same. But on different systems there may be different usernames that have that numeric UID. Incidentally: sometimes we enable SGID bit on a directory (to have everything that is created in it inherit the group that directory belongs to). tar will be one of the tools that will break it: extracted archive will have group as it was in the archived original (numeric GID that is, if both archiving and un-archiving was performed by root). I hope, this helps. Valeri So when I extract bob is no longer the owner of the files but someone else. Is there a good way to account for this ? User ID on one box being different to the next box ? I was expecting to untar and bob still be the owner . Thanks, Jerry ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos -- Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Tar of files
either assign the same UID/GIDs on both boxes to the same user, or do a chown -R after you untar-ed it. (also, it helps to have users use the same 'moniker' cross platforms.) On 3/3/21 7:53 AM, Jerry Geis wrote: When I "tar" up an archive the files have an owner bob, when I extract that to another machine bob is there also but user number is different. So when I extract bob is no longer the owner of the files but someone else. Is there a good way to account for this ? User ID on one box being different to the next box ? I was expecting to untar and bob still be the owner . Thanks, Jerry ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] Tar of files
When I "tar" up an archive the files have an owner bob, when I extract that to another machine bob is there also but user number is different. So when I extract bob is no longer the owner of the files but someone else. Is there a good way to account for this ? User ID on one box being different to the next box ? I was expecting to untar and bob still be the owner . Thanks, Jerry ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] CentOS-announce Digest, Vol 192, Issue 1
Send CentOS-announce mailing list submissions to centos-annou...@centos.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.centos.org/mailman/listinfo/centos-announce or, via email, send a message with subject or body 'help' to centos-announce-requ...@centos.org You can reach the person managing the list at centos-announce-ow...@centos.org When replying, please edit your Subject line so it is more specific than "Re: Contents of CentOS-announce digest..." Today's Topics: 1. CESA-2021:0671 Important CentOS 7 bind Security Update (Johnny Hughes) 2. CentOS Stream Container images available on quay.io (Brian Stinson) -- Message: 1 Date: Tue, 2 Mar 2021 16:40:18 + From: Johnny Hughes To: centos-annou...@centos.org Subject: [CentOS-announce] CESA-2021:0671 Important CentOS 7 bind SecurityUpdate Message-ID: <20210302164018.ga16...@bstore1.rdu2.centos.org> Content-Type: text/plain; charset=us-ascii CentOS Errata and Security Advisory 2021:0671 Important Upstream details at : https://access.redhat.com/errata/RHSA-2021:0671 The following updated files have been uploaded and are currently syncing to the mirrors: ( sha256sum Filename ) x86_64: 1edd338d1d20b130c1a107ea59652842ef0a8167393745468301105b2a59ca6d bind-9.11.4-26.P2.el7_9.4.x86_64.rpm 1a87cf953d16581b70a51f9c131f6f714e364e0a57dee8b2856b43aad7d89104 bind-chroot-9.11.4-26.P2.el7_9.4.x86_64.rpm ee52c09ab7dca8a8e11fe87c0855b1ce38df1fdaef899e8ce50d80b72009b62b bind-devel-9.11.4-26.P2.el7_9.4.i686.rpm 5bc7e489f2286aea26973b124918a70b6f8f29e9936508ee68e5fa89b453002b bind-devel-9.11.4-26.P2.el7_9.4.x86_64.rpm 28d32718cac59baf9c4162573d291af2345e664d16de912661fa18de7157ca63 bind-export-devel-9.11.4-26.P2.el7_9.4.i686.rpm a9b560ad84f4c4da2302f2f1c1581df4d699c0e0f9cf0754e125b2bab6ea4795 bind-export-devel-9.11.4-26.P2.el7_9.4.x86_64.rpm f23ad28777ef3020a0b4c72141bc0d367c9a60a8eca144eafcef471df349d126 bind-export-libs-9.11.4-26.P2.el7_9.4.i686.rpm 6df17149302a2cb98a128880ea6df6fe1092d0cd169dda5bd470cf1dc5c73494 bind-export-libs-9.11.4-26.P2.el7_9.4.x86_64.rpm c779ed4a8b7cd8df613f47c214050d61ac25927ab97381ffb59944fb998585ff bind-libs-9.11.4-26.P2.el7_9.4.i686.rpm 43570d8e293bd93001cb8c4cac3e4b2045b3024b7f3e08f4449735bfb9d206c6 bind-libs-9.11.4-26.P2.el7_9.4.x86_64.rpm 43a8791d748c2ca3cb5e8c1b6682319313b8373bb0e84e9e545ba09dc9e093bb bind-libs-lite-9.11.4-26.P2.el7_9.4.i686.rpm 5380ad090ba99c100379b2fc1cf54a62f85cdfe390b04b6e5e0fe4c213aa4661 bind-libs-lite-9.11.4-26.P2.el7_9.4.x86_64.rpm 4cfa5141393a1004bc9d7885fee9a606293ee21216066238700f933afd5e4598 bind-license-9.11.4-26.P2.el7_9.4.noarch.rpm d97cd106cf9572dc73237ecabf174c9e7fd63f1831ecd180582edfe2ee993409 bind-lite-devel-9.11.4-26.P2.el7_9.4.i686.rpm 87c1a04fd7037d13c6be98a8a975ef7a41eec66aa9031b781b61eabe9107ce9b bind-lite-devel-9.11.4-26.P2.el7_9.4.x86_64.rpm 8df89d78d785928efa5b8d059e96ce33ffe0c9356663c9acb50ce3ec8c660d92 bind-pkcs11-9.11.4-26.P2.el7_9.4.x86_64.rpm f5a544c1c54d159d63ecf02b66555411db8230d7164937c969ee12412a7b3426 bind-pkcs11-devel-9.11.4-26.P2.el7_9.4.i686.rpm 1612a4f04271f95f905580cfc4cc94695b1a11ade17803d000750d518bc0e3ac bind-pkcs11-devel-9.11.4-26.P2.el7_9.4.x86_64.rpm 86d0b148abfa317696a046ac187cb479b242ea3f9ec769e6891130395ea172a9 bind-pkcs11-libs-9.11.4-26.P2.el7_9.4.i686.rpm 40ceb41cf108321fdafc40bff1168cbc4f3e85a9ec271d6b55e946ed83697fb7 bind-pkcs11-libs-9.11.4-26.P2.el7_9.4.x86_64.rpm b97a0e1f72d3fb43f706975f8e02ff0c130ef35fc6b4763eb18db88980fcde25 bind-pkcs11-utils-9.11.4-26.P2.el7_9.4.x86_64.rpm 235100bdba26a1af51c7f66f533d9318837d01dafa0c5e822245c8e0e5469978 bind-sdb-9.11.4-26.P2.el7_9.4.x86_64.rpm a191bcc40fb33d21a6109e116756d8999e60adb5535583f65d05f51ff3047463 bind-sdb-chroot-9.11.4-26.P2.el7_9.4.x86_64.rpm 461bf2c4280e37fa28f8577583cf56315e10dc6a8898497da766b5dffbdb1a56 bind-utils-9.11.4-26.P2.el7_9.4.x86_64.rpm Source: c499acbae99041e5bba4d447ec818d428bdcd477b7436f49c0499752925ce86b bind-9.11.4-26.P2.el7_9.4.src.rpm -- Johnny Hughes CentOS Project { http://www.centos.org/ } irc: hughesjr, #cen...@irc.freenode.net Twitter: @JohnnyCentOS -- Message: 2 Date: Tue, 2 Mar 2021 16:29:22 -0600 From: Brian Stinson To: centos-annou...@centos.org Subject: [CentOS-announce] CentOS Stream Container images available on quay.io Message-ID: Content-Type: text/plain; charset="utf-8" NOTE: This message was intended to go to centos-devel and centos-announce on 11-Feb-2021 but it only made it to centos-devel. Thanks to folks on IRC for mentioning that this never made it to the proper announcement channels. Hi folks, CentOS Stream container images are now readily available! podman pull quay.io/centos/centos:stream OR podman pull quay.io/centos/centos:stream8 ## Tags? We expect the 'stream' tag to automatically m