The chmod command is used to change the permissions of a file or directory. The permissions of a file or directory are divided into three parts: owner, group, and others. Each part has three types of permissions: read, write, and execute.
The first part of the chmod command specifies the permissions for the owner of the file (u for user). rwx means that the owner has read, write, and execute permissions. The second part specifies the permissions for the group of the file (g for group). rx means that the group has only read and execute permissions. The third part specifies the permissions for others (o for others). go= means that the group and others have no permissions.
So, chmod u=rwx,go=rx /bin/foo sets the file permissions to read, write, and execute for the owner, read and execute for the group, and read and execute for others, making /bin/foo executable by everyone but writable only by its owner.
Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?
This is a trick question,
if you interpret is as the owner having just write permission, then none of the option is right, but if you interpret it as only the owner having write permission, then only option A meets that requirement.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
KMAV
3 months agoKMAV
3 months agoMoOshin
9 months, 3 weeks agoFunkslinger
1 year, 4 months ago0ldman
1 year, 10 months ago0ldman
1 year, 10 months agoFunkslinger
1 year, 4 months ago