WildCoder Wrote: > Hello, > > I run slimserver with user slim and it works fine when playing > supported music formats (not converted on the server). But if I play > .ogg it plays them fine but the sox and flac converters are then > executed as root instead of the slim user. > > Is it a bug in slimserver? Or I misconfigured something? > Thanks. > > -WildCoder
I think this is because the slimserver -user flag only changes the _effective_ user, the process keeps a root UID hidden away. When it spawns new processes, these still get run as root. I can't see any reason why the both the real and effective uids shouldn't be changed: I've patched my installation and it seems to work fine, since there is nothing that slimserver has to do as root once it has started up. Doing this does fix the uid of the convertor processes, it's also much more secure. I've posted the patch to the developer forum, so it might go in sometime. -- simonkelley ------------------------------------------------------------------------ simonkelley's Profile: http://forums.slimdevices.com/member.php?userid=2886 View this thread: http://forums.slimdevices.com/showthread.php?t=18561 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/unix
