Checking File Permission
ls -lart filenameor
ls -l filename
The file permissions can be displayed using the command:
% ls -l [filename]For example, to display the permissions on the file myfile.txt, type the command:
% ls -l myfile.txt -rw-r--r-- 1 lnp5jb 777 Dec 22 myfile.txt
Changing File Permissions
The easiest way is the symbolic method, which lets you specify access classes and types with single letter abbreviations.chmod modesIn the command:% chmod mode filenamethe mode consists of three elements: who operator permissions The following options are possible: who:u user (owner)g group o other a all operators:- remove permission+ add permission = assign permission permissions:r readw write x execute For example:
|