Permissions Prepared by Dr Reyes New York City College of Technology Ownership Files permissions are divided in three levels owner group everybody ls l id command used to find out information about your identity ID: 790086
Download The PPT/PDF document "The Linux Command Line Chapter 9" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
The Linux Command Line Chapter 9
Permissions
Prepared by Dr. Reyes, New York City College of Technology
Slide2Ownership
Files permissions are divided in three levels: owner, group, everybody
ls
-lid - command used to find out information about your identity
Slide3Slide4Change Mode
chmod
– command to change the mode or permissions of a file or directory
Permissions represented using octal notation> foo.txtls -l foo.txt
chmod
600 foo.txt
ls -l foo.txtchmod 777 foo.txtls -l foo.txt
Slide5Changing Identities
su
- command that allows you to log in as another user
su –su – username
sudo
- command that allows you to execute commands as a different user, usually a
superuser in a controlled waysudo chown - command used to change the owner of a filepasswd - command used to change the password