You are not logged in.

#1 2012-08-19 06:14:03

ArchLunix
Member
Registered: 2012-08-08
Posts: 7

Problem with gparted

I'm having a problem with gparted, everytime I run it by

sudo gparted

I get this

No protocol specified

(gpartedbin:5407): Gtk-WARNING **: cannot open display: :0

When I run it by su I get the same error. When I run it outside of the terminal I get a window asking for my password. I type my password and gparted loads and then it just closes.
Does anyone know how to fix this?

Offline

#2 2012-08-19 06:18:23

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,671

Offline

#3 2012-08-19 06:19:21

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Problem with gparted

Does it work if you run gksu instead of sudo?

Offline

#4 2012-08-19 06:21:18

ArchLunix
Member
Registered: 2012-08-08
Posts: 7

Re: Problem with gparted

Thank you!! It worked with

kdesu gparted

Offline

#5 2012-08-19 14:06:17

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: Problem with gparted

Please mark your thread [SOLVED].


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2012-08-19 14:41:03

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: Problem with gparted

ArchLunix wrote:

Thank you!! It worked with

kdesu gparted

If you want to run kdesu with the sudo backend instead of su (practically your user password instead of root's) edit/create ~/.kde4/share/config/kdesurc and put in

[super-user-command]
super-user-command=sudo

Rauchen verboten

Offline

#7 2012-08-19 14:46:31

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Problem with gparted

# sudo gparted

^ Works fine here.

Here's my sudoers file:

Defaults editor=/usr/bin/nano

root    ALL=(ALL) ALL
dspider ALL=(ALL) ALL

dspider ALL=NOPASSWD: /bin/mount, /bin/umount
dspider arch=NOPASSWD: /sbin/reboot, /sbin/poweroff, /usr/bin/pacman -Syu

"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

Board footer

Powered by FluxBB