You are not logged in.
Pages: 1
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
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
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
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
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
Pages: 1