File Permission

Command Description
chmod octal file-name Changes the permissions of file to octal
chown owner-user file Changes owner of the file
chgrp group1 file Changes the group ownership of the file to group1
chmod 777 /data/test.c Sets rwx permission for owner group and others
chown owner-user owner-group file-name Changes owner and group owner of the file
chmod 755 /data/test.c Sets rwx permission for owner and rx for group and others
chown owner-user owner-group directory Changes owner and group owner of the directory