Hi, I’m new to opensuse and I set-up my Sudo it works but when I use Gedit I get the following message
Jean-Luc@localhost:~> sudo gedit /etc/fstab
(gedit:7137): Gtk-WARNING **: cannot open display:
samething with /etc/sudoers
If I use vi it’s ok, I can modify and save.
In Fedora it run ok, but with opensuse???
Well to be honest I never use sudo I just use su -, but I think you must have set something wrong when you configured because you should have not needed to configure anything. Sudo should work out of the box.
gnomesu gedit /etc/fstab
Gnomesu is the GTK+ front end for su.
Hi, that’s fine if anyone don’t known, I’ll try an alternate command. Maybe people with opensuse don’t use sudo often but in Fedora it’s work great.
It’s more of openSUSE using a bit tighter security, you could modify
the sudoers (visudo) file to run the xhost+ local:root and your
commands, but IMHO it’s easier to use the builtin gnomesu/kdesu than
modify a file that may be over written on an update.
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 18.104.22.168-0.1-default
up 20:12, 4 users, load average: 0.12, 0.14, 0.09
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53
Hi, thats what I did edit the visudo file, but I still get the gedit error, thank anyway so I’ll try another way to edit the files.
My point is the sudo does work out of the box. The first time you run it you get a little lecture before you enter the root password but then it runs as expected. You do not have to do configuration. I think the OP miss configured it.
I’m not sure what the argument for sudo is. You could use vi (or nano) to edit the file. These are text-based editors. But, if you prefer a GUI, gnomesu (or kdesu) is used for this purpose.