Peter Chubb wrote:
Ah.  Posix semantics.

Instead, do
         setreuid(geteuid(), -1);
that should fix it.

/home/prundle> ./suidexec id
Executing Command 'id'
uid=502(matlab) gid=501(prundle) groups=502(matlab)
context=user_u:system_r:unconfined_t

:-)

/home/prundle> ./suidexec /home/matlab/product/bin/matlab
Executing Command '/home/matlab/product/bin/matlab'
Warning:
  MATLAB is starting without a display, using internal event queue.
  You will not be able to display graphics on the screen.

                                 < M A T L A B >
                     Copyright 1984-2006 The MathWorks, Inc.

:-) :-) :-)

Thanks Peter.

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to