We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2015-09-20 16:52:30 +0200

How to make your app run as root?

Hello, I am trying to make an app that will start as root user, but I am not really experienced in C++.

My binary has a sticky UID 0 and in the code setuid(0).

Can anybody help me with it?

How to make your app run as root?

Hello, I am trying to make an app that will start as root user, but I am not really experienced in C++.

My binary has a sticky UID 0 and in the code setuid(0).

And what really confuses me is that when I start the app from terminal (as nemo user) it has root privileges but when I start via desktop file, it runs as nemo user.

Can anybody help me with it?