1.6 Managing Permissions

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 1

Managing Permissions

OPERATION COMMANDS DESCRIPTION


Changing file ownership touch newfile

ls -l newfile

chown anna newfile Giving file user ownership to anna

chown anna:profs newfile Giving file user ownership to anna and group ownership to
profs.
chgrp students newfile changing group ownership of file newfile

ls -l newfile

Understanding Basic permissions Quick Notes: Basic Permissions


read (4) -> read files | list directory contents
write (2) -> modify file | delete/create directory contents
execute (1) -> run executable file | cd into a directory

Managing Basic permissions ls -l newfile

chmod 752 newfile setting new file permissions: u=rwx,g=rx,o=w in absolute


mode

You might also like