--- Begin Message ---
Package: libc-bin
Version: 2.36-7
Severity: normal
It seems very odd that zic is installed in /sbin/zic.
Jérémy
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable'), (101, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 6.0.0-6-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libc-bin depends on:
ii libc6 2.36-7
Versions of packages libc-bin recommends:
ii manpages 6.02-1
libc-bin suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi,
On 2023-01-03 22:39, Jérémy Lal wrote:
> Le mar. 3 janv. 2023 à 21:23, Aurelien Jarno <aurel32@debian.org> a écrit :
>
> > Hi,
> >
> > On 2023-01-03 12:18, Jérémy Lal wrote:
> > > Package: libc-bin
> > > Version: 2.36-7
> > > Severity: normal
> > >
> > > It seems very odd that zic is installed in /sbin/zic.
> >
> > Could you please elaborate? zic is primarily used for administration
> > tasks and requires write access to /usr/share/zoneinfo in its default
> > invocation.
> >
>
> I was just looking at https://bugs.debian.org/1003044
> and found out that it will call zic at some point, to be fixed.
> I had no idea it was in /sbin, because it didn't look like a root-only
> command to me.
> And when looking at other commands in /sbin, zic seems a bit to be a
> special case.
> But if you don't want to change that, that's okay for me.
Ok, thanks, closing the bug.
> >
> > Also please note that the debian package uses the same path than
> > upstream (as in glibc, tzdata, Linux man-pages), and matches what is
> > done on other SysV or BSD systems.
> >
>
> Ok, I suppose it's for historical reasons, then.
Not really. Users call it to update files in /usr/share/zoneinfo, so it
makes sense to have it in /sbin. But scripts are usually using it as
non-root with the -d option.
It's similar to mkfs.ext4 which is also located in /sbin, but when
called from scripts, it is usually used as non-root to work on files.
And that's also true for route, gdisk, modinfo and probably many others.
Regards
Aurelien
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://www.aurel32.net
--- End Message ---