Linux Learning Note Four

Source: Internet
Author: User

File Rights Management Chapter

Chown-r MySQL. /usr/local

Change all files and subdirectories in/usr/local/and below to MySQL

Ls-al * Use this command to query

Chgrp

Chgrp-r mysql/usr/local

Change all files and subdirectories in/usr/local/and below to MySQL

Ways to delete users and groups

Method 1 Delete User/etc/passwd

Delete Group/etc/group

Other related information/etc/passwd

Method 2 #userdel-r MySQL to delete the user's home directory together

#groupdel MySQL

Note: Delete the group before deleting the user group

-G oinstall-g dba-d  /home/grid grid Create a grid where the user user is in the same group as the Oinstall user, the  starting directory for the DBA user who is logged in as an additional group Home/grid

Linux Learning Note Four

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.