fam
[Top] [All Lists]

Re: [fam] installing in RH7??

To: nhudson@xxxxxxxxxx
Subject: Re: [fam] installing in RH7??
From: "Rusty Ballinger" <rusty@xxxxxxxxxxxxxxxxxx>
Date: Thu, 12 Oct 2000 17:15:59 -0700
Cc: fam@xxxxxxxxxxx
In-reply-to: Nick Hudson <nhudson@xxxxxxxxxx> "Re: [fam] installing in RH7??" (Oct 11, 4:44pm)
References: <39E26609.E3A6CEB9@xxxxxxxxxx> <10010091927.ZM9794@xxxxxxxxxxxxxxxxxx> <39E28871.5D20B9C4@xxxxxxxxxx> <10010092302.ZM10041@xxxxxxxxxxxxxxxxxx> <39E33277.B303EDC2@xxxxxxxxxx> <10010101417.ZM11251@xxxxxxxxxxxxxxxxxx> <39E3971C.F8FEEFD5@xxxxxxxxxx> <10010101538.ZM11365@xxxxxxxxxxxxxxxxxx> <39E4DF4F.BE3FA040@xxxxxxxxxx>
Reply-to: rusty@xxxxxxx
Sender: owner-fam@xxxxxxxxxxx
(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

<Prev in Thread] Current Thread [Next in Thread>