(apologies if anyone gets this twice)
> Another question is there a way i can start fam in user not as root?? I
> can add fam& to my .xsession file and login as root and efm will run fine
> nbut when i login as user it doesnt work because i need to be root to start
> fam.
"Sort of." fam needs to run as root, but since you have root access on your
box, there are (at least) four ways to do this.
1. (the best, I think) Get it working through xinetd. (I don't actually
know whether this is possible, since fam uses RPC a bit.) I will
download xinetd and see if I can get it working on my box.
2. Get inetd, and run it in addition to xinetd, and start fam through
inetd. (That's what all the existing fam stuff expects.) Kind of lame
to have to run both inetd and xinetd, though, and especially lame to
have to run inetd just for fam.
3. Start fam through an init script. You would want its start script to
be called after the portmapper, and its kill script to be called after
any of its clients would have been terminated, and you'd want to start
it with its -T 0 argument so that it wouldn't terminate when it didn't
have any clients. If I can't get it to work through xinetd, this is
probably the second best way to go; it's a mild bummer that it would be
one more daemon process hanging around even when it wasn't being used.
If you want to pursue this & need help with the init script, let me
know.
4. Make fam suid-root, and fix the part in fam's main.c++ where it bails
if getuid() != 0, and add fam to your .xsession. (The part where fam
bails should first go setreuid(0, 0).) On a generally-single-user box,
this might not be a horrible way to go, but I think an init script would
be better.
Anyway, I will try starting fam through xinetd on my box & let you know how
it goes. (Has anyone else already done that?)
--Rusty
--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx
|