How do we launch geany as root with the same geany setting of non-root / normal user geany
tried to do such and kept on being end up with another 'strange' geany
How actually correct way to launch the same geany, but now it's as root
On Sat, 14 Aug 2021 at 20:45, Budi budikusasi@gmail.com wrote:
How do we launch geany as root with the same geany setting of non-root / normal user geany
tried to do such and kept on being end up with another 'strange' geany
How actually correct way to launch the same geany, but now it's as root
First of all note it is discouraged to run Geany as root, it is an application that runs arbitrary commands and accesses files and as such is a significant risk running it as root, and every file you touch will end up owned by root, which is often an issue after you exit root.
That includes any config, or project files you use from root, so sharing them with a non-root Geany is not possible.
Also Geany will refuse to open a socket of another user, so root can't use Geany where the socket would be in the same place as an existing Geany.
Since you have provided no information how you run Geany as root nor described what "strange" means and we can't see your system, it is not possible to help more.
In general it is better to not use Geany or any other complex IDE to edit files as root, use a simple editor or if it is a complex file and you really want to use Geany, open the file in a user Geany, save it elsewhere (eg /tmp) and then copy it as root.
Cheers Lex
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On 2021-08-14 4:32 a.m., Lex Trotman wrote:
In general it is better to not use Geany or any other complex IDE to edit files as root,
In general it is better to not use Geany or any other complex IDE to
edit files as root
I wonder if the dangers are exaggerated. Coming from DOS, I was used to owning my own system, got tired of 'su root' every time I wanted to tinker with something, and for the last 8 years I've run as root all the time. I've had one issue. I resent programs that try to stop me.
Hi,
On 14.08.21 16:19, Ray Andrews wrote:
wonder if the dangers are exaggerated. Coming from DOS, I was used to owning my own system, got tired of 'su root' every time I wanted to tinker with something, and for the last 8 years I've run as root all the time. I've had one issue. I resent programs that try to stop me.
Well.... At least from my end: Editing a file as root via UI usually (not everyone, not always…) is a thing, beginners want to do. I totally understand this, that's being said. But this might end up setting to run Geany as root always which will might cause unreadable files or maybe unwanted edits in system files etc. If you always cross a street at red traffic lights you will stop being careful at some point.
Just my 2ct ;)
.f
On 14.08.21 12:45, Budi wrote:
How do we launch geany as root with the same geany setting of non-root / normal user geany
tried to do such and kept on being end up with another 'strange' geany
How actually correct way to launch the same geany, but now it's as root
The correct way ist: Don't
The working way: geany -c /home/of/your/user/.config/geany
(Really --most liekly you are doing dangerous stuff here. Please be very carefully)
Cheers, Frank