Malcolm V wrote:
<snipped>
Read "man 3 system" as I suggested yesterday.

Thanks Malcolm.

See "man 3 exec" for what you want.

Changed
  system(argv[1]);
to
  execlp(argv[1],argv[2]);

in the source and now when it runs we see a different result

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

But it doesn't trick the Matlab licence manager.

$./suidexec /home/matlab/product/bin/matlab
Executing Command '/home/matlab/product/bin/matlab'

License Manager Error -39.
User/host not on INCLUDE list for feature.

How hum. Something about a square, a number and a sore head.

But now I also suspect that the Apache suexec module won't work either, so don't think I'll go down that path, perhaps ssh will be more successful.

Cheers

P.
--
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