View previous topic :: View next topic |
Author |
Message |
Circuitsoft2 n00b
Joined: 22 Mar 2024 Posts: 3 Location: Minnesota, USA
|
Posted: Fri Mar 22, 2024 3:56 pm Post subject: root path is incomplete |
|
|
Code: | alex@akadesk ~ $ echo $PATH | tr ':' '\n'
/usr/local/sbin
/usr/local/bin
/usr/bin
/opt/bin
/usr/lib/llvm/17/bin
/usr/lib64/opencascade/bin
alex@akadesk ~ $ sudo -i
Password:
akadesk ~ # echo $PATH | tr ':' '\n'
/usr/local/sbin
/usr/local/bin
/usr/bin
/opt/bin
/usr/lib/llvm/17/bin
/usr/lib64/opencascade/bin
akadesk ~ # login
akadesk login: root
Password:
Last login: Tue Mar 19 11:46:13 CDT 2024 on tty2
root@akadesk ~ # echo $PATH | tr ':' '\n'
/usr/local/sbin
/usr/local/bin
/usr/bin
/opt/bin
/usr/lib/llvm/17/bin
/usr/lib64/opencascade/bin |
As you can see, the root path is the same as the user path. This is a relatively fresh install of Gentoo, with the default/linux/amd64/17.1/desktop/systemd/merged-usr profile. Where should the root path come from? |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1902
|
Posted: Fri Mar 22, 2024 4:00 pm Post subject: |
|
|
What are you expecting to exist? If it is /sbin or /usr/sbin, those are gone in merged-usr (and symlinked for backwards compatibility) |
|
Back to top |
|
|
Circuitsoft2 n00b
Joined: 22 Mar 2024 Posts: 3 Location: Minnesota, USA
|
Posted: Fri Mar 22, 2024 4:19 pm Post subject: |
|
|
I would expect either /sbin or /usr/sbin. Given that only /usr/local/sbin is in the path, any ebuild that uses usermod or setcap fails. |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1902
|
Posted: Fri Mar 22, 2024 5:37 pm Post subject: |
|
|
Circuitsoft2 wrote: | I would expect either /sbin or /usr/sbin. Given that only /usr/local/sbin is in the path, any ebuild that uses usermod or setcap fails. |
/sbin and /usr/sbin have been moved to /usr/bin in merged-usr which also merges the former paths. All tools should exist in /usr/bin with /sbin and /usr/sbin being symlinks to /usr/bin.
If there issues with ebuilds and merge-usr, then show evidence or, ultimately, file a bug. |
|
Back to top |
|
|
Circuitsoft2 n00b
Joined: 22 Mar 2024 Posts: 3 Location: Minnesota, USA
|
Posted: Fri Mar 22, 2024 7:51 pm Post subject: |
|
|
Alright, that would be my fault for not actually reading the news item for merged-usr, and manually moving things and making symlinks, but not not realizing that /sbin and /bin are also together. I've installed/run merge-usr and the problem is gone. |
|
Back to top |
|
|
|