A user changed the permissions of a script (myscript.sh) in a shared directory. The user is curious why everyone can execute the script if the user owns the script and everyone else only has read access. To make the script executable, what command did the user mistakenly issue?
A. chmod +x myscript.sh
B. chmod +r myscript.sh
C. chmod +w myscript.sh
D. chown root myscript.sh
Answer: A. chmod +x myscript.sh
chmod +x myscript.sh —The permissions changed to rwxrwxr-x or 775, which gives everyone execute permission. To limit execute permission to the user and group only, the command should have been: chmod ug+x myscript.sh
You might also like to view...
A technician installs a new CAT6 cable from one end of the office building to another, a total distance of 600 feet (182.88 meters). When a laptop is connected to the cable, it cannot connect to the Internet. Which of the following is MOST likely the cause of this problem?
A. Bad connectors B. Crosstalk C. DB loss D. TXRX reversed
A popular container format that packages media in files with .mov extensions is ____.
A. QuickTime Movie B. Advanced Systems Format C. MPEG D. Flash Video