On Tue, May 16, 2006 at 01:46:30PM +1000, Peter Rundle wrote:
> 
> 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.

You have selinux contexts in there.  Are you running with it enforced?
Check the logs for selinux violations.

There's also the possibility that truly logging in results
in a few vital environment vars being set that are not set
when you merely change uid.


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