[mc] mcedit
Alexander Oberhuber
lzw77rnc at gmx.at
Fri Jan 20 08:47:34 UTC 2023
mi via mc wrote at 22:09 18.01.2023 :
>It seems a root shell invoked with e.g. sudo -s takes $HOME of the
>admin calling it, and generally takes the admin env (but reducing it):
>
> From the net,
>
>$ sudo -s
>Password:
># whoami
>root
># echo $HOME
>/Users/armin
Then the cause of your problems are clear: Some of mc's config
file(s) can only be properly read when you are root.
That means these config files have the wrong owner or the wrong permissions.
Solution: use "chown" and "chmod" as root to properly own your config files.
(chown -R armin folder_with_config_files and chmod -R 777
folder_with_config_files)
More information about the mc
mailing list