Question

You need to set the permissions for read, write and execute on a file called SHARE...

You need to set the permissions for read, write and execute on a file called SHARE to anyone with an account on the same Linux system. Which of the following commands would NOT have the desired effect?

(A) chmod a+rwx,o=rx SHARE

(B) chmod a+rwx SHARE

(C) chmod ugo=rwx SHARE

(D) chmod 777 SHARE

0 0
Add a comment Improve this question Transcribed image text
Answer #1
  • In chmod u g o and a, denoted the type of user that has permissions to a particular file. u means current user, g means group member, o means other users, a means all users.
  • alos, there are types of permissions r w and x. r means read permission, w means write permission, x means execution permission.
  • Now let's analyse the options one by one

A.)

  • in this option , o = rw mode sets only read and write permission for other users. So, this option will not have the desired effect.

B.)

  • a+rwx mode gives read, write and execute permission to all user. This option will have the desired effect.

C.)

  • ugo = rwx will set read , write and execute permission to all three types of users: u g and o
  • This option will have the desired effect.

D.)

  • 777 is called the persmission number. read permission has value 4, write operation has value 2, execute option has value 1. 7 means all permissions(4+2+1) are granted.
  • 777 means all the permissions are granted to all three types of user.

Answer: A

Add a comment
Know the answer?
Add Answer to:
You need to set the permissions for read, write and execute on a file called SHARE...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • You need to write Linux commands to set up the read, write and execute permissions at...

    You need to write Linux commands to set up the read, write and execute permissions at group level. R_Access_Output: A group that allows read access to the project output file RW_Access_Output: A group that allows read/write access to the project output file. R_Access_InputFile: A group that allows read access to the shell script input file. RW_Access_InputFile: A group that allows read/write access to the shell script input file Script_Execution: A group that should allow executing the script. Login into the...

  • Hi im trying too do my Linux homework and I'm stuck on some questions 1. Using...

    Hi im trying too do my Linux homework and I'm stuck on some questions 1. Using the utility chmod, permissions can be set on the owner, group, or others (aka "the world" or "everyone else"). True or False 2. Changing the permissions on the script file someScriptFile.sh to be write and read only will allow you to execute it (if it is a valid shell script with no errors) using ./someScriptFile.sh True or False 3. To set the permissions for...

  • The current permissions for a file called SHARE are as follows: -rwx---r--     What are the...

    The current permissions for a file called SHARE are as follows: -rwx---r--     What are the resulting permissions after this command is entered? chmod og+x SHARE (A) –--x--xr-- (B) –rwx--xr-x (C) –rwx---r-- (D) –rwx—-x--x

  • Create an alias for setting all permissions to read, write, execute (777) in Linux

    Create an alias for setting all permissions to read, write, execute (777) in Linux

  • 1. Write the command to set the following permissions on a script file with the following...

    1. Write the command to set the following permissions on a script file with the following name; myscript.sh Owner: full access; read, write and execute Group: read and execute Other: no access 2. Create a new file with the name "myfirstscript.sh". Write a new script that performs the following tasks in sequence; Display the usernames of currently logged in users; sorted from a-z HINT: You will need to filter the output of the whocommand Display a list of usernames who...

  • 9. The command "chmod 711 menu script" allows the owner read, write and execute permissions, and ...

    9. The command "chmod 711 menu script" allows the owner read, write and execute permissions, and only permission for group and other o. Explain why you would use a "Here Document "in your shell script over using the echo commands? 11. What will the following statements provide "from the main body" when the awk script is executed? Field 1 Example: one line of input "widget: 1.59 : 83 Note! the: is the delimiter. Example: Unit-widget, price per/unit -$1.59, quantity number...

  • Write a program in C using Unix system calls and functions that will change the permissions on a ...

    Write a program in C using Unix system calls and functions that will change the permissions on a file. The executable shall be called “mychmod” and will be executed by: mychmod -u rwx -g rwx -o rwx -U rwx -G rwx -O rwx file1 file2 ... The lowercase options will add permissions while the uppercase options will remove permissions. Each of the switches is optional and should be interpreted as the ones in the Unix command chmod(1), you can review...

  • This assignment should give you experience in using file descriptors, open(), close(), write(), stat() and chmod(),...

    This assignment should give you experience in using file descriptors, open(), close(), write(), stat() and chmod(), perror(), and command line arguments. Program: Write a C++ program that will allow you to add messages to a file that has NO permissions for any user. A Unix system has many files that have sensitive information in them. Permissions help keep these files secure. Some files can be publicly read, but can not be altered by a regular user (ex.: /etc/passwd). Other files...

  • 1. Give the command (single command or pipelined series of commands) that performs each of the...

    1. Give the command (single command or pipelined series of commands) that performs each of the following tasks.  Assume bash, and the commands we have been discussing.  Do not use things like perl, awk, python, etc.  Unless specifically stated otherwise, assume that the command should work no matter what your current working directory is or where a user's home directory is located. Use only flags that are required by the question as stated. Assume you are logged in as a "normal" (non-administrator) user,...

  • operating system programming i need ans and explen after 20 min 2 When we are implementing...

    operating system programming i need ans and explen after 20 min 2 When we are implementing the following program, then we press "CTRL+C" on the keyboard; that will cause: #include <stdio.h> #include<signal.h> #include <stdlib.h> #include<unistd.h> void handle_sigint (int sig) { } printf("Caught signal $d\n", sig); int main(int argc, char *argv[]) { signal (SIGCONT, handle_sigint); while (1) { printf("the process id is $d \n",getpid()); sleep (1); } return 0; } O print the sentence" Caught signal 2" on the terminal 53,65,67,37,14,98,122,124,183...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT