G
G
Gena2014-07-15 10:23:32
linux
Gena, 2014-07-15 10:23:32

How to request root permissions in an application?

Actually, you need to ask the user for privilege escalation to perform the operation (For example: as Steam does during installation or Update Manager). How can this be implemented? Maybe there are some system calls for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2014-07-15
@BuriK666

Look towards any kdesu, gksu, etc.

E
EXL, 2014-07-16
@EXL

See also how Qt Installer Framework 1.5.0
works. It asks for root permissions (password entry) if you try to write something to a directory that is not writable by a regular user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question