|
|
Subscribe / Log in / New account

Merge /bin and /sbin

Merge /bin and /sbin

Posted Jun 2, 2023 11:55 UTC (Fri) by Sesse (subscriber, #53779)
In reply to: Merge /bin and /sbin by timon
Parent article: Seeking the endgame for Debian's /usr merge

sbin isn't in normal users' PATH, though. But this sounds potentially even more painful than merging /usr :-)


to post comments

Merge /bin and /sbin

Posted Jun 2, 2023 12:48 UTC (Fri) by timon (subscriber, #152974) [Link]

Well, sbin is in the PATH of my normal user login. On my desktop system, I am both a normal user and the sysadmin -- and some executables in sbin are certainly useful without superuser privileges, and some probably even for non-admin tasks. That's why I think the distinction between bin and sbin is fuzzy in reality.

> this sounds potentially even more painful than merging /usr

When tinkering with a merged bin, the most annoying thing are duplicate names because of symlinks from bin to sbin and vice versa, e. g. sbin/ip links to bin/ip on my Debian machine, and both bin/lsmod and sbin/lsmod link to bin/kmod.

After resolving those by hand, I am able to rmdir /usr/sbin and symlink that to bin, without breaking anything. Of course, regular system updates may then break stuff in the same way as described in the article, and additionally by way of those duplicate entries overwriting each other.

Merge /bin and /sbin

Posted Jun 2, 2023 15:23 UTC (Fri) by mbunkus (subscriber, #87248) [Link] (1 responses)

Arch has merged bin & sbin, and it's fine. I'd wager that name clashes between bin & sbin happen much less often than name clashes in bin between different packages.

Merge /bin and /sbin

Posted Jun 2, 2023 21:11 UTC (Fri) by mathstuf (subscriber, #69389) [Link]

And when they do happen, it's usually something to just fix (here, by moving the "helper" to `/usr/libexec`):

https://bugzilla.redhat.com/show_bug.cgi?id=1246810


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds