Disabling setuid in vm when playing messages
Stefan Haller (stefan.haller@ascom.ch)
Thu, 27 Jan 2000 16:45:45 +0100
Hi all
I'm using vm to send voicemails. Every user on the machine should be
able to send those messages. It seems that it is not possible to disable
the setuid-stuff when a file is played. I deleted the entries in the
config file once, but without much luck.
This is a problem for me since vm dies when it cannot change its uid to
that one defined in voice.conf. I tried to set the setuid-flag for vm so
it could be executed by everyone as user phone (and I tried also root)
and it worked... at least until the message was finished. Then, vm
switches back to the original(real-UID instead of previous effective
uid?) user and not the user defined with the setuid-flag. And because of
that, it does not have any permissions to delete the lock file created
by the setuid-flag-user.
I tried to comment the stuff in libutil/access.c out, because I don't
need that user changing stuff anyway, but vm does not seem to work
anymore now :)...
I have no answering machine, I only want to send messages to some
phone...
What do I have to change to make this work for me?
I'm using vm of the mgetty 1.1.21 package on Solaris 2.6.
Thank you very much.
Regards
Stefan