Re: running programs from user acctount as root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thank you Mike Chambers for the suggestion.
Since when did the su command change it has always been su root & have never seen any documentation says su - root. Any how just to try it here is the result:
[awp@localhost ~]$ su - root
Password:
[root@localhost ~]# pup
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Traceback (most recent call last):
  File "/usr/sbin/pup", line 31, in <module>
    import gtk
  File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 76, in <module>
    _init()
  File "/usr/lib/python2.5/site-packages/gtk- 2.0/gtk/__init__.py", line 64, in _init
    _gtk.init_check()
RuntimeError: could not open display

[root@localhost ~]# kdesu pup
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kdesu: cannot connect to X server :0.0

[awp@localhost root]$ su root
Password:
[root@localhost ~]# pup
Xlib: connection to ": 0.0" refused by server
Xlib: No protocol specified

Traceback (most recent call last):
  File "/usr/sbin/pup", line 31, in <module>
    import gtk
  File "/usr/lib/python2.5/site-packages/gtk- 2.0/gtk/__init__.py", line 76, in <module>
    _init()
  File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 64, in _init
    _gtk.init_check()
RuntimeError: could not open display

the result is the same. you do not have to enter su - root to login as root, just su root is good enough.

--
Diolch yn fawr, Ashley
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux