Which of the following best describes the write permission on a file in a typical operating system?
Think about what it means to be able to change a file's content.
The write permission allows a user to modify or delete the contents of a file. Viewing is controlled by read permission, and execution is controlled by execute permission.
In Unix-like systems, what does the permission string -rwxr-x--x indicate about the file's access?
Break down the string into owner, group, and others permissions.
The string -rwxr-x--x means: owner has read (r), write (w), execute (x); group has read (r), no write (-), execute (x); others have no read (-), no write (-), execute (x).
A file has standard permissions set to rw-r-----. The owner is Alice, the group is 'staff'. An ACL entry grants user Bob read and write access. What is the effective permission for Bob?
ACLs can grant specific permissions beyond standard owner/group/others.
ACL entries override standard permissions for specified users. Since Bob has an ACL granting read and write, he can access the file accordingly.
Which of the following file permission settings poses the greatest security risk on a multi-user system?
Consider what happens when everyone can read, write, and execute a file.
Permissions rwxrwxrwx allow anyone to read, modify, or execute the file, which can lead to unauthorized changes or execution of malicious code.
User Charlie belongs to groups 'dev' and 'qa'. A file has owner 'Alice', group 'dev', and permissions rw-r-----. The 'qa' group has an ACL entry granting read access to the file. What is Charlie's effective permission?
Consider how ACLs and group memberships combine to determine access.
Charlie is in 'dev' and 'qa'. The file's group is 'dev' with read permission only for group. The ACL grants 'qa' group read access. Both grant read access, so Charlie can read but not write.