1 / 7

File Permissions

File Permissions. What are the three categories of users that apply to file permissions? . Owner (or user) Group All others (public, world, others). What command is used to change the owner of a file? Who can use this command?. chown [login name | uid] files…

jihan
Télécharger la présentation

File Permissions

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. File Permissions

  2. What are the three categories of users that apply to file permissions? • Owner (or user) • Group • All others (public, world, others)

  3. What command is used to change the owner of a file? Who can use this command? • chown [login name | uid] files… • On Linux systems, only superuser (root)can use this command. On other versions ofUNIX, the owner of a file can change its ownership.

  4. What command is used to change the group of a file?Who can issue this command? • chgrp [group name | gid] file … • Besides the superuser, only the owner of a file can reassign the group to which it belongs.To change the group, the owner must belong to the group to which it is being changed.(group names can be found in the file /etc/group)

  5. What command is used to change a file’s permissions? Who can use this command? • chmod perms file … • Aside from the superuser, only the owner of a file may change its permissions

  6. read – allows access to the content of the file:cat more, grep, cp write – allows changing the content of the file:vi > >> editors execute – allows running the file as a process read – allows viewing the content of a directory:ls … find write – allows changing the content of a directory:mv cp ln rm mkdir execute – allows a directory to be searched or changed to:cd ls –l find What do permissions mean for files vs. directoriesFilesDirectories

  7. How does UNIX set the default permissions for files? • The umask value: • 000 – all normal permissions are allowed • 777 – all permissions are denied • 444 – read permission denied • 222 – write permission denied • 111 – execute permission denied • 022 – write permission is denied to group and others

More Related