DEV Community

Aravinthan
Aravinthan

Posted on

Linux - Permission Commands

Linux - Permission Commands

This is Part 5 of the Linux CLI Commands series.

πŸ‘‰ Previous: Linux - Network Commands
πŸ‘‰ Next: Linux - Link Commands

Permission Commands

read - 4
write - 2
execute - 1

umask -- defalt (022) -- umask set a defalt permission for file and directory
u - user
g - group
o - other

chmod ugo+rwx filename -- set all permission to user, group and other
chmod 777 filename -- set all permission to user, group and other
chown user_nmae filename -- change owner
chgrp group_name filename -- change group
chown -R user_name:group_name filename -- change owner and group

note: root user only change the user_name and group_name

Top comments (0)