34.7k views
2 votes
Suppose that you want to change the permissions on a file named BankingInformation.doc. The new permissions should give the following rights:

• File owner: read write execute
• Group members: read write
. Other users: execute
Provide the Unix/Linux command to do this. You may use either absolute or symbolic notation.
Do not enter any unnecessary spaces or options__________

User Wodzu
by
8.3k points

1 Answer

1 vote

Final answer:

Use the command 'chmod 751 BankingInformation.doc' for absolute notation, or 'chmod u=rwx,g=rw,o=x BankingInformation.doc' for symbolic notation to set the specified file permissions.

Step-by-step explanation:

To change the permissions on a file named BankingInformation.doc to give the file owner read, write, and execute rights, give group members read and write rights, and give other users execute rights in Unix/Linux, you can use the chmod command. To accomplish this using absolute notation, you would issue the following command:

chmod 751 BankingInformation.doc

This command sets the permissions to read (4), write (2), execute (1) for the owner (summing up to 7), read (4), write (2) for the group (summing up to 6), and execute (1) for others.

If you prefer to use symbolic notation, the corresponding command would be:

chmod u=rwx,g=rw,o=x BankingInformation.doc

Here, u stands for user (the owner of the file), g stands for group, and o stands for others. This command explicitly sets the permissions using the equal sign to specify the exact rights for each class.

User Paaland
by
7.9k points