There is root ownership and root group applied to /media/pandya/Ext4/*
("pandya" is user-name). To apply group "pandya" I run following command:
sudo chown -hR root:pandya /media/pandya/Ext4/*
Now, There is root ownership and "pandya" group applied to /media/pandya/Ext4
and all sub files and directories.
But group "pandya" has only permission "Access files" (for directories) and "Read Files" (for files) for all sub directories and files.
So, How to apply full permissions ("create and delete files" to directories and "read and write" to files) to group "pandya" ? So-that I can fully access /media/pandya/Ext4/
and all sub directories and folders with "pandya" group.
Best Answer
The
chown
command is to change user and group ownership, to change permissions, you needchmod
. So, once you have set the group ownership topandya
usingchown
as you have, change the permissions to give the group write access:From
man chmod
:So,
g+w
means "give users that belong to the file's group write access" and-R
means apply to all files and subdirectories recursively.