2-3 Linux+ File and Directory Permissions

Ace your homework & exams now with Quizwiz!

For a directory, users granted read and execute permissions are allowed to:

It allows a user to read the directory's contents

What types of files are candidates for having the execution access permissions set for users?

What types of files are candidates for having the execution access permissions set for users?

The command: chmod 317 file1 would produce which of the following lines from the ls command.

--wx--xrwx 1 user1 root 0 Apr 29 15:40 file1

After typing the command umask 731, the permissions on all subsequently created files and directories will be effected. In this case, what will be the permissions on all new files?

---r--rw-

What directory contains all the files needed by the system for initial startup?

/boot

A file whose owner has read, write, and execute permissions has file permissions equivalent to an octal value of:

7

The shell expands the characters: ~/ (a tilde followed by a slash) at the start of a pathname

A tilde is expanded into the the value of the HOME variable (the path to your home directory).

After the chmod a+rw sample command has been executed:

Adds read and write permission for all users

With the exception of the file owner, after the chmod 600 sample command has been executed (where sample is a directory):

Nobody other than the owner can perform any operations on sample**

If a user (not the owner or a group member) can use cd to change to a directory such as /home/rbass/studentstuff; and use ls to view the files in the directory; what permissions must be set?

Read and execute for other users.

To dereference a symbolic link means:

To dereference means to follow the symbolic link to the target file.

The inode number of all files in LInux is

Unique for every file except hard links.

If you want to set all three special access bits (SUID, SGID, and sticky) for the sample file and set the rest of its access bits to 754 with one command:

You need to run the command chmod -s sample command. *** You need to execute the chmod 7754 sample command

A file with the following permissions: -rwxr-xr-x

all

A permission value of 764 for the sample file means that:

all

What command will change the working directory to /home/rbass/sourcefiles?

cd /home/rbass/sourcefiles

Which of the following commands will remove all access permissions to file: sample for the group and others?

chmod go= sample

A file has the following permissions r----x-w-. The command chmod 143 would have the same effect as the command _________.

chmod u=x,g=r,o=wx file1

Which of the following commands will change the user ownership and group ownership of file1 to user1 and root, respectively?

chown user1:root file1

Only the root user can modify a file that has the immutable attribute set.

false

There is no real difference between the "S" and "s" special permissions when displayed using the ls -l command. One just means it is on a file, and the other that it is on a directory. True or False?

false

An inode in Linux

is the control structure for a file.

The command: chmod 600 sample :

none*** Takes away all privileges from the group users**

The mode section of the inode stores permissions and is divided into sections that include _________________.

owner group other

File access permissions are grouped into the categories:

owner, group, and other.

File access permissions include:

read, write, and execute.

What command will remove directory sourcefiles

rmdir sourcefiles

The default permissions given by the system prior to analyzing the umask are _________ for directories and ______________ for files.

rwxrwxrwx and rw-rw-rw

When a user is given execute permission for a directory, he/she may:

search it

What is the result of the following command? chmod 700 myfile

sets access privileges for myfile to read, write, and execute for the owner.

Which type of link can be used to create a directory entry to a file in another file system?

soft link

The set-user-ID bit (SUID) allows an executable file to:

take on the privileges of the owner of the file when it executes.


Related study sets

Chapter 1:Overview of Strategic Marketing-Principles of Marketing-BCOR 2201

View Set

medical law and ethics study guide chapters 1-2

View Set