You are not logged in.

#1 2023-03-16 12:25:59

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,393

[SOLVED] sudo su doesn't load root zsh configs

root's zsh won't load zsh configs.
sudo -i or sudo -l does the job but then it changes to /root directory.
sudo  su then source /etc/profile then zsh does it, but i want to automate it, which i can't do with sudo su -c because it exits after.
thanks

Last edited by jl2 (2023-03-16 17:56:31)


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#2 2023-03-16 14:23:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,358

Re: [SOLVED] sudo su doesn't load root zsh configs

What wrong w/ "sudo zsh -l"?

Offline

#3 2023-03-16 17:56:10

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,393

Re: [SOLVED] sudo su doesn't load root zsh configs

Thx, wouldn't have got on it myself!


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

Board footer

Powered by FluxBB