GNU core utilities: Difference between revisions

From Alpine Linux
(Created page with "''From [https://www.gnu.org/software/coreutils/ gnu.org]:'' ''The GNU Core Utilities (often called {{Pkg|coreutils}}) are the basic file, shell and text manipulation utilitie...")
 
No edit summary
Line 8: Line 8:


<br>
<br>
{{Expand}}


===== coreutils libc and utmps in alpine =====
===== coreutils libc and utmps in alpine =====

Revision as of 20:02, 5 January 2022

From gnu.org:

The GNU Core Utilities (often called coreutils) are the basic file, shell and text manipulation utilities of the GNU operating system. These are the core utilities which are expected to exist on every operating system.


The coreutils is used in most Linux distributions by default (which is why Linux is often refered to as GNU/linux or GNU+Linux), Alpine uses Busybox in place of the coreutils for a more ligthweight, minimalist and secure experience but the coreutils is still available on AlpineLinux if you wish to use it.


This material needs expanding ...

Please feel free to help us complete it.

coreutils libc and utmps in alpine

Some programs like wall(1) depend on a libc feature named "utmp", that cannot be implemented in libc securely. For this reason, musl (the libc that Alpine uses) does not implement utmp. Instead, it provides stubs that do nothing.

That is why programs that use utmp - such as wall, who or w - output nothing but still exit successfully. This is expected, a feature, and cannot be fixed easily.


Some have a nice solution. For example, a utmps login monitor:

apk add coreutils utmps

Note: Take into consideration that there's an alternative to coreutils named ubase (only available in edge) that provides better functionality than the built-in busybox, but less than what coreutils offers