You are not logged in.

#1 2018-11-09 08:53:05

Mindelf
Member
Registered: 2018-11-09
Posts: 1

best practices when installing a program in /opt

Hi guys,

I have installed Dbeaver in /opt from a tar downloaded from the official site.
Unfortunatly, i can't change the params in Dbeaver's preferences because the file dbeaver.ini in /opt/dbeaver is only writable by root.

Can I make a chown myuser:myuser dbeaver.ini ?
Is it dangerous for security ?
Should i better make that command on the folder /opt/dbeaver ?
Should i instead make a chmod 777 on the file ? or on the folder ?

In a general manner, what is recommanded when i manually install some programs in /opt and i need the conf files be writable by non root users ?

Thanks you very much.

Offline

#2 2018-11-09 09:16:57

Piri
Member
Registered: 2018-06-02
Posts: 12

Re: best practices when installing a program in /opt

I have installed Dbeaver in /opt from a tar downloaded from the official site.

dbeaver is in the official repos. Install it from there.

i can't change the params in Dbeaver's preferences because the file dbeaver.ini in /opt/dbeaver is only writable by root.

So edit the file as root? sudo is your friend.

Can I make a chown myuser:myuser dbeaver.ini ?
Is it dangerous for security ?

One could argue about security but it's a bad idea anyway.

Should i better make that command on the folder /opt/dbeaver ?
Should i instead make a chmod 777 on the file ? or on the folder ?

No! Especially the chmod 777. NEVER EVER do chmod 777.

In a general manner, what is recommanded when i manually install some programs in /opt and i need the conf files be writable by non root users ?

Why would you need the conf files to be writable by non root users?

Offline

#3 2018-11-09 13:46:29

Muflone
Trusted User (TU)
From: Italy
Registered: 2013-10-08
Posts: 57
Website

Re: best practices when installing a program in /opt

I'll update the DBeaver package in community in the next hours. Actually is pending in the community-testing repository for some bugs in Excel export feature.

Stay tuned, in the meantime avoid to use the tar.gz package to install in /opt, it would cause you greater troubles later when you'll update the package from Pacman.

Offline

#4 2018-11-10 16:53:53

Muflone
Trusted User (TU)
From: Italy
Registered: 2013-10-08
Posts: 57
Website

Re: best practices when installing a program in /opt

Actually dbeaver works fine with JDK/JRE < 11.
In the case someone could help with Java dependencies from maven: https://github.com/dbeaver/dbeaver/issues/4593

Offline

#5 2018-11-10 18:46:57

Muflone
Trusted User (TU)
From: Italy
Registered: 2013-10-08
Posts: 57
Website

Re: best practices when installing a program in /opt

Fixed by backporting  the DataTypeConverter class.
DBeaver 5.2.4 in community-testing repository, compatible also with JDK/JRE 11.

Offline

Board footer

Powered by FluxBB