Is it possible for root to execute a command as non-root
Posted
by
adnan kamili
on Super User
See other posts from Super User
or by adnan kamili
Published on 2012-09-29T08:09:33Z
Indexed on
2012/09/30
3:40 UTC
Read the original article
Hit count: 486
I am root user and suppose i want to run any application as another user. is it possible, without switching to another user.
Something like
# google-chrome user=abc
I am actually executing a cli program as a non root user. I have set the sticky bit on and i am using setuid. So the program runs with root privileges. Now i am using system() with in the program to invoke gui app. But i dont want to run it as root. so i want to temporarily drop root privileges only for that call.
© Super User or respective owner