Tham khảo tài liệu 'sun fundamentals of solaris 7 eu-118 student guide with instructor notes phần 7', ngoại ngữ, ngữ pháp tiếng anh phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 8 Default Permissions Changing the umask Value The umask value can be changed at the command line or with a umask command in the user s startup .profile file. Changing umaskfor the Current Shell and its Subshells You would 1. Verify the current umask. umask 022 2. Change the umask value to 027 and verify. umask 027 umask 027 The new umask value will be lost when you log out of the system unless the umask command is placed in the .profile file. This file is discussed in detail in Module 11 Initialization Files. Caution - If terminal window is opened from the Front Panel umask may display incorrectly due to a known bug. This problem can be circumvented by opening a terminal window from the Workspace Manager instead. Fundamentals of Solaris 7 Copyright 1999 Sun Microsystems Inc. AU Rights Reserved. Enterprise Services August 1999 Revision D 8-26 8 Exercise Changing File Permissions Exercise objective - The purpose of this lab is to give you practice reading permissions on files and changing permissions using symbolic or octal notation. Tasks Complete or answer the following 1. Execute the following commands mkdir perm cd etc cp group passwd motd vfstab dumpdates shadow perm cd cp -r etc skel perm When trying to copy etc shadow an error message was displayed. Why 2. Change directory to perm and complete the following table File or Directory User Permissions Group Permissions Other Permissions Octal Value group rw- passwd r-- vfstab rw- skel 755 3. Create a new file and a new directory. What are the default permissions given to the new file What are the default permissions given to the new directory File Security 8-27 Copyright 1999 Sun Microsystems Inc. All Rights Reserved. Enterprise Services August 1999 Revision D 8 Exercise Changing File Permissions Tasks 4. In a directory with permissions of drwxr-xr-- who can perform the following actions with the files shown below Put an X next to each allowed action. -rw-r r user read modify delete execute group read .