We can change the permission of file/directory either character symbol method or numeric method.
Permission:
r-Read
w-Write
x-Execute
Permission Category
u- Owner User
g- Owner Group
o- Others
Operators
+Add the Permissions
-Remove the Permissions
=Assigns the Permissions
Numeric Method:
4Read
2Write
1Execute
Total: 7, total for owner user, owner group member and for others : 777
chmod u+rwx /data
chmod g+rwx /data
chmod o-rwx /data
or
chmod 770 /data
Verify the /data : ls –ld /data
You will get drwxrwx---
Options Selected by Other Users:
Option A: (20 votes)
100%
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit