LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to Change File/Directory User and Group Ownership in Linux (https://www.linuxquestions.org/questions/linux-general-1/how-to-change-file-directory-user-and-group-ownership-in-linux-4175663779/)

onebuck 11-06-2019 06:18 AM

How to Change File/Directory User and Group Ownership in Linux
 
Hi,

Some users may find this article useful and to clarify the methods;
Quote:

How to Change File/Directory User and Group Ownership in Linux

by Magesh Maruthamuthu · Published : February 20, 2014 || Last Updated: October 7, 2019

Linux is a multi-user system that can be accessed simultaneously by multiple users.
File permissions are a way to restrict users to access other user’s files on Linux.
It is controlled by file ownership and file permissions.
Each file in Linux has 3 types of owners, it’s user, group, and others.
A user is the owner of the file, and group is the one to which the user belongs to.
Each file and directory has three permissions for all three owners, such as read, write, and execute.
This can be done using the chown command and the chgrp command.
By default these commands do not display any output, so use the “-v” option to get information about what’s being done.
Use the ls command to find out who owns a file and which group the file belongs to.

Hope this helps.
Have fun & enjoy Gnu/Linux!
:hattip:

greencedar 11-06-2019 06:20 AM

Thanks!


All times are GMT -5. The time now is 04:10 PM.