Closed osalbahr closed 3 months ago
On Fedora it is shadow-utils-subid
, but I can't find something similar for Ubuntu.
[root@60c6f2bf20b5 lilipod]# dnf whatprovides getsubids
Last metadata expiration check: 0:14:04 ago on Sun Oct 8 15:17:16 2023.
shadow-utils-subid-2:4.14.0-2.fc40.i686 : A library to manage subordinate uid and gid ranges
Repo : rawhide
Matched from:
Filename : /usr/bin/getsubids
shadow-utils-subid-2:4.14.0-2.fc40.x86_64 : A library to manage subordinate uid and gid ranges
Repo : rawhide
Matched from:
Filename : /usr/bin/getsubids
Somehow, though, it looks like the uidmap
package on Debian does include getsubids
.
root@a1f4bd0a4239:~# command-not-found getsubids
Command 'getsubids' not found, but can be installed with:
apt install uidmap
root@a1f4bd0a4239:~# apt-file search getsubids
manpages-tr: /usr/share/man/tr/man1/getsubids.1.gz
uidmap: /usr/bin/getsubids
uidmap: /usr/share/man/man1/getsubids.1.gz
By looking at the Ubuntu Manpage, the package is uidmap in Ubuntu 22.04.
getsubids
is available from uidmap_1:4.13
@bookworm
but not before (in uidmap_1:4.8
@bullseye
for example).
I've this little pure bash script getsubids.sh
compiled with shc
in .local/bin/getsubids
which do the job :
#!/bin/bash
# shc -vrf getsubids.sh -o getsubids
re="^$USER:"
index=0
while IFS= read -r line || [ -n "$line" ]
do
[[ $line =~ $re ]] &&
echo "$index ${line//:/ }" &&
exit 0
index=$((index+1))
done < /etc/subuid
exit 1
but now, I've a problem with setup cgroupfs: mkdir /sys/fs/cgroup/container-xxxxxx_yyyyyy.scope: permission denied
, like here https://github.com/89luca89/lilipod/issues/11.
This issue is documented (dependency to getsubuid/gid) for the cgroup one we discuss on the other
How can I install
getsubids
on Ubuntu 22.04? I couldn't find it in the repos:As per the dependencies section, I tried to install
uidmap
but it doesn't seem to containgetsubids
either:System info:
Any suggestions?