I was wondering if it is possible to use all my configuration files even when starting some software with the
For example when I lauch
micro text editor.
It uses my
But when I start
sudo micro somefile
Is this something that has to be configured “per application”?
Also is this kind of approach that I want to achieve a severe security risk?
If it is of any importance I use
You could try using
If that doesn’t work, it may be
micro looking at who the user is and then grabbing that users config.
In the case of micro, it is probably safe to do something like:
sudo ln -s /home/vlkon/.config/micro /root/.config/micro
It could be depending on what application you are using with sudo. In the case of micro I don’t think this would be a major risk.
I will try that next time I mess with sudo. It’s not so often.
Micro was just an example. I just didn’t know if there is a global setting for
sudo or not. Exspecially something that would be preserved when I reinstall the system (/root directory isn’t).