Gedit cannot be used in ubuntu

Source: Internet
Author: User
In ubuntu, gedit cannot be used as a solution. after suroot is used, the gedit command cannot be used. Jerry @ jerry :~ $ Suroot password: root @ jerry:/home/jerry?ls=toplinux-2.6.35.9studyvideo download examples.#toplinux-2.6.35.9.tar... the gedit command in ubuntu cannot be used after su root is used. Jerry @ jerry :~ $ Su root password: root @ jerry:/home/jerry # lsDesktop linux-2.6.35.9 study video download examples. desktop linux-2.6.35.9.tar.bz2 public Picture Music hello. c opt template document desktop root @ jerry:/home/jerry # gedit hello. c (gedit: 1634): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported ** GLib-GIO: ERROR: /build/buildd/glib2.0-2.26.1/gio/gdbusconnection. c: 2270: initable _ Init: assertion failed: (connection-> initialization_error = NULL) the solution has been abandoned: su-root @ jerry:/home/jerry # su-root @ jerry :~ # Cd/home/jerryroot @ jerry:/home/jerry # gedit hello. croot @ jerry:/home/jerry # cause analysis: Difference between su and su-Command: su can only switch to administrator user permissions, do not use the administrator login script and search path su-not only can switch to the administrator permission, but also use the administrator login script and search path instance: $ pwd/home/Yewanth (current user directory) $ su # pwd (view the path again)/home/Yewanth (or the current user directory) but if you change to su-, the result is as follows: $ pwd/home/Yewanth (current user directory) $ su-# pwd (view the path again)/root (switch to the superuser directory)
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.