Mageia Bugzilla – Attachment 1900 Details for
Bug 5194
2_b2: cannot connect to X server :0.0 with sudo su - root in runlevel5
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
My test setup/steps/results
sudo.txt (text/plain), 1.24 KB, created by
Bit Twister
on 2012-04-02 06:24:41 CEST
(
hide
)
Description:
My test setup/steps/results
Filename:
MIME Type:
Creator:
Bit Twister
Created:
2012-04-02 06:24:41 CEST
Size:
1.24 KB
patch
obsolete
>As root ># cat /etc/sudoers.d/sudo_sys_owner >Host_Alias CSNETS = 192.168.1.0/24 >User_Alias FULLTIMERS = bittwister >Cmnd_Alias SU = /usr/bin/su >FULLTIMERS ALL = NOPASSWD: ALL ># > ># ll /etc/sudoers.d/sudo_sys_owner >-r--r----- 1 root root 146 Mar 16 09:51 /etc/sudoers.d/sudo_sys_owner > ># touch del_me ># exit > >As bittwister > >$ ll /etc/systemd/system/default.target >lrwxrwxrwx 1 root root 36 Apr 1 22:26 /etc/systemd/system/default.target -> /lib/systemd/system/runlevel5.target > >$ sudo su - root > >[root@wb ~]# kwrite del_me >No protocol specified >No protocol specified >kwrite: cannot connect to X server :0.0 > >I used XFdrake to set non-graphical login rebooted, logged in, startx > >$ ll /etc/systemd/system/default.target >lrwxrwxrwx 1 root root 36 Apr 1 22:32 /etc/systemd/system/default.target -> /lib/systemd/system/runlevel3.target > >$ sudo su - root > >[root@wb ~]# kwrite del_me >Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) >QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. >QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. >kbuildsycoca4 running... > >no problem editing the file del_me, via kwrite.
As root # cat /etc/sudoers.d/sudo_sys_owner Host_Alias CSNETS = 192.168.1.0/24 User_Alias FULLTIMERS = bittwister Cmnd_Alias SU = /usr/bin/su FULLTIMERS ALL = NOPASSWD: ALL # # ll /etc/sudoers.d/sudo_sys_owner -r--r----- 1 root root 146 Mar 16 09:51 /etc/sudoers.d/sudo_sys_owner # touch del_me # exit As bittwister $ ll /etc/systemd/system/default.target lrwxrwxrwx 1 root root 36 Apr 1 22:26 /etc/systemd/system/default.target -> /lib/systemd/system/runlevel5.target $ sudo su - root [root@wb ~]# kwrite del_me No protocol specified No protocol specified kwrite: cannot connect to X server :0.0 I used XFdrake to set non-graphical login rebooted, logged in, startx $ ll /etc/systemd/system/default.target lrwxrwxrwx 1 root root 36 Apr 1 22:32 /etc/systemd/system/default.target -> /lib/systemd/system/runlevel3.target $ sudo su - root [root@wb ~]# kwrite del_me Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. kbuildsycoca4 running... no problem editing the file del_me, via kwrite.
View Attachment As Raw
Actions:
View
Attachments on
bug 5194
: 1900 |
1904