You are not logged in.

#1 2009-01-05 01:34:57

absolutezero1287
Member
Registered: 2008-11-13
Posts: 133

Gksu issues

I'm using fluxbox and configured my menu so that I can choose the Gparted option. At first gksu wouldn't start gparted so I just opened it from the terminal. Now I'm determined to fix this bug. When I edit my menu so that I can again choose gparted I'm allowed access to the program without being prompted for a password. It may have something to do with my sudoers file.

flubox menu entry
[exec] (Gparted) {gksu gparted}

/etc/sudoers
root    ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
%wheel    ALL=(ALL) ALL

Below is the notification I get when I start Gparted

Granted permissions without asking for password

The 'gparted' program was started with the privileges of the root user 
without the need to ask for a password, due to your system's authentication 
mechanism setup. It is possible that you are being allowed to run specific programs 
as user root without the need for a password, or that the password is cached. 
This is not a problem report; it's simply a notification to make sure you are aware of this.

Any ideas?

Offline

#2 2009-01-18 18:52:50

absolutezero1287
Member
Registered: 2008-11-13
Posts: 133

Re: Gksu issues

Ok, I'm pretty sure that its the fact that password is cached. How do I prevent this from happening?

Offline

#3 2009-01-18 19:15:49

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: Gksu issues

"google sudo password caching" timeout will tell you about  timestamp_timeout.
Or the fifth line of man sudo.


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#4 2009-01-18 21:14:37

absolutezero1287
Member
Registered: 2008-11-13
Posts: 133

Re: Gksu issues

I read the man page and googled. I still don't really know how to adjust the timeout so that I'm asked for root access every time. At least for gksu/gksudo.

Offline

#5 2009-01-19 18:25:34

nh
Member
From: England
Registered: 2008-07-09
Posts: 45

Re: Gksu issues

I have the same issue: when I typed gksu gedit in a terminal for the first time it asked for my password.  Since then (several hours ago) it has not asked for the password again (instead I get the same message as absolutezero1287), even if I wait an hour before using it again.  Hence I don't think the issue is password caching.  On the other hand, sudo still asks for my password after five minutes.

Any ideas anyone?

Offline

#6 2009-01-26 20:21:16

absolutezero1287
Member
Registered: 2008-11-13
Posts: 133

Re: Gksu issues

Bump
This error occurs if I've used sudo before. I have a terminal open and used the sudo command. I left the window open then started gparted and it didn't ask for permissions. I closed the terminal window, started gparted and the same thing happened.
Anyone have any ideas?

Offline

#7 2009-02-04 10:33:47

absolutezero1287
Member
Registered: 2008-11-13
Posts: 133

Re: Gksu issues

Bump

Offline

#8 2010-01-19 10:01:36

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 507

Re: Gksu issues

Try this.

1. Edit /etc/sudoers with 'visudo' command as root:
          # for wheel group privilege:
          %wheel    ALL=/usr/sbin/gparted

          OR

          # for a single user privilege:
          <user>      ALL=/usr/sbin/gparted
    2. Execute:
          $ gksudo gparted

Offline

#9 2015-04-10 08:22:05

vlatkoB
Member
Registered: 2015-03-24
Posts: 6

Re: Gksu issues

Old thread, but here is the answer.
If you have seahorse installed, the password is in section Passwords/default. Find the one for gksu, and delete it.

Offline

Board footer

Powered by FluxBB