Click to See Complete Forum and Search --> : Is this possible?
kuber
03-26-2001, 12:44 PM
I set up XDM so that at the prompt seti@home is running. I would like to make it so when a user logs in seti would be killed. I guess I would need to add something in .xsession. But what command? Also, I think there would be a problem with permissions, since root would be starting setiathome. Any way to get around this?
Thanks,
kuber
bdg1983
03-26-2001, 12:54 PM
Since all users including root have their own startup files, why not just have seti startup only for root?
I believe this is possible.
kuber
03-26-2001, 12:57 PM
Hmm.. What I want to do is have seti run during the login screen, then be killed as soon as someone logs in. I can get it to run during the login screen, but it continues when I log in...
kuber
03-26-2001, 07:28 PM
Hmmm... I wonder if anyone knows... :cool:
Bradmont
03-26-2001, 09:10 PM
There is a way to allow a user to exec specific commands as root... I think it's called subst, or suid, or something like that (somebody please give him the real name...) If you set it up so any user can exec the command "killall setiathome" as root, then stick this in your users' login scripts, the client will be killed when you login... now getting it to start up again when the user logs out is the fun part... (sorry, no Ideas here :() I guess you could just su to root and start it up again when you log out.
kuber
03-26-2001, 10:14 PM
Thanks for the tip on making killall suid. I think I will be able to get this working..
Kuber
kuber
03-26-2001, 11:05 PM
Yes! Got it working. When my computer is idle at login seti is running, but it automatically stops when someone logs in. Excellent!
Thanks!
Kuber