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

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

by
onebuck
from LinuxQuestions.org on (#4TR6P)
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:latest?d=yIl2AUoC8zA latest?i=1vYvduZpAKY:-9kSZjSQkfY:F7zBnMy latest?i=1vYvduZpAKY:-9kSZjSQkfY:V_sGLiP latest?d=qj6IDK7rITs latest?i=1vYvduZpAKY:-9kSZjSQkfY:gIN9vFw1vYvduZpAKY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments