You are not logged in.

#1 2010-08-17 20:44:14

jeff story
Member
Registered: 2009-05-31
Posts: 237
Website

using sudo while gksu is broken....

My gksu is broken per bug    http://bugs.archlinux.org/index.php?do= … k_id=19614

My desktop environment is Gnome 2.30.2

My question is what are the potential problems associated with using sudo for gui apps until the gksu bug is fixed?

example: sudo nautilus

Last edited by jeff story (2010-08-17 20:46:00)


Check out my website for info on the Arch Linux Installer

Offline

#2 2010-08-17 20:52:55

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

Re: using sudo while gksu is broken....

Are you sure you are using gksu rather than gksudo?

For me:

 dave ~  $  gksu nautilus 

works fine, but:

 dave ~  $  gksudo nautilus
sudo: sorry, a password is required to run sudo 

So, I will use gksu on the very rare occasions I need to run a gui with privs.

If you launch gui apps with sudo it will be fine 90% of the time.  The rest of the time it will screw the permissions in your home (e.g. changing .ICEauthority to root) and you won't be able to log in to X until you fix it.  So, avoid doing that.

edit: typos

Last edited by loafer (2010-08-17 21:00:21)


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

Offline

#3 2010-08-17 21:23:06

jeff story
Member
Registered: 2009-05-31
Posts: 237
Website

Re: using sudo while gksu is broken....

I have had a gnome "new menu" item that ran "gksu nautilus" as an "application",  that has worked fine since day one.

It just stopped working with no "gui" errors after my last update.

When I run gksu nautilus in the terminal, I get a pop up dialog box asking for my password, I enter my password, then the terminal output is below.

[jeff@Arch2009p2 ~]$ gksu nautilus
sudo: sorry, a password is required to run sudo
[jeff@Arch2009p2 ~]$ 

I get the exact same results when I substitute gksudo for gksu.

[jeff@Arch2009p2 ~]$ gksudo nautilus
sudo: sorry, a password is required to run sudo
[jeff@Arch2009p2 ~]$ 

Last edited by jeff story (2010-08-17 21:25:38)


Check out my website for info on the Arch Linux Installer

Offline

#4 2010-08-18 19:17:10

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

Re: using sudo while gksu is broken....

Look under System / Preferences / Privilege Granting

Is Authentication set to su or sudo?

If it's set to sudo try changing it to su.


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

Offline

#5 2010-08-19 01:39:50

jeff story
Member
Registered: 2009-05-31
Posts: 237
Website

Re: using sudo while gksu is broken....

That did it. Now I get nautilus listed as running as root .
However, see the terminal output, and no prompt for password!

[jeff@Arch2009p2 ~]$ gksu nautilus

(nautilus:9728): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported

[jeff@Arch2009p2 ~]$ 

Ths sudoers file using my fav editor Nano via:  EDITOR=nano visudo


  GNU nano 2.2.5                                        File: /etc/sudoers.tmp                                                                                       

# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# Runas alias specification

# User privilege specification
root    ALL=(ALL) ALL

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

# Same thing without a password
# %wheel        ALL=(ALL) NOPASSWD: ALL

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now

jeff ALL=(ALL) ALL
user ALL=NOPASSWD: /usr/bin/pacman
user ALL=NOPASSWD: /usr/bin/pacdiffviewer

Last edited by jeff story (2010-08-19 02:10:41)


Check out my website for info on the Arch Linux Installer

Offline

Board footer

Powered by FluxBB