108k views
5 votes
You must change ownership of a script called myscript so that only the user owner has read/write access to it and only the user owner and group owner have execute permissions. Which of the following commands would accomplish this?

a. chmod 771 myscript
b. chmod 750 myscriptc. chmod 755 myscript
d. chmod 611 myscript

User WeiHao
by
5.5k points

1 Answer

1 vote

Answer:

B) chmod 750 myscript

Step-by-step explanation:

In linux operating system, the command chmod is used to change the permissions on a file. This command effects changes on users, groups, read and write operations to a file. chmod 750 is used to change ownership, and assign read, write and execute permissions to the new user only.

User Boyo
by
5.1k points