sudoers
Dimitri John Ledkov
xnox at ubuntu.com
Fri May 16 23:35:47 UTC 2014
On 16 May 2014 07:26, Charl Wentzel <charl.wentzel at vodamail.co.za> wrote:
> Hi Guys
>
> I recently struggled with an issue for quite a few days because of the
> way the /etc/sudoers file is laid out. I would like to make a
> suggestion to change it that would hopefully save others the same hassle.
>
> I wanted to debugging in Eclipse which required me to let Eclipse run
> gdb with sudo. However, for this to work, sudo must not ask for a
> password. So I've added the following entry in /etc/sudoers under the
> appropriate comment:
If you simply want to grant unrestricted permissions for gdb to attach
to any process, you don't need to grant full sudo to it.
By default, as a security measure, on ubuntu gdb is restricted from
tracing processes running by a different uid.
You can disable this security measure via normal sysctl measures, for
more details see:
http://askubuntu.com/questions/41629/after-upgrade-gdb-wont-attach-to-process
Are there any other reasons why you want to run gdb as root from eclipse?
Regards,
Dimitri.
More information about the Ubuntu-devel-discuss
mailing list