Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
root path is incomplete
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Circuitsoft2
n00b
n00b


Joined: 22 Mar 2024
Posts: 3
Location: Minnesota, USA

PostPosted: Fri Mar 22, 2024 3:56 pm    Post subject: root path is incomplete Reply with quote

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
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1902

PostPosted: Fri Mar 22, 2024 4:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Circuitsoft2
n00b
n00b


Joined: 22 Mar 2024
Posts: 3
Location: Minnesota, USA

PostPosted: Fri Mar 22, 2024 4:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1902

PostPosted: Fri Mar 22, 2024 5:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Circuitsoft2
n00b
n00b


Joined: 22 Mar 2024
Posts: 3
Location: Minnesota, USA

PostPosted: Fri Mar 22, 2024 7:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum