PDA

View Full Version : play MPG on Linux with mplayer job


gp333
15th July 2006, 00:01
I need person for this small job:

I need VERY small program craeted with C/C++ for Linux 2.6 kernel:
one window what is started as root and from this window is runed .mpg file playing with mplayer but playing of MPG is runed from normal user (not from root). At same time main window of aplication all the time stay runned as root

I have advice that there are seteuid(), setegid() calls in Linux that are usually used to switch users

mplayer source: http://f5web.com/test/MPlayer-1.0pre5.tar.bz2


contact: gp@f5web.com