"C.J. Oster" wrote:
> I was always under the impression that it needed this to change the
> permissions on the /dev/ttyp* that it was using. Usually login does it
> for you when you login, but you don't login to an xterm. I've removed it
> before with out any problems.
Mmmm ... right. It'true. I've removed the setuid from nxterm, and all
seems to work properly, but a warning message "setegid(NNNN): Operation
not permitted" is a signal that not all is ok as seems.
I've checked /dev/ttyp* used by the new shell opened in nxterm, is owned
by "root root" instead of the proper user. I don't know if there are
some strange hidden bad effects due this fact, so I've restored the
setuid bit: I prefer to have an annoying - but known - little problem
instead of a potential - but hidden - future problem.
Years of sysadm work made me a little conservative about some aspects of
my job :-)
> As far as the nxterm to kill, there is a small shell script called slay
This is the right way. We yet have a shell like this, but is hardcoded
for Solaris, I must to rewrite it .. so I will take the "slay" source
immediatly.
> that will kill all of a users processes. Obviously you can only run it as
> root and it will let you slay root so be careful, but it works well.
Uh ... we are using another approach. Since our user logins are all tied
to an application menu, executed from .profile, as the first step we ask
for the terminal type. If a user type the keywork "killme" a shell
script is started and kills all the user processes. So instead to
histerically ask to the sysadm "kill me, please!" (one of the things
that a sysadm would happily do, sometime :) the user himself walks
around offices searching for a free terminal where doing an harakiri.
But I'm sure that I can modify "slay" to manage things in this way.
Thanks.
--
Kanna (Lorenzo Canovi) [EMAIL PROTECTED]
---------------------------------------------------------------
^ ^ L.U.P.O. (Linux User Perennemente Occupato)
''___O Member of PLUTO (http://www.pluto.linux.it/)
_____) Homepage: http://www.lapam.mo.it/home/kanna/