Beginners level Course:file Permisions-chown

Source: Internet
Author: User

The Chown command is the cousin of the chmod command. The command is used to modify the owner of the file (' Chown '--change owner). It does not change however the read, write and execute permissions. Each user can use this command, which uses the following:chown owner.group filenameSuppose you want to copy something from the Windows partition (assuming you have a Windows partition), you hang the partition with the root user, in order to save time, you copy the file to the user directory/home/bob/. If you use Ls-l to view the copied files (the_file) you will get the following information:-rw-r--r--1 root root 2428 Nov 13:18 the_fileAs we know from our previous lesson, Root is the owner of the file. Therefore, only the root user has permission to write to the file (the permission to modify its contents). If you want to use the Bob user to manipulate the file, you need to use the Chown command under root to modify the file. Here's how:chown bob.bob the_fileThe premise of this example is that your Linux version will create a group for each user. Some systems create a common group of users for each user who uses the computer. On the network, group is created according to the needs of the organization. On your single-user PC, enter ls-l and see which system you have.
It can be seen that if you are working on a user's computer ' chown ' is absolutely essential.      Original address: http://www.linux.org/threads/file-permisions-chown.4095/

Beginners level Course:file Permisions-chown

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.