From: Erwin M. [G. Net.Solutions] <e.m...@ge...> - 2002-07-11 09:01:57
|
ke...@ce... wrote: > ______________________________________________________________ > >>[...] >> >>>It works, but only root can start programs using this irexec. I'd >>>like all users to be able to start programs using this irexec. >>>Every user can start irexec from terminal and it works good but >>>they can't use irexec started from rc.local. >>> >>>Does anybody know the solution? >> >>Hm, are you looking for the 'su' command? Try: >> >>man su >> >>Christoph >> > > > su command switches user. I know that it is possible to start some > program as another user USER with > > su -c program USER > > but I think it must be done for every user USER, mustn't it? I'd > like to start one irexec for all users. > > Petr if you're using a sysV compatible linux, try adding sth. like that to the bottom of your /etc/rc.d/rc.local either: /usr/local/bin/irexec --daemon or, more complex (may not work that way, this is just for having the [OK] / [FAILED] boxes at the end of the line): LIRC_START=3D"starting lirc..." echo $LIRC_START /usr/local/bin/irexec --daemon && success $LIRC_START || failure $LIRC_ST= ART hope this helps, eabin > > -------------------- > Centrum pro milovn=EDky pen=ECz http://finance.centrum.cz > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > PC Mods, Computing goodies, cases & more > http://thinkgeek.com/sf --=20 _____________________________________________________________________ Erwin Mascher email. e.m...@ge... Gentics Net.Solutions tel. +43 1 710 99 04 Barmherzigengasse 17/5/2 fax. +43 1 710 99 04 4 1030 Vienna, Austria web. http://www.gentics.com Der Inhalt dieser E-Mail ist eine pers=F6nliche und vertrauliche Information und nur f=FCr den Gebrauch des oben angef=FChrten Adressaten bestimmt. Sollten Sie nicht der vorgesehene Empf=E4nger sein, ersuchen wir Sie h=F6flich, sich sofort mit uns ins Einvernehmen zu setzen und die E-Mail zu vernichten. F=FCr elektronisch =FCbermittelte Ausk=FCnfte und Ratschl=E4ge, die nicht durch nachfolgende schriftliche Ausfertigung, welche von einem zeichnungsberechtigten Vertreter unserer Gesellschaft autorisiert wurde, best=E4tigt werden, wird grunds=E4tzlich keine Haftung =FCbernomme= n. G=E4nzliche Virenfreiheit kann niemals garantiert werden und eine Haftung findet hief=FCr gleichfalls nicht statt. Es gilt =F6sterreichisch= es Recht unter Ausschluss allf=E4lliger Kollisions- oder Verweisungsnormen. Gerichtsstand ist Wien-Innere Stadt. |