A Linux technician needs to adjust access permissions for an executable deployment script named deploy.sh located in a shared directory. The requirements specify that the file owner must have read, write, and execute permissions, members of the assigned group must have read and execute permissions only, and all other users must have no access permissions. Which command should the technician execute to assign these permissions?
- chmod 750 deploy.shCevap
- Bchmod 755 deploy.sh
- Cchmod 640 deploy.sh
- Dchown 750 deploy.sh
Cevap
The command 'chmod 750 deploy.sh' correctly configures the specified permissions by setting 7 (rwx) for the owner, 5 (r-x) for the group, and 0 (---) for others.
In Linux file permission syntax, octal values represent access levels for User (owner), Group, and Others in sequence. Read equals 4, write equals 2, and execute equals 1. Therefore, owner (4+2+1=7), group (4+0+1=5), and others (0) produce the permission mask 750 applied via the chmod utility.
Adım Adım Çözüm
Anahtar Kavram
Linux Absolute Octal File Permissions (chmod)