|sudo: /home/mlxdy/.guix-home/profile/bin/sudo must be owned by uid 0
and have the setuid bit set
||Before it was working, but it stopped to working someday.
|
|In Bash and Zsh problem is fixed by typing 'source /etc/profile'. In
fish I don't know how to fix problem. It's not POSIX compilant so when I
try to type source /etc/profile it gives me error and information that I
should use 'set GUIX_PROFILE /run/current-system/profile', but this
change nothing. For example guix shell is working in all shells without
any commands. I wasn't modifying config any of these shells or sudo.
My .profile looks like this:
HOME_ENVIRONMENT=$HOME/.guix-home
. $HOME_ENVIRONMENT/setup-environment
$HOME_ENVIRONMENT/on-first-login
unset HOME_ENVIRONMENT
.zprofile:
# Set up the system, user profile, and related variables.
emulate sh -c '. /etc/profile'
# Set up the home environment profile.
emulate sh -c '. ~/.profile'
~/.config/fish/config.fish:
# if we haven't sourced the login config, do it
status --is-login; and not set -q __fish_login_config_sourced
and begin
set --prepend fish_function_path
/gnu/store/m8l3nhvjmcbavx2abnghr96x09wbvk52-fish-foreign-env-0.20230823/share/fish/functions
fenv source $HOME/.profile
set -e fish_function_path[1]
set -g __fish_login_config_sourced 1
end
I tried first command from .zprofile "||emulate sh -c '. /etc/profile'"
and it makes sudo work. But after typing '||emulate sh -c '. ~/.profile'
sudo gives error like always.
Second problem which I have is networkmanager which don't allow me to
modify any connections without root permissions so I can't even use
nm-applet in wm. I have this problem since I installed my system from
graphic installer. (supplementary-groups '("wheel" "netdev" "audio"
"video" "kvm")) My user is in these groups.
I'm Guix newbie and I was looking for answers in internet, but I
couldn't find anything useful expect that trick with /etc/profile for
sudo. I would be grateful for any answer as I want to deploy Guix system
on my laptop and other devices, but first I need to get sure that
everything is working.
Thank you in advance, mlxdy|