LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-06-2019, 06:18 AM   #1
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Arrow 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!
 
Old 11-06-2019, 06:20 AM   #2
greencedar
Senior Member
 
Registered: Sep 2018
Distribution: Linux Mint 19.1 Tessa & 19.3 Tricia
Posts: 1,314
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Thanks!
 
  


Reply

Tags
chown, file permissions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Change File/Directory User and Group Ownership in Linux LXer Syndicated Linux News 0 10-10-2019 10:51 AM
[SOLVED] Enforce user and group ownership in subdirectories of a Samba share jillges Linux - Server 1 12-29-2011 03:55 PM
How do I set multiple group/user ownership of files and folders? Syllinger Linux - Newbie 3 10-21-2011 01:49 AM
How to inherit group ownership from directory when creating a file wastingtime Linux - Software 3 11-24-2009 08:06 PM
User and Group file ownership... Weird bourne Linux - Security 2 10-29-2008 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration