Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)"— 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? 1.chown [login name | uid] files… 2.On Linux systems, only superuser (root) can use this command. On other versions of UNIX, 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 What do permissions mean for files vs. directories Files Directories 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

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


Download ppt "File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)"

Similar presentations


Ads by Google