D
D
DollyPapper2020-12-12 23:44:56
linux
DollyPapper, 2020-12-12 23:44:56

QT application is run as root but not as a normal user?

Colleagues, hello. I'm trying to run vipnet client for linux normally on arch and ran into a problem. Everything starts normally from under root, but does not start from under a normal user. Everything in the log is

spoiler
12-12 23:37:49.281 94364317389456 I/int main(int, char **): [ main.cpp ]: Locale: "ru_RU"
12-12 23:37:49.281 94364317389456 I/int main(int, char **): [ main.cpp ]: Translation is loaded
12-12 23:37:49.288 94364317389456 I/Backend::Backend(QObject *): [ backend.cpp ]: region ru
12-12 23:37:49.288 94364317389456 I/Backend::Backend(QObject *): [ backend.cpp ]: starting background thread...
12-12 23:37:49.289 94364317389456 I/Backend::Backend(QObject *): [ backend.cpp ]: background thread has been started
12-12 23:37:49.304 94364317389456 E/bool Backend::startDaemon(): [ backend.cpp ]: Critical Error: ( 136 ) "Ошибка запуска сервиса"
12-12 23:37:49.304 94364317389456 I/bool Backend::startDaemon(): [ backend.cpp ]: Entered function
12-12 23:37:49.304 94364317389456 I/void Backend::setDelayedError(bool, QString): [ backend.cpp ]: Entered function with { true "DAEMON_EXEC_ERROR" }
12-12 23:37:49.304 94364317389456 I/int main(int, char **): [ main.cpp ]: Found font "/var/lib/vipnet/qt/fonts/Roboto/Roboto-LightItalic.ttf"
12-12 23:37:49.305 94364317389456 I/int main(int, char **): [ main.cpp ]: Found font "/var/lib/vipnet/qt/fonts/Roboto/Roboto-Light.ttf"
12-12 23:37:49.305 94364317389456 I/int main(int, char **): [ main.cpp ]: Found font "/var/lib/vipnet/qt/fonts/Roboto/Roboto-Italic.ttf"
12-12 23:37:49.305 94364317389456 I/int main(int, char **): [ main.cpp ]: Found font "/var/lib/vipnet/qt/fonts/Roboto/Roboto-Black.ttf"
12-12 23:37:49.306 94364317389456 I/int main(int, char **): [ main.cpp ]: Found font "/var/lib/vipnet/qt/fonts/Roboto/Roboto-BlackItalic.ttf"
12-12 23:37:49.306 94364317389456 I/int main(int, char **): [ main.cpp ]: Found font "/var/lib/vipnet/qt/fonts/Roboto/Roboto-MediumItalic.ttf"
12-12 23:37:49.306 94364317389456 I/int main(int, char **): [ main.cpp ]: Found font "/var/lib/vipnet/qt/fonts/Roboto/Roboto-BoldItalic.ttf"
12-12 23:37:49.306 94364317389456 I/int main(int, char **): [ main.cpp ]: Found font "/var/lib/vipnet/qt/fonts/Roboto/Roboto-Bold.ttf"
12-12 23:37:49.306 94364317389456 I/int main(int, char **): [ main.cpp ]: Found font "/var/lib/vipnet/qt/fonts/Roboto/Roboto-Thin.ttf"
12-12 23:37:49.307 94364317389456 I/int main(int, char **): [ main.cpp ]: Found font "/var/lib/vipnet/qt/fonts/Roboto/Roboto-Medium.ttf"
12-12 23:37:49.307 94364317389456 I/int main(int, char **): [ main.cpp ]: Found font "/var/lib/vipnet/qt/fonts/Roboto/Roboto-ThinItalic.ttf"
12-12 23:37:49.307 94364317389456 I/int main(int, char **): [ main.cpp ]: Found font "/var/lib/vipnet/qt/fonts/Roboto/Roboto-Regular.ttf"


According to the description, I understand that some service cannot start, but which one - no idea. It is also obvious that the matter is in the rights, because. under root everything works ok.
How to find out which service cannot start? What utilities can still see the startup process from and to? strace didn’t give me anything useful (probably there is an error there, but I can’t think of it and see what I need)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2020-12-13
@jcmvbkbc

strace didn’t give me anything useful (probably there is an error there, but I can’t think of it and see what I need)

Start by comparing the logs strace -f -v -e execve,exit,exit_groupwhen you run as root and as a regular user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question