SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-05-21 13:25:58

Panzer
Member
Registered: 2010-02-06
Posts: 49

(SOLVED) Synaptic + password + remember

Hello,

I modified my /etc/sudoers file by adding this line:

Defaults:eric timestamp_timeout=20

so I don't need to re-enter my password (20 minutes) if I need to execute a program with sudo.
It works if I open it from a terminal, but if I open Synaptic via the icon, close it and re-open it 1 minute later, it still asks me for my password.
How can I fix it?
Thanks
p.s. sorry for my bad English!

Last edited by Panzer (2011-05-22 12:51:20)

Offline

Be excellent to each other!

#2 2011-05-21 17:49:00

vredfreak
Member
Registered: 2011-04-24
Posts: 32

Re: (SOLVED) Synaptic + password + remember

If you use gksudo it should work.  Edit your shortcut icon command to "gksudo synaptic".  I'm using Gnome, so I don't know if gksudo is installed by default.

By the way, that is the gksu package in synaptic.

Last edited by vredfreak (2011-05-21 17:55:25)


Me:  I talk to myself
Myself:  Yes, I know.
I:  Both of you shut up!

Offline

#3 2011-05-21 21:08:00

Panzer
Member
Registered: 2010-02-06
Posts: 49

Re: (SOLVED) Synaptic + password + remember

Yes, I use gksudo but I need to enter my password each time I open up synaptic...:/

Offline

#4 2011-05-21 22:04:20

vredfreak
Member
Registered: 2011-04-24
Posts: 32

Re: (SOLVED) Synaptic + password + remember

Panzer wrote:

Yes, I use gksudo but I need to enter my password each time I open up synaptic...:/

That's odd.  I have the NOPASSWD option set on synaptic in my sudoers file, and gksudo follows it just fine.

Try hitting alt + f2 and entering "gksudo /usr/sbin/synaptic".  Then close synaptic and wait a minute.  Then repeat to see if it honors your sudoers file.

What is the exact command of the icon you are clicking on?


Me:  I talk to myself
Myself:  Yes, I know.
I:  Both of you shut up!

Offline

#5 2011-05-21 22:29:05

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: (SOLVED) Synaptic + password + remember

Well... by the might of google...

First: http://tinyurl.com/3etey6j
Then: http://embraceubuntu.com/2006/01/25/mak … passwords/

The password is only saved for a single terminal (the one you run sudo with), so any other terminal will refuse to save the PW. See the link above for a kind of workaround. Please read the whole article. you have to decide about security issues yourself.


I'm so meta, even this acronym

Offline

#6 2011-05-22 12:49:03

Panzer
Member
Registered: 2010-02-06
Posts: 49

Re: (SOLVED) Synaptic + password + remember

@Awebb

Thanks. The first link solved my problem! smile

Offline

#7 2011-05-22 13:01:17

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: (SOLVED) Synaptic + password + remember

Hehe :-D

Make sure you are aware of possible security risks if you follow the second link.


I'm so meta, even this acronym

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo