File Permission

Chown command in Linux changes file and directory ownership.

Assign read, write, and execute permission to everyone:

chmod 777 [file_name]
Give read, write, and execute permission to owner, and read and execute permission to group and others:

chmod 755 [file_name]
Assign full permission to owner, and read and write permission to group and others:

chmod 766 [file_name]
Change the ownership of a file:

chown [user] [file_name]
Change the owner and group ownership of a file:

chown [user]:[group] [file_name]

Leave a Reply

Your email address will not be published. Required fields are marked *