124k views
1 vote
Which of these commands will set the permissions on file textfile to read and write for the owner, read for the group, and nothing for everyone else?

1) chmod 046 textfile
2) chmod 640 textfile
3)hmod 310 textfile

1 Answer

5 votes

Final answer:

The command that will set the permissions on file textfile to read and write for the owner, read for the group, and nothing for everyone else is chmod 640 textfile.

Step-by-step explanation:

The command that will set the permissions on file textfile to read and write for the owner, read for the group, and nothing for everyone else is chmod 640 textfile.

The first number, 6, refers to the owner's permissions. The second number, 4, refers to the group's permissions. And the third number, 0, refers to the permissions for everyone else.

Therefore, with the command chmod 640 textfile, the owner will have read and write permissions, the group will have read permission, and everyone else will have no permissions.

User Raphael Rafatpanah
by
8.4k points