You are not logged in.

#1 2010-08-13 18:19:32

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

[Solved]gksudo problem

after the current -Syu gksudo is not working in my openbox set  up for shutdown/suspend/hibernate. when run in terminal it says
sudo: sorry, a password is required to run sudo
but already in wheel group and sudoers file updated one modified accordingly.
Does any one have the same issue?

Last edited by kgas (2010-08-13 18:53:24)

Offline

#2 2010-08-13 18:20:44

sweetthdevil
Member
Registered: 2009-10-20
Posts: 432

Re: [Solved]gksudo problem

Hi all,

after today's update the gksudo doesn't work; or the password seems to be different to the user one.

Any advice on how to resolve the issue?

Offline

#3 2010-08-13 18:31:48

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [Solved]gksudo problem

Can you paste sudoers please.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#4 2010-08-13 18:32:21

xenofungus
Member
From: Spain
Registered: 2009-10-17
Posts: 63

Re: [Solved]gksudo problem

I had to update the .pacnew file to reallow the wheel group.

Since you cant use sudo visudo, become root with su first then visudo

Offline

#5 2010-08-13 18:35:09

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved]gksudo problem

Merged the 2 threads on the same issue to keep all the discussion together


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#6 2010-08-13 18:42:58

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: [Solved]gksudo problem

a workaround is to create command alias that solved this issue for now.

Offline

#7 2010-08-13 18:46:25

rider
Member
From: Slovenia
Registered: 2009-09-28
Posts: 6

Re: [Solved]gksudo problem

1. "su",  must be root
2. "cd /etc"
3. "cp visudo visudo.old" just for security
4. "cp visudo.pacnew visudo", use new file
5. Edit file with "visudo"
6. For me, I uncommented :
     "%wheel ALL=(ALL) NOPASSWD: ALL" to allow members of group wheel to execute any command
     "%sudo   ALL=(ALL) ALL" to allow members of group sudo to execute any command
7. And save ":wq" under vim

Offline

#8 2010-08-13 20:49:37

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [Solved]gksudo problem

"%wheel ALL=(ALL) NOPASSWD: ALL" would allow users in group wheel to run commands sans password, wouldn't it?

And for "%sudo   ALL=(ALL) ALL", would I have to create the sudo group?

Offline

#9 2010-08-13 21:10:13

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [Solved]gksudo problem

anonymous_user wrote:

"%wheel ALL=(ALL) NOPASSWD: ALL" would allow users in group wheel to run commands sans password, wouldn't it?

And for "%sudo   ALL=(ALL) ALL", would I have to create the sudo group?

Yes.

For me using gnome gksudo is broken.  Sudo is fine.

Luckily I don't use gksudo that often as I don't run GUI apps with privs and I only tested it after reading this thread.

I think a bug report is needed.

Last edited by loafer (2010-08-13 21:10:43)


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#10 2010-08-13 21:55:09

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [Solved]gksudo problem

Offline

#11 2010-08-13 22:18:33

rider
Member
From: Slovenia
Registered: 2009-09-28
Posts: 6

Re: [Solved]gksudo problem

anonymous_user wrote:

"%wheel ALL=(ALL) NOPASSWD: ALL" would allow users in group wheel to run commands sans password, wouldn't it?

Aha, needed for "sudo pacman -Syu", other wise I a was dead/blocked after upgrade. And yes I am speaking about problem with "sudo".

anonymous_user wrote:

And for "%sudo   ALL=(ALL) ALL", would I have to create the sudo group?

Correct, I was forced to created it smile - but not sure that is realy needed.

I don't use "gksudo" -> happy "awesome" user.

Last edited by rider (2010-08-13 22:20:05)

Offline

#12 2010-08-14 06:03:25

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: [Solved]gksudo problem

As I mentioned creating command alias solves the problem but something is wired.
Cmnd_Alias SHUTDOWN_CMDS=/sbin/halt,/sbin/reboot,/usr/sbin/pm-suspend,/usr/sbin/pm-hibernate
<user> ALL=(ALL) ALL
<user> ALL=(ALL) NOPASSWD:SHUTDOWN_CMDS <--- Note: Without password
with this still gksudo is required to get the work done. no other modification to sudoers file.
creating a sudo group and uncomment %sudo did not solve the issue.
This is for the records.

Offline

#13 2010-08-14 12:31:03

sweetthdevil
Member
Registered: 2009-10-20
Posts: 432

Re: [Solved]gksudo problem

So just to clear it, this is a bug (gksudo not working) and should be fix?

Offline

#14 2010-08-14 20:46:20

B_Lizzard
Member
From: Greece
Registered: 2006-07-16
Posts: 11

Re: [Solved]gksudo problem

Same issue here. gksudo doesn't work, normal sudo works fine. I replaced the sudoers with the sudoers.pacnew file and edited it with visudo. Probably a gksu bug.

Offline

#15 2010-08-20 20:43:00

naguz
Member
Registered: 2008-11-05
Posts: 98

Re: [Solved]gksudo problem

I had the same problem.
@rider: I assume you mean sudoers, not visudo?

I replaced the old sudoers file with the .pacnew one, enabled the wheel group, and everything is good to go.

Offline

#16 2010-08-20 20:57:10

rider
Member
From: Slovenia
Registered: 2009-09-28
Posts: 6

Re: [Solved]gksudo problem

@nagus : actually both of them.

Visudo Manual : visudo edits the sudoers file in a safe fashion, analogous to vipw(8). visudo locks the sudoers file against multiple simultaneous edits, provides basic ...

Offline

#17 2010-08-26 10:32:16

sweetthdevil
Member
Registered: 2009-10-20
Posts: 432

Re: [Solved]gksudo problem

Hi all,

I have replaced the old file by the new file, edited it to allow wheel; made sure my users were part of wheel 'Group'.

Now when trying to run a gksudo command, the window pop up to ask for my password but the answer is "sudo: sorry, a password is required to run sudo"

It is my user password, I made sure I wasn't typing it wrong or with Caplock on...

Any idea on how to resolve the issue?

Last edited by sweetthdevil (2010-08-26 10:59:58)

Offline

#18 2010-08-26 11:03:56

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [Solved]gksudo problem

sweetthdevil wrote:

Hi all,

I have replaced the old file by the new file, edited it to allow wheel; made sure my users were part of wheel 'Group'.

Now when trying to run a gksudo command, the window pop up to ask for my password but the answer is "sudo: sorry, a password is required to run sudo"

It is my user password, I made sure I wasn't typing it wrong or with Caplock on...

Any idea on how to resolve the issue?

You could try using gksu instead.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#19 2010-08-26 11:06:16

sweetthdevil
Member
Registered: 2009-10-20
Posts: 432

Re: [Solved]gksudo problem

loafer wrote:

You could try using gksu instead.

Yes, but the issue is I do not want other user to have the root password; and I have script using gksudo for them to do couples of task.

thanks for your reply

Offline

#20 2010-08-27 13:26:54

irishjava
Member
Registered: 2010-07-13
Posts: 5

Re: [Solved]gksudo problem

I had the same problem and solved it very simply with the following: 

sudo pacman -R libgksu -c
sudo pacman -S gksu

Offline

#21 2010-08-27 14:10:44

irishjava
Member
Registered: 2010-07-13
Posts: 5

Re: [Solved]gksudo problem

irishjava wrote:

I had the same problem and solved it very simply with the following: 

sudo pacman -R libgksu -c
sudo pacman -S gksu

Sorry, this did NOT in fact fix the problem.

Offline

#22 2010-08-27 14:17:02

irishjava
Member
Registered: 2010-07-13
Posts: 5

Re: [Solved]gksudo problem

I also don't know why this thread is solved. if you check out the bug report, it is clear that the problem is not in fact solved. A new copy of gksu package will need to be released, either that or users will have to downgrade.

Offline

#23 2010-08-27 14:40:35

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved]gksudo problem

irishjava, instead of multiposting, please use the Edit functionality. It is there for a reason.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#24 2010-08-27 15:30:36

irishjava
Member
Registered: 2010-07-13
Posts: 5

Re: [Solved]gksudo problem

pardon me.

Offline

#25 2010-08-27 15:38:53

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: [Solved]gksudo problem

irishjava, don't worry. I use gksduo only for shutdown/reboot/suspend actions (see my post #12) in openbox set up.Even there are alternatives for that. Since my issues ends there I marked it solved. Some others created sudo group and got their issues solved. shortly I will dump the gksudo too.

Offline

Board footer

Powered by FluxBB