Ubuntu Learning Note-sudo/gedit

Source: Internet
Author: User
Tags ticket

1.sudo command

sudo is a Linux system Management Directive, a tool that allows the system administrator to let ordinary users perform some or all of the root commands, such as HALT,REBOOT,SU, and so on. This not only reduces the login and administration time of the root user, but also improves security. sudo is not a substitute for the shell, it is for each command.

is to get permission.

Its features include the following: §sudo can restrict users from running certain commands on a single host. §sudo provides a rich log of what each user has done in detail.    It can upload logs to a central host or log server. §sudo uses a timestamp file to perform a similar "ticket-check" system.    When the user calls sudo and enters its password, the user obtains a ticket with a survival period of 5 minutes (this value can be changed at compile time). The §sudo configuration file is a sudoers file that allows system administrators to centrally administer user permissions and use the host. The location where it is stored defaults to/etc/sudoers, and the attribute must be 0440. 2. gedit    Gedit is a text editor compatible with UTF-8 in a GNOME desktop environment. It is written in GTK +, so it's very easy to use, has good syntax highlighting, supports Chinese language support, and supports a variety of character encodings including gb2312, GBK, and more.  Gedit is a free software.  This is a plain text editor under Linux, but you can also use it as an integrated development environment (IDE) that highlights keywords and identifiers in different languages. sudo gedit filename: Administrator privileges to open the file for editing and saving.

Ubuntu Learning Note-sudo/gedit

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.