Question

In: Computer Science

Permissions– commands and options Provide commands with screenshots. (a) Create a new file in the root...

Permissions– commands and options Provide commands with screenshots.

(a) Create a new file in the root directory. What is the default permission for this file?

(b) Set the directory permission to 400. What does it mean?

(c) Set the directory permission to 100. What does it mean?

(d) Set the directory permission to 200. What does it mean?

Solutions

Expert Solution

The command to navigate to the root directory - cd /

(a)

Create a new directory in the root directory.

sudo nano myDir.txt

The default permission of the myDir directory is highlighted.

(b)

Set the directory permission to 400

sudo chmod 400 myDir.txt

The 400 permission is read-only permission for the user.

(c)

Set the directory permission to 100

sudo chmod 100 myDir.txt

The 400 permission is executable permission for the user.

(d)

Set the directory permission to 200.

sudo chmod 200 myDir

The 400 permission is writable permission for the user.


Related Solutions

Create a file and change the file permissions to (a) make it executable, (b) enable the...
Create a file and change the file permissions to (a) make it executable, (b) enable the SUID, and (c) use the ACL to add a permission for the root user. Do a long listing of this file. LINUX command line / virtual box.
Create by using Linux server • Create a file name it foo.txt • Remove all permissions...
Create by using Linux server • Create a file name it foo.txt • Remove all permissions from foo.txt • What happen if you try to read the file? • Change foo.txt permission to read and write only for owner • Change foo.txt permission to read for group • Change foo.txt permission to read and write everyone
File permissions let us control who can: a. change how files are executed only b. create...
File permissions let us control who can: a. change how files are executed only b. create files only c. delete files only d. read, write, and execute a file
Create a Java class file for a Car class. In the File menu select New File......
Create a Java class file for a Car class. In the File menu select New File... Under Categories: make sure that Java is selected. Under File Types: make sure that Java Class is selected. Click Next. For Class Name: type Car. For Package: select csci2011.lab7. Click Finish. A text editor window should pop up with the following source code (except with your actual name): csci1011.lab7; /** * * @author Your Name */ public class Car { } Implement the Car...
Create a Java class file for an Account class. In the File menu select New File......
Create a Java class file for an Account class. In the File menu select New File... Under Categories: make sure that Java is selected. Under File Types: make sure that Java Class is selected. Click Next. For Class Name: type Account. For Package: select csci1011.lab8. Click Finish. A text editor window should pop up with the following source code (except with your actual name): csci1011.lab8; /** * * @author Your Name */ public class Account { } Implement the Account...
1. When a file is created on Linux Operating System, What are the default permissions of...
1. When a file is created on Linux Operating System, What are the default permissions of the file? 2. Write a command to find the total disk space used by a specific user on linux system? 3. What is "s" permission bit in a file? 4. Explain the difference between grep and egrep? 5. Write a command to list files where third letter is x or y? 6. Write command to remove array element with id 5? 7. Write a...
Create MySortedArrayCollection.java This file is inherited from SortedArrayCollection.java This file implements MySortedArrayCollectionInterface.java ****** Make new and...
Create MySortedArrayCollection.java This file is inherited from SortedArrayCollection.java This file implements MySortedArrayCollectionInterface.java ****** Make new and just complete MySortedArrayCollection.java, dont modify others //////////////////////////////////////////////////////// SortedArrayCollection.java public class SortedArrayCollection<T> implements CollectionInterface<T> {    protected final int DEFCAP = 100; // default capacity    protected int origCap; // original capacity    protected T[] elements; // array to hold collection elements    protected int numElements = 0; // number of elements in this collection    // set by find method    protected boolean found;...
use c++ Provide a header file as well. So for this question provide Rational.h, Rantional.cpp Create...
use c++ Provide a header file as well. So for this question provide Rational.h, Rantional.cpp Create a class called Rantional for performing arithmatic with fractions. Then write a program to test your class. Use integer variables to represent the private data of the class, meaning the numerator and the denominator. Provide a constructor that enables an object of this class to be initialized when it's declared. The constructor should contain default values in case no initializers are provided and should...
) Write queries for the following. Include screenshots of the queries and the outputs. Create a...
) Write queries for the following. Include screenshots of the queries and the outputs. Create a procedure named DisplayInfo which takes customer name as a parameter and displays information of that customer. (database – sql_store)
For Assignment 2, submit a word or pdf file with the SQL queries along with screenshots...
For Assignment 2, submit a word or pdf file with the SQL queries along with screenshots of the outputs. (It is ok if the whole problem cannot be answered, if possible, I just would like an idea of how to begin, thanks in advance!) 9. Write a query to count the number of invoices. 10. Write a query to count the number of customers with a balance of more than $500. 11. Generate a listing of all purchases made by...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT