public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* warning: not using untrusted file
@ 2014-07-01 14:02 Aleksey Midenkov
  2014-07-01 15:46 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Aleksey Midenkov @ 2014-07-01 14:02 UTC (permalink / raw)
  To: gdb

When I start gdb under sudo, I get this message:

warning: not using untrusted file "/home/midenok/.gdbinit"

Any easy way to overcome this?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: warning: not using untrusted file
  2014-07-01 14:02 warning: not using untrusted file Aleksey Midenkov
@ 2014-07-01 15:46 ` Eli Zaretskii
  2014-07-02  8:22   ` Aleksey Midenkov
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2014-07-01 15:46 UTC (permalink / raw)
  To: Aleksey Midenkov; +Cc: gdb

> From: Aleksey Midenkov <midenok@gmail.com>
> Date: Tue, 1 Jul 2014 18:01:15 +0400
> 
> When I start gdb under sudo, I get this message:
> 
> warning: not using untrusted file "/home/midenok/.gdbinit"
> 
> Any easy way to overcome this?

See the node "Auto-loading safe path" in the GDB manual.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: warning: not using untrusted file
  2014-07-01 15:46 ` Eli Zaretskii
@ 2014-07-02  8:22   ` Aleksey Midenkov
  2014-07-02 14:47     ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Aleksey Midenkov @ 2014-07-02  8:22 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: gdb

On Tue, Jul 1, 2014 at 7:46 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Aleksey Midenkov <midenok@gmail.com>
>> Date: Tue, 1 Jul 2014 18:01:15 +0400
>>
>> When I start gdb under sudo, I get this message:
>>
>> warning: not using untrusted file "/home/midenok/.gdbinit"
>>
>> Any easy way to overcome this?
>
> See the node "Auto-loading safe path" in the GDB manual.

It doesn't work.

# gdb

warning: not using untrusted file "/home/midenok/.gdbinit"
(gdb) show auto-load safe-path
List of directories from which it is safe to auto-load files is /home/*.
(gdb)

I also tried other variants:
/home/midenok
/home/midenok/
/home/midenok/.gdbinit

Nothing works!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: warning: not using untrusted file
  2014-07-02  8:22   ` Aleksey Midenkov
@ 2014-07-02 14:47     ` Eli Zaretskii
  2014-07-02 20:12       ` Aleksey Midenkov
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2014-07-02 14:47 UTC (permalink / raw)
  To: Aleksey Midenkov; +Cc: gdb

> From: Aleksey Midenkov <midenok@gmail.com>
> Date: Wed, 2 Jul 2014 12:21:41 +0400
> Cc: gdb@sourceware.org
> 
> > See the node "Auto-loading safe path" in the GDB manual.
> 
> It doesn't work.
> 
> # gdb
> 
> warning: not using untrusted file "/home/midenok/.gdbinit"
> (gdb) show auto-load safe-path
> List of directories from which it is safe to auto-load files is /home/*.
> (gdb)
> 
> I also tried other variants:
> /home/midenok
> /home/midenok/
> /home/midenok/.gdbinit
> 
> Nothing works!

What does "ls -l" say about /home/midenok/.gdbinit?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: warning: not using untrusted file
  2014-07-02 14:47     ` Eli Zaretskii
@ 2014-07-02 20:12       ` Aleksey Midenkov
  0 siblings, 0 replies; 5+ messages in thread
From: Aleksey Midenkov @ 2014-07-02 20:12 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: gdb

On Wed, Jul 2, 2014 at 6:47 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Aleksey Midenkov <midenok@gmail.com>
> > Date: Wed, 2 Jul 2014 12:21:41 +0400
> > Cc: gdb@sourceware.org
> >
> > > See the node "Auto-loading safe path" in the GDB manual.
> >
> > It doesn't work.
> >
> > # gdb
> >
> > warning: not using untrusted file "/home/midenok/.gdbinit"
> > (gdb) show auto-load safe-path
> > List of directories from which it is safe to auto-load files is /home/*.
> > (gdb)
> >
> > I also tried other variants:
> > /home/midenok
> > /home/midenok/
> > /home/midenok/.gdbinit
> >
> > Nothing works!
>
> What does "ls -l" say about /home/midenok/.gdbinit?

Yes, it was symlink to another location. Replacing symlink with actual
file did helped. Thanks!

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-02 20:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-01 14:02 warning: not using untrusted file Aleksey Midenkov
2014-07-01 15:46 ` Eli Zaretskii
2014-07-02  8:22   ` Aleksey Midenkov
2014-07-02 14:47     ` Eli Zaretskii
2014-07-02 20:12       ` Aleksey Midenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).