Problems with setuid app in Ubuntu 12.04

Akash Jain akash.delhite at gmail.com
Sun May 13 14:15:42 UTC 2012


Hi Paul,

Thanks for telling the solution which worked !

A lot of times, people just dont seem to tell the things which worked for
them, making it bad for future problems.

Thanks again.

Cheers !

On Sun, May 13, 2012 at 1:07 PM, Rigved Rakshit <r.phate at gmail.com> wrote:

> Oy vey.  I figured it out.  It was a terrible confluence of two bizarre
>> things: the first one was that I somehow had copied an instance of the
>> binary that was supposed to be setuid into my home directory, where of
>> course after the copy it was no longer setuid.  I have no idea how or
>> why I would have done such a thing.
>>
>> And the second one is that the Java UI appears to be specifically
>> searching the current directory BEFORE it looks on $PATH (I never have
>> "." in my $PATH for security reasons).
>>
>> This means the Java UI was invoking the non-setuid copy of the program
>> from my home directory even though neither my current directory nor my
>> home directory is on my $PATH.
>>
>> What a drag, to have spent so much time on this.  I've updated my
>> scripting to force a cd to the right directory before launching the Java
>> UI program and that seems to solve the problem (even if I don't delete
>> the stray program from my home directory).
>>
>> Sorry for the confusion/noise.  Cheers!
>>
>
> Good that you were able to solve it!
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20120513/0f507965/attachment.html>


More information about the ubuntu-users mailing list